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

com.cinchapi.concourse.thrift.ConcourseService Maven / Gradle / Ivy

/*
 * Copyright (c) 2013-2018 Cinchapi Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.cinchapi.concourse.thrift;

import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.BitSet;
import java.util.Collections;
import java.util.EnumMap;
import java.util.EnumSet;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

import javax.annotation.Generated;

import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
import org.apache.thrift.async.AsyncMethodCallback;
import org.apache.thrift.protocol.TTupleProtocol;
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.server.AbstractNonblockingServer.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

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

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

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

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

*

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

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

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

*

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

* * @param username a binary representation of the UTF-8 encoded username * @param password a binary representation of the UTF-8 encoded password * @param environment the name of the environment into which to login * @return an {@link shared.AccessToken} to submit with all subsequent * method * calls * @throws exceptions.SecurityException if the login is not successful * * @param username * @param password * @param environment */ public com.cinchapi.concourse.thrift.AccessToken login( ByteBuffer username, ByteBuffer password, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; /** * Start a new transaction. *

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

*

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

* * @param token * @param environment * @return TransactionToken * @throws TSecurityException * * @param token * @param environment */ public com.cinchapi.concourse.thrift.TransactionToken stage( com.cinchapi.concourse.thrift.AccessToken token, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Set insertJson(String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map insertJsonRecords(String json, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map removeKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public void setKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; /** * The {@code value} in {@code key} of {@code record} are added * and removed to be set as exactly the same as the input values * * @param key the field name * @param record the record id where an attempt is made to add the data * @param values collection of values to set * @param creds the {@link shared.AccessToken} that is used to * authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a bool that indicates if the data was added * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the * transaction * to end itself * @throws exceptions.InvalidArgumentException if any of provided data * can't be stored * * @param key * @param record * @param values * @param creds * @param transaction * @param environment */ public void reconcileKeyRecordValues(String key, long record, Set values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Set inventory( com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> selectRecord( long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> selectRecords( List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> selectRecordTime( long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> selectRecordTimestr( long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> selectRecordsTime( List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> selectRecordsTimestr( List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Set selectKeyRecord( String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Set selectKeyRecordTime( String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Set selectKeyRecordTimestr( String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> selectKeysRecord( List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> selectKeysRecordTime( List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> selectKeysRecordTimestr( List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> selectKeysRecords( List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> selectKeyRecords( String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> selectKeyRecordsTime( String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> selectKeyRecordsTimestr( String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> selectKeysRecordsTime( List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> selectKeysRecordsTimestr( List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> selectCriteria( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> selectCcl( String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> selectCriteriaTime( com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> selectCriteriaTimestr( com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> selectCclTime( String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> selectCclTimestr( String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> selectKeyCriteria( String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> selectKeyCcl( String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> selectKeyCriteriaTime( String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> selectKeyCriteriaTimestr( String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> selectKeyCclTime( String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> selectKeyCclTimestr( String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> selectKeysCriteria( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> selectKeysCcl( List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> selectKeysCriteriaTime( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> selectKeysCriteriaTimestr( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> selectKeysCclTime( List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> selectKeysCclTimestr( List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map getKeysRecord( List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map getKeysRecordTime( List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map getKeysRecordTimestr( List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> getKeysRecords( List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map getKeyRecords( String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map getKeyRecordsTime( String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map getKeyRecordsTimestr( String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> getKeysRecordsTime( List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> getKeysRecordsTimestr( List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map getKeyCriteria( String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> getCriteria( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> getCcl( String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> getCriteriaTime( com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> getCriteriaTimestr( com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> getCclTime( String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> getCclTimestr( String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map getKeyCcl( String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map getKeyCriteriaTime( String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map getKeyCriteriaTimestr( String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map getKeyCclTime( String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map getKeyCclTimestr( String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> getKeysCriteria( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> getKeysCcl( List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> getKeysCriteriaTime( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> getKeysCriteriaTimestr( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> getKeysCclTime( List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> getKeysCclTimestr( List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public String jsonifyRecords(List records, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public String jsonifyRecordsTime(List records, long timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public String jsonifyRecordsTimestr(List records, String timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Set findCriteria( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Set findCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Set findKeyOperatorValues(String key, com.cinchapi.concourse.thrift.Operator operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Set findKeyOperatorValuesTime(String key, com.cinchapi.concourse.thrift.Operator operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Set findKeyOperatorValuesTimestr(String key, com.cinchapi.concourse.thrift.Operator operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Set findKeyOperatorstrValues(String key, String operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Set findKeyOperatorstrValuesTime(String key, String operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Set findKeyOperatorstrValuesTimestr(String key, String operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Set search(String key, String query, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public void revertKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public void revertKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public void revertKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public void revertKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public void revertKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public void revertKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map pingRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject sumKeyRecordTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject sumKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject sumKeyRecordsTime( String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject sumKeyRecordsTimestr( String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject sumKeyTimestr(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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject sumKeyCriteriaTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject sumKeyCclTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject averageKeyRecordTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject averageKeyRecords( String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject averageKeyRecordsTime( String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject averageKeyRecordsTimestr( String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject averageKeyTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject averageKeyCriteriaTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject averageKeyCclTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public long countKeyRecord(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public long countKeyRecordTime(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public long countKeyRecordTimestr(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public long countKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public long countKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public long countKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public long countKey(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public long countKeyTime(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public long countKeyTimestr(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public long countKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public long countKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public long countKeyCriteriaTimestr(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public long countKeyCcl(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public long countKeyCclTime(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public long countKeyCclTimestr(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject maxKeyRecord(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject maxKeyRecordTime( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject maxKeyRecordTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject maxKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject maxKeyRecordsTime( String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject maxKeyRecordsTimestr( String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject maxKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject maxKeyCriteriaTime( String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject maxKeyCriteriaTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject maxKeyCcl(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject maxKeyCclTime(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject maxKeyCclTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject maxKey(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject maxKeyTime(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject maxKeyTimestr(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject minKeyRecord(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject minKeyRecordTime( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject minKeyRecordTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject minKey(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject minKeyRecordsTime( String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject minKeyRecordsTimestr( String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject minKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject minKeyCriteriaTime( String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject minKeyCriteriaTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject minKeyCcl(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject minKeyCclTime(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject minKeyCclTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject minKeyTime(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject minKeyTimestr(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject minKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> navigateKeyRecord( String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> navigateKeyRecordTime( String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> navigateKeyRecordTimestr( String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> navigateKeysRecord( List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> navigateKeysRecordTime( List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> navigateKeysRecordTimestr( List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> navigateKeysRecords( List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> navigateKeyRecords( String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> navigateKeyRecordsTime( String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> navigateKeyRecordsTimestr( String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> navigateKeysRecordsTime( List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> navigateKeysRecordsTimestr( List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> navigateKeyCcl( String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> navigateKeyCclTime( String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> navigateKeyCclTimestr( String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> navigateKeysCcl( List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> navigateKeysCclTime( List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> navigateKeysCclTimestr( List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> navigateKeyCriteria( String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> navigateKeyCriteriaTime( String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map> navigateKeyCriteriaTimestr( String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> navigateKeysCriteria( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> navigateKeysCriteriaTime( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public Map>> navigateKeysCriteriaTimestr( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public String getServerVersion() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.ComplexTObject invokeManagement( String method, List params, com.cinchapi.concourse.thrift.AccessToken creds) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.ManagementException, org.apache.thrift.TException; } public interface AsyncIface { public void abort(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void addKeyValue(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void addKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void addKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void auditRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void auditRecordStart(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void auditRecordStartstr(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void auditRecordStartEnd(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void auditRecordStartstrEndstr(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void auditKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void auditKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void auditKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void auditKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void auditKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void browseKey(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void browseKeys(List keys, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void browseKeyTime(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void browseKeyTimestr(String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void browseKeysTime(List keys, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void browseKeysTimestr(List keys, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void chronologizeKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void chronologizeKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void chronologizeKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void chronologizeKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void chronologizeKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void clearRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void clearRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void clearKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void clearKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void clearKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void clearKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void commit(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void describe(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void describeTime(long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void describeTimestr(String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void describeRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void describeRecordTime(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void describeRecordTimestr(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void describeRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void describeRecordsTime(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void describeRecordsTimestr(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffRecordStart(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffRecordStartstr(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffRecordStartEnd(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffRecordStartstrEndstr(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffKeyStart(String key, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffKeyStartstr(String key, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffKeyStartEnd(String key, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffKeyStartstrEndstr(String key, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void invokePlugin(String id, String method, List params, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void login(ByteBuffer username, ByteBuffer password, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void logout(com.cinchapi.concourse.thrift.AccessToken token, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void stage(com.cinchapi.concourse.thrift.AccessToken token, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void insertJson(String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void insertJsonRecord(String json, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void insertJsonRecords(String json, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void removeKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void removeKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void setKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void setKeyValue(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void setKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void reconcileKeyRecordValues(String key, long record, Set values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void inventory(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectRecordTime(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectRecordTimestr(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectRecordsTime(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectRecordsTimestr(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectCriteria( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectCriteriaTime( com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectCriteriaTimestr( com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectCclTime(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectCclTimestr(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getCriteria( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getCriteriaTime( com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getCriteriaTimestr( com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getCclTime(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getCclTimestr(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void verifyKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void verifyKeyValueRecordTime(String key, com.cinchapi.concourse.thrift.TObject value, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void verifyKeyValueRecordTimestr(String key, com.cinchapi.concourse.thrift.TObject value, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void jsonifyRecords(List records, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void jsonifyRecordsTime(List records, long timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void jsonifyRecordsTimestr(List records, String timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findCriteria( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findKeyOperatorValues(String key, com.cinchapi.concourse.thrift.Operator operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findKeyOperatorValuesTime(String key, com.cinchapi.concourse.thrift.Operator operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findKeyOperatorValuesTimestr(String key, com.cinchapi.concourse.thrift.Operator operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findKeyOperatorstrValues(String key, String operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findKeyOperatorstrValuesTime(String key, String operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findKeyOperatorstrValuesTimestr(String key, String operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void search(String key, String query, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void revertKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void revertKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void revertKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void revertKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void revertKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void revertKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void revertKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void revertKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void pingRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void pingRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void verifyAndSwap(String key, com.cinchapi.concourse.thrift.TObject expected, long record, com.cinchapi.concourse.thrift.TObject replacement, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void verifyOrSet(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findOrAddKeyValue(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findOrInsertCriteriaJson( com.cinchapi.concourse.thrift.TCriteria criteria, String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findOrInsertCclJson(String ccl, String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void sumKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void 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 sumKeyRecordTimestr(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 sumKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void sumKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void sumKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void 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 sumKeyTimestr(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 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 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 sumKeyCriteriaTimestr(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 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 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 sumKeyCclTimestr(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 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 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 averageKeyRecordTimestr(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 averageKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void averageKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void averageKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void 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 averageKeyTimestr(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 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 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 averageKeyCriteriaTimestr(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 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 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 averageKeyCclTimestr(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 countKeyRecord(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 countKeyRecordTime(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 countKeyRecordTimestr(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 countKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void countKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void countKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void countKey(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 countKeyTime(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 countKeyTimestr(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 countKeyCriteria(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 countKeyCriteriaTime(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 countKeyCriteriaTimestr(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 countKeyCcl(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 countKeyCclTime(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 countKeyCclTimestr(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 maxKeyRecord(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 maxKeyRecordTime(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 maxKeyRecordTimestr(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 maxKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void maxKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void maxKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void maxKeyCriteria(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 maxKeyCriteriaTime(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 maxKeyCriteriaTimestr(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 maxKeyCcl(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 maxKeyCclTime(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 maxKeyCclTimestr(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 maxKey(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 maxKeyTime(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 maxKeyTimestr(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 minKeyRecord(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 minKeyRecordTime(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 minKeyRecordTimestr(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 minKey(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 minKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void minKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void minKeyCriteria(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 minKeyCriteriaTime(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 minKeyCriteriaTimestr(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 minKeyCcl(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 minKeyCclTime(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 minKeyCclTimestr(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 minKeyTime(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 minKeyTimestr(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 minKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getServerEnvironment( com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getServerVersion( org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void time(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void timePhrase(String phrase, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void invokeManagement(String method, List params, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; } public static class Client extends org.apache.thrift.TServiceClient implements Iface { public static class Factory implements org.apache.thrift.TServiceClientFactory { 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "addKeyValueRecord failed: unknown result"); } public Map addKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_addKeyValueRecords(key, value, records, creds, transaction, environment); return recv_addKeyValueRecords(); } public void send_addKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { addKeyValueRecords_args args = new addKeyValueRecords_args(); args.setKey(key); args.setValue(value); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("addKeyValueRecords", args); } public Map recv_addKeyValueRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "addKeyValueRecords failed: unknown result"); } public Map auditRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_auditRecord(record, creds, transaction, environment); return recv_auditRecord(); } public void send_auditRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { auditRecord_args args = new auditRecord_args(); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("auditRecord", args); } public Map recv_auditRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "auditRecord failed: unknown result"); } public Map auditRecordStart(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_auditRecordStart(record, start, creds, transaction, environment); return recv_auditRecordStart(); } public void send_auditRecordStart(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { auditRecordStart_args args = new auditRecordStart_args(); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("auditRecordStart", args); } public Map recv_auditRecordStart() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "auditRecordStart failed: unknown result"); } public Map auditRecordStartstr(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_auditRecordStartstr(record, start, creds, transaction, environment); return recv_auditRecordStartstr(); } public void send_auditRecordStartstr(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { auditRecordStartstr_args args = new auditRecordStartstr_args(); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("auditRecordStartstr", args); } public Map recv_auditRecordStartstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "auditRecordStartstr failed: unknown result"); } public Map auditRecordStartEnd(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_auditRecordStartEnd(record, start, tend, creds, transaction, environment); return recv_auditRecordStartEnd(); } public void send_auditRecordStartEnd(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { auditRecordStartEnd_args args = new auditRecordStartEnd_args(); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("auditRecordStartEnd", args); } public Map recv_auditRecordStartEnd() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "auditRecordStartEnd failed: unknown result"); } public Map auditRecordStartstrEndstr(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_auditRecordStartstrEndstr(record, start, tend, creds, transaction, environment); return recv_auditRecordStartstrEndstr(); } public void send_auditRecordStartstrEndstr(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { auditRecordStartstrEndstr_args args = new auditRecordStartstrEndstr_args(); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("auditRecordStartstrEndstr", args); } public Map recv_auditRecordStartstrEndstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "auditRecordStartstrEndstr failed: unknown result"); } public Map auditKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_auditKeyRecord(key, record, creds, transaction, environment); return recv_auditKeyRecord(); } public void send_auditKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { auditKeyRecord_args args = new auditKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("auditKeyRecord", args); } public Map recv_auditKeyRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "auditKeyRecord failed: unknown result"); } public Map auditKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_auditKeyRecordStart(key, record, start, creds, transaction, environment); return recv_auditKeyRecordStart(); } public void send_auditKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { auditKeyRecordStart_args args = new auditKeyRecordStart_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("auditKeyRecordStart", args); } public Map recv_auditKeyRecordStart() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "auditKeyRecordStart failed: unknown result"); } public Map auditKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_auditKeyRecordStartstr(key, record, start, creds, transaction, environment); return recv_auditKeyRecordStartstr(); } public void send_auditKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { auditKeyRecordStartstr_args args = new auditKeyRecordStartstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("auditKeyRecordStartstr", args); } public Map recv_auditKeyRecordStartstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "auditKeyRecordStartstr failed: unknown result"); } public Map auditKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_auditKeyRecordStartEnd(key, record, start, tend, creds, transaction, environment); return recv_auditKeyRecordStartEnd(); } public void send_auditKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { auditKeyRecordStartEnd_args args = new auditKeyRecordStartEnd_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("auditKeyRecordStartEnd", args); } public Map recv_auditKeyRecordStartEnd() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "auditKeyRecordStartEnd failed: unknown result"); } public Map auditKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_auditKeyRecordStartstrEndstr(key, record, start, tend, creds, transaction, environment); return recv_auditKeyRecordStartstrEndstr(); } public void send_auditKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { auditKeyRecordStartstrEndstr_args args = new auditKeyRecordStartstrEndstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("auditKeyRecordStartstrEndstr", args); } public Map recv_auditKeyRecordStartstrEndstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "auditKeyRecordStartstrEndstr failed: unknown result"); } public Map> browseKey( String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_browseKey(key, creds, transaction, environment); return recv_browseKey(); } public void send_browseKey(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { browseKey_args args = new browseKey_args(); args.setKey(key); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("browseKey", args); } public Map> recv_browseKey() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "browseKey failed: unknown result"); } public Map>> browseKeys( List keys, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_browseKeys(keys, creds, transaction, environment); return recv_browseKeys(); } public void send_browseKeys(List keys, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { browseKeys_args args = new browseKeys_args(); args.setKeys(keys); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("browseKeys", args); } public Map>> recv_browseKeys() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "browseKeys failed: unknown result"); } public Map> browseKeyTime( String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_browseKeyTime(key, timestamp, creds, transaction, environment); return recv_browseKeyTime(); } public void send_browseKeyTime(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { browseKeyTime_args args = new browseKeyTime_args(); args.setKey(key); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("browseKeyTime", args); } public Map> recv_browseKeyTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "browseKeyTime failed: unknown result"); } public Map> browseKeyTimestr( String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_browseKeyTimestr(key, timestamp, creds, transaction, environment); return recv_browseKeyTimestr(); } public void send_browseKeyTimestr(String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { browseKeyTimestr_args args = new browseKeyTimestr_args(); args.setKey(key); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("browseKeyTimestr", args); } public Map> recv_browseKeyTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "browseKeyTimestr failed: unknown result"); } public Map>> browseKeysTime( List keys, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_browseKeysTime(keys, timestamp, creds, transaction, environment); return recv_browseKeysTime(); } public void send_browseKeysTime(List keys, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { browseKeysTime_args args = new browseKeysTime_args(); args.setKeys(keys); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("browseKeysTime", args); } public Map>> recv_browseKeysTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "browseKeysTime failed: unknown result"); } public Map>> browseKeysTimestr( List keys, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_browseKeysTimestr(keys, timestamp, creds, transaction, environment); return recv_browseKeysTimestr(); } public void send_browseKeysTimestr(List keys, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { browseKeysTimestr_args args = new browseKeysTimestr_args(); args.setKeys(keys); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("browseKeysTimestr", args); } public Map>> recv_browseKeysTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "browseKeysTimestr failed: unknown result"); } public Map> chronologizeKeyRecord( String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_chronologizeKeyRecord(key, record, creds, transaction, environment); return recv_chronologizeKeyRecord(); } public void send_chronologizeKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { chronologizeKeyRecord_args args = new chronologizeKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("chronologizeKeyRecord", args); } public Map> recv_chronologizeKeyRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "chronologizeKeyRecord failed: unknown result"); } public Map> chronologizeKeyRecordStart( String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_chronologizeKeyRecordStart(key, record, start, creds, transaction, environment); return recv_chronologizeKeyRecordStart(); } public void send_chronologizeKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { chronologizeKeyRecordStart_args args = new chronologizeKeyRecordStart_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("chronologizeKeyRecordStart", args); } public Map> recv_chronologizeKeyRecordStart() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "chronologizeKeyRecordStart failed: unknown result"); } public Map> chronologizeKeyRecordStartstr( String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_chronologizeKeyRecordStartstr(key, record, start, creds, transaction, environment); return recv_chronologizeKeyRecordStartstr(); } public void send_chronologizeKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { chronologizeKeyRecordStartstr_args args = new chronologizeKeyRecordStartstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("chronologizeKeyRecordStartstr", args); } public Map> recv_chronologizeKeyRecordStartstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "chronologizeKeyRecordStartstr failed: unknown result"); } public Map> chronologizeKeyRecordStartEnd( String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_chronologizeKeyRecordStartEnd(key, record, start, tend, creds, transaction, environment); return recv_chronologizeKeyRecordStartEnd(); } public void send_chronologizeKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { chronologizeKeyRecordStartEnd_args args = new chronologizeKeyRecordStartEnd_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("chronologizeKeyRecordStartEnd", args); } public Map> recv_chronologizeKeyRecordStartEnd() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "chronologizeKeyRecordStartEnd failed: unknown result"); } public Map> chronologizeKeyRecordStartstrEndstr( String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_chronologizeKeyRecordStartstrEndstr(key, record, start, tend, creds, transaction, environment); return recv_chronologizeKeyRecordStartstrEndstr(); } public void send_chronologizeKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { chronologizeKeyRecordStartstrEndstr_args args = new chronologizeKeyRecordStartstrEndstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("chronologizeKeyRecordStartstrEndstr", args); } public Map> recv_chronologizeKeyRecordStartstrEndstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } return; } public void clearRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_clearRecords(records, creds, transaction, environment); recv_clearRecords(); } public void send_clearRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { clearRecords_args args = new clearRecords_args(); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("clearRecords", args); } public void recv_clearRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } return; } public void clearKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_clearKeysRecord(keys, record, creds, transaction, environment); recv_clearKeysRecord(); } public void send_clearKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { clearKeysRecord_args args = new clearKeysRecord_args(); args.setKeys(keys); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("clearKeysRecord", args); } public void recv_clearKeysRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } return; } public void clearKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_clearKeyRecords(key, records, creds, transaction, environment); recv_clearKeyRecords(); } public void send_clearKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { clearKeyRecords_args args = new clearKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("clearKeyRecords", args); } public void recv_clearKeyRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } return; } public void clearKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_clearKeysRecords(keys, records, creds, transaction, environment); recv_clearKeysRecords(); } public void send_clearKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { clearKeysRecords_args args = new clearKeysRecords_args(); args.setKeys(keys); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("clearKeysRecords", args); } public void recv_clearKeysRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "commit failed: unknown result"); } public Set describe( com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_describe(creds, transaction, environment); return recv_describe(); } public void send_describe( com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { describe_args args = new describe_args(); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("describe", args); } public Set recv_describe() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { describe_result result = new describe_result(); receiveBase(result, "describe"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "describe failed: unknown result"); } public Set describeTime(long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_describeTime(timestamp, creds, transaction, environment); return recv_describeTime(); } public void send_describeTime(long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { describeTime_args args = new describeTime_args(); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("describeTime", args); } public Set recv_describeTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { describeTime_result result = new describeTime_result(); receiveBase(result, "describeTime"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "describeTime failed: unknown result"); } public Set describeTimestr(String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_describeTimestr(timestamp, creds, transaction, environment); return recv_describeTimestr(); } public void send_describeTimestr(String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { describeTimestr_args args = new describeTimestr_args(); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("describeTimestr", args); } public Set recv_describeTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { describeTimestr_result result = new describeTimestr_result(); receiveBase(result, "describeTimestr"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "describeTimestr failed: unknown result"); } public Set describeRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_describeRecord(record, creds, transaction, environment); return recv_describeRecord(); } public void send_describeRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { describeRecord_args args = new describeRecord_args(); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("describeRecord", args); } public Set recv_describeRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "describeRecord failed: unknown result"); } public Set describeRecordTime(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_describeRecordTime(record, timestamp, creds, transaction, environment); return recv_describeRecordTime(); } public void send_describeRecordTime(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { describeRecordTime_args args = new describeRecordTime_args(); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("describeRecordTime", args); } public Set recv_describeRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "describeRecordTime failed: unknown result"); } public Set describeRecordTimestr(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_describeRecordTimestr(record, timestamp, creds, transaction, environment); return recv_describeRecordTimestr(); } public void send_describeRecordTimestr(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { describeRecordTimestr_args args = new describeRecordTimestr_args(); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("describeRecordTimestr", args); } public Set recv_describeRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "describeRecordTimestr failed: unknown result"); } public Map> describeRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_describeRecords(records, creds, transaction, environment); return recv_describeRecords(); } public void send_describeRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { describeRecords_args args = new describeRecords_args(); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("describeRecords", args); } public Map> recv_describeRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "describeRecords failed: unknown result"); } public Map> describeRecordsTime(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_describeRecordsTime(records, timestamp, creds, transaction, environment); return recv_describeRecordsTime(); } public void send_describeRecordsTime(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { describeRecordsTime_args args = new describeRecordsTime_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("describeRecordsTime", args); } public Map> recv_describeRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "describeRecordsTime failed: unknown result"); } public Map> describeRecordsTimestr(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_describeRecordsTimestr(records, timestamp, creds, transaction, environment); return recv_describeRecordsTimestr(); } public void send_describeRecordsTimestr(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { describeRecordsTimestr_args args = new describeRecordsTimestr_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("describeRecordsTimestr", args); } public Map> recv_describeRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "describeRecordsTimestr failed: unknown result"); } public Map>> diffRecordStart( long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_diffRecordStart(record, start, creds, transaction, environment); return recv_diffRecordStart(); } public void send_diffRecordStart(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffRecordStart_args args = new diffRecordStart_args(); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffRecordStart", args); } public Map>> recv_diffRecordStart() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "diffRecordStart failed: unknown result"); } public Map>> diffRecordStartstr( long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_diffRecordStartstr(record, start, creds, transaction, environment); return recv_diffRecordStartstr(); } public void send_diffRecordStartstr(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffRecordStartstr_args args = new diffRecordStartstr_args(); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffRecordStartstr", args); } public Map>> recv_diffRecordStartstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "diffRecordStartstr failed: unknown result"); } public Map>> diffRecordStartEnd( long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_diffRecordStartEnd(record, start, tend, creds, transaction, environment); return recv_diffRecordStartEnd(); } public void send_diffRecordStartEnd(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffRecordStartEnd_args args = new diffRecordStartEnd_args(); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffRecordStartEnd", args); } public Map>> recv_diffRecordStartEnd() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "diffRecordStartEnd failed: unknown result"); } public Map>> diffRecordStartstrEndstr( long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_diffRecordStartstrEndstr(record, start, tend, creds, transaction, environment); return recv_diffRecordStartstrEndstr(); } public void send_diffRecordStartstrEndstr(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffRecordStartstrEndstr_args args = new diffRecordStartstrEndstr_args(); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffRecordStartstrEndstr", args); } public Map>> recv_diffRecordStartstrEndstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "diffRecordStartstrEndstr failed: unknown result"); } public Map> diffKeyRecordStart( String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_diffKeyRecordStart(key, record, start, creds, transaction, environment); return recv_diffKeyRecordStart(); } public void send_diffKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffKeyRecordStart_args args = new diffKeyRecordStart_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffKeyRecordStart", args); } public Map> recv_diffKeyRecordStart() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "diffKeyRecordStart failed: unknown result"); } public Map> diffKeyRecordStartstr( String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_diffKeyRecordStartstr(key, record, start, creds, transaction, environment); return recv_diffKeyRecordStartstr(); } public void send_diffKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffKeyRecordStartstr_args args = new diffKeyRecordStartstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffKeyRecordStartstr", args); } public Map> recv_diffKeyRecordStartstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "diffKeyRecordStartstr failed: unknown result"); } public Map> diffKeyRecordStartEnd( String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_diffKeyRecordStartEnd(key, record, start, tend, creds, transaction, environment); return recv_diffKeyRecordStartEnd(); } public void send_diffKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffKeyRecordStartEnd_args args = new diffKeyRecordStartEnd_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffKeyRecordStartEnd", args); } public Map> recv_diffKeyRecordStartEnd() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "diffKeyRecordStartEnd failed: unknown result"); } public Map> diffKeyRecordStartstrEndstr( String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_diffKeyRecordStartstrEndstr(key, record, start, tend, creds, transaction, environment); return recv_diffKeyRecordStartstrEndstr(); } public void send_diffKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffKeyRecordStartstrEndstr_args args = new diffKeyRecordStartstrEndstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffKeyRecordStartstrEndstr", args); } public Map> recv_diffKeyRecordStartstrEndstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "diffKeyRecordStartstrEndstr failed: unknown result"); } public Map>> diffKeyStart( String key, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_diffKeyStart(key, start, creds, transaction, environment); return recv_diffKeyStart(); } public void send_diffKeyStart(String key, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffKeyStart_args args = new diffKeyStart_args(); args.setKey(key); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffKeyStart", args); } public Map>> recv_diffKeyStart() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "diffKeyStart failed: unknown result"); } public Map>> diffKeyStartstr( String key, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_diffKeyStartstr(key, start, creds, transaction, environment); return recv_diffKeyStartstr(); } public void send_diffKeyStartstr(String key, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffKeyStartstr_args args = new diffKeyStartstr_args(); args.setKey(key); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffKeyStartstr", args); } public Map>> recv_diffKeyStartstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "diffKeyStartstr failed: unknown result"); } public Map>> diffKeyStartEnd( String key, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_diffKeyStartEnd(key, start, tend, creds, transaction, environment); return recv_diffKeyStartEnd(); } public void send_diffKeyStartEnd(String key, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffKeyStartEnd_args args = new diffKeyStartEnd_args(); args.setKey(key); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffKeyStartEnd", args); } public Map>> recv_diffKeyStartEnd() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "diffKeyStartEnd failed: unknown result"); } public Map>> diffKeyStartstrEndstr( String key, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_diffKeyStartstrEndstr(key, start, tend, creds, transaction, environment); return recv_diffKeyStartstrEndstr(); } public void send_diffKeyStartstrEndstr(String key, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffKeyStartstrEndstr_args args = new diffKeyStartstrEndstr_args(); args.setKey(key); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffKeyStartstrEndstr", args); } public Map>> recv_diffKeyStartstrEndstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "diffKeyStartstrEndstr failed: unknown result"); } public com.cinchapi.concourse.thrift.ComplexTObject invokePlugin( String id, String method, List params, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_invokePlugin(id, method, params, creds, transaction, environment); return recv_invokePlugin(); } public void send_invokePlugin(String id, String method, List params, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { invokePlugin_args args = new invokePlugin_args(); args.setId(id); args.setMethod(method); args.setParams(params); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("invokePlugin", args); } public com.cinchapi.concourse.thrift.ComplexTObject recv_invokePlugin() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex2 != null) { throw result.ex2; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { logout_result result = new logout_result(); receiveBase(result, "logout"); if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } return; } public com.cinchapi.concourse.thrift.TransactionToken stage( com.cinchapi.concourse.thrift.AccessToken token, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "stage failed: unknown result"); } public Set insertJson(String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_insertJson(json, creds, transaction, environment); return recv_insertJson(); } public void send_insertJson(String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { insertJson_args args = new insertJson_args(); args.setJson(json); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("insertJson", args); } public Set recv_insertJson() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } if(result.ex5 != null) { throw result.ex5; } 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, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } if(result.ex5 != null) { throw result.ex5; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "insertJsonRecord failed: unknown result"); } public Map insertJsonRecords(String json, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_insertJsonRecords(json, records, creds, transaction, environment); return recv_insertJsonRecords(); } public void send_insertJsonRecords(String json, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { insertJsonRecords_args args = new insertJsonRecords_args(); args.setJson(json); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("insertJsonRecords", args); } public Map recv_insertJsonRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } if(result.ex5 != null) { throw result.ex5; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "removeKeyValueRecord failed: unknown result"); } public Map removeKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_removeKeyValueRecords(key, value, records, creds, transaction, environment); return recv_removeKeyValueRecords(); } public void send_removeKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { removeKeyValueRecords_args args = new removeKeyValueRecords_args(); args.setKey(key); args.setValue(value); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("removeKeyValueRecords", args); } public Map recv_removeKeyValueRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "setKeyValue failed: unknown result"); } public void setKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_setKeyValueRecords(key, value, records, creds, transaction, environment); recv_setKeyValueRecords(); } public void send_setKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { setKeyValueRecords_args args = new setKeyValueRecords_args(); args.setKey(key); args.setValue(value); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("setKeyValueRecords", args); } public void recv_setKeyValueRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } return; } public void reconcileKeyRecordValues(String key, long record, Set values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_reconcileKeyRecordValues(key, record, values, creds, transaction, environment); recv_reconcileKeyRecordValues(); } public void send_reconcileKeyRecordValues(String key, long record, Set values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { reconcileKeyRecordValues_args args = new reconcileKeyRecordValues_args(); args.setKey(key); args.setRecord(record); args.setValues(values); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("reconcileKeyRecordValues", args); } public void recv_reconcileKeyRecordValues() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } return; } public Set inventory( com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_inventory(creds, transaction, environment); return recv_inventory(); } public void send_inventory( com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { inventory_args args = new inventory_args(); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("inventory", args); } public Set recv_inventory() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "inventory failed: unknown result"); } public Map> selectRecord( long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectRecord(record, creds, transaction, environment); return recv_selectRecord(); } public void send_selectRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectRecord_args args = new selectRecord_args(); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectRecord", args); } public Map> recv_selectRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectRecord failed: unknown result"); } public Map>> selectRecords( List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectRecords(records, creds, transaction, environment); return recv_selectRecords(); } public void send_selectRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectRecords_args args = new selectRecords_args(); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectRecords", args); } public Map>> recv_selectRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectRecords failed: unknown result"); } public Map> selectRecordTime( long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectRecordTime(record, timestamp, creds, transaction, environment); return recv_selectRecordTime(); } public void send_selectRecordTime(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectRecordTime_args args = new selectRecordTime_args(); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectRecordTime", args); } public Map> recv_selectRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectRecordTime failed: unknown result"); } public Map> selectRecordTimestr( long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectRecordTimestr(record, timestamp, creds, transaction, environment); return recv_selectRecordTimestr(); } public void send_selectRecordTimestr(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectRecordTimestr_args args = new selectRecordTimestr_args(); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectRecordTimestr", args); } public Map> recv_selectRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectRecordTimestr failed: unknown result"); } public Map>> selectRecordsTime( List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectRecordsTime(records, timestamp, creds, transaction, environment); return recv_selectRecordsTime(); } public void send_selectRecordsTime(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectRecordsTime_args args = new selectRecordsTime_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectRecordsTime", args); } public Map>> recv_selectRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectRecordsTime failed: unknown result"); } public Map>> selectRecordsTimestr( List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectRecordsTimestr(records, timestamp, creds, transaction, environment); return recv_selectRecordsTimestr(); } public void send_selectRecordsTimestr(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectRecordsTimestr_args args = new selectRecordsTimestr_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectRecordsTimestr", args); } public Map>> recv_selectRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectRecordsTimestr failed: unknown result"); } public Set selectKeyRecord( String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeyRecord(key, record, creds, transaction, environment); return recv_selectKeyRecord(); } public void send_selectKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyRecord_args args = new selectKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyRecord", args); } public Set recv_selectKeyRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyRecord failed: unknown result"); } public Set selectKeyRecordTime( String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeyRecordTime(key, record, timestamp, creds, transaction, environment); return recv_selectKeyRecordTime(); } public void send_selectKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyRecordTime_args args = new selectKeyRecordTime_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyRecordTime", args); } public Set recv_selectKeyRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyRecordTime failed: unknown result"); } public Set selectKeyRecordTimestr( String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeyRecordTimestr(key, record, timestamp, creds, transaction, environment); return recv_selectKeyRecordTimestr(); } public void send_selectKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyRecordTimestr_args args = new selectKeyRecordTimestr_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyRecordTimestr", args); } public Set recv_selectKeyRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyRecordTimestr failed: unknown result"); } public Map> selectKeysRecord( List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeysRecord(keys, record, creds, transaction, environment); return recv_selectKeysRecord(); } public void send_selectKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysRecord_args args = new selectKeysRecord_args(); args.setKeys(keys); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysRecord", args); } public Map> recv_selectKeysRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysRecord failed: unknown result"); } public Map> selectKeysRecordTime( List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeysRecordTime(keys, record, timestamp, creds, transaction, environment); return recv_selectKeysRecordTime(); } public void send_selectKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysRecordTime_args args = new selectKeysRecordTime_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysRecordTime", args); } public Map> recv_selectKeysRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysRecordTime failed: unknown result"); } public Map> selectKeysRecordTimestr( List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeysRecordTimestr(keys, record, timestamp, creds, transaction, environment); return recv_selectKeysRecordTimestr(); } public void send_selectKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysRecordTimestr_args args = new selectKeysRecordTimestr_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysRecordTimestr", args); } public Map> recv_selectKeysRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysRecordTimestr failed: unknown result"); } public Map>> selectKeysRecords( List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeysRecords(keys, records, creds, transaction, environment); return recv_selectKeysRecords(); } public void send_selectKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysRecords_args args = new selectKeysRecords_args(); args.setKeys(keys); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysRecords", args); } public Map>> recv_selectKeysRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysRecords failed: unknown result"); } public Map> selectKeyRecords( String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeyRecords(key, records, creds, transaction, environment); return recv_selectKeyRecords(); } public void send_selectKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyRecords_args args = new selectKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyRecords", args); } public Map> recv_selectKeyRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyRecords failed: unknown result"); } public Map> selectKeyRecordsTime( String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeyRecordsTime(key, records, timestamp, creds, transaction, environment); return recv_selectKeyRecordsTime(); } public void send_selectKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyRecordsTime_args args = new selectKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyRecordsTime", args); } public Map> recv_selectKeyRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyRecordsTime failed: unknown result"); } public Map> selectKeyRecordsTimestr( String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeyRecordsTimestr(key, records, timestamp, creds, transaction, environment); return recv_selectKeyRecordsTimestr(); } public void send_selectKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyRecordsTimestr_args args = new selectKeyRecordsTimestr_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyRecordsTimestr", args); } public Map> recv_selectKeyRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyRecordsTimestr failed: unknown result"); } public Map>> selectKeysRecordsTime( List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeysRecordsTime(keys, records, timestamp, creds, transaction, environment); return recv_selectKeysRecordsTime(); } public void send_selectKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysRecordsTime_args args = new selectKeysRecordsTime_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysRecordsTime", args); } public Map>> recv_selectKeysRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysRecordsTime failed: unknown result"); } public Map>> selectKeysRecordsTimestr( List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeysRecordsTimestr(keys, records, timestamp, creds, transaction, environment); return recv_selectKeysRecordsTimestr(); } public void send_selectKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysRecordsTimestr_args args = new selectKeysRecordsTimestr_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysRecordsTimestr", args); } public Map>> recv_selectKeysRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysRecordsTimestr failed: unknown result"); } public Map>> selectCriteria( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectCriteria(criteria, creds, transaction, environment); return recv_selectCriteria(); } public void send_selectCriteria( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectCriteria_args args = new selectCriteria_args(); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectCriteria", args); } public Map>> recv_selectCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectCriteria failed: unknown result"); } public Map>> selectCcl( String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectCcl(ccl, creds, transaction, environment); return recv_selectCcl(); } public void send_selectCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectCcl_args args = new selectCcl_args(); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectCcl", args); } public Map>> recv_selectCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectCcl failed: unknown result"); } public Map>> selectCriteriaTime( com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectCriteriaTime(criteria, timestamp, creds, transaction, environment); return recv_selectCriteriaTime(); } public void send_selectCriteriaTime( com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectCriteriaTime_args args = new selectCriteriaTime_args(); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectCriteriaTime", args); } public Map>> recv_selectCriteriaTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectCriteriaTime failed: unknown result"); } public Map>> selectCriteriaTimestr( com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectCriteriaTimestr(criteria, timestamp, creds, transaction, environment); return recv_selectCriteriaTimestr(); } public void send_selectCriteriaTimestr( com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectCriteriaTimestr_args args = new selectCriteriaTimestr_args(); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectCriteriaTimestr", args); } public Map>> recv_selectCriteriaTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectCriteriaTimestr failed: unknown result"); } public Map>> selectCclTime( String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectCclTime(ccl, timestamp, creds, transaction, environment); return recv_selectCclTime(); } public void send_selectCclTime(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectCclTime_args args = new selectCclTime_args(); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectCclTime", args); } public Map>> recv_selectCclTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectCclTime failed: unknown result"); } public Map>> selectCclTimestr( String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectCclTimestr(ccl, timestamp, creds, transaction, environment); return recv_selectCclTimestr(); } public void send_selectCclTimestr(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectCclTimestr_args args = new selectCclTimestr_args(); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectCclTimestr", args); } public Map>> recv_selectCclTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectCclTimestr failed: unknown result"); } public Map> selectKeyCriteria( String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeyCriteria(key, criteria, creds, transaction, environment); return recv_selectKeyCriteria(); } public void send_selectKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyCriteria_args args = new selectKeyCriteria_args(); args.setKey(key); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyCriteria", args); } public Map> recv_selectKeyCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyCriteria failed: unknown result"); } public Map> selectKeyCcl( String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeyCcl(key, ccl, creds, transaction, environment); return recv_selectKeyCcl(); } public void send_selectKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyCcl_args args = new selectKeyCcl_args(); args.setKey(key); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyCcl", args); } public Map> recv_selectKeyCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyCcl failed: unknown result"); } public Map> selectKeyCriteriaTime( String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeyCriteriaTime(key, criteria, timestamp, creds, transaction, environment); return recv_selectKeyCriteriaTime(); } public void send_selectKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyCriteriaTime_args args = new selectKeyCriteriaTime_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyCriteriaTime", args); } public Map> recv_selectKeyCriteriaTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyCriteriaTime failed: unknown result"); } public Map> selectKeyCriteriaTimestr( String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeyCriteriaTimestr(key, criteria, timestamp, creds, transaction, environment); return recv_selectKeyCriteriaTimestr(); } public void send_selectKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyCriteriaTimestr_args args = new selectKeyCriteriaTimestr_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyCriteriaTimestr", args); } public Map> recv_selectKeyCriteriaTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyCriteriaTimestr failed: unknown result"); } public Map> selectKeyCclTime( String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeyCclTime(key, ccl, timestamp, creds, transaction, environment); return recv_selectKeyCclTime(); } public void send_selectKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyCclTime_args args = new selectKeyCclTime_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyCclTime", args); } public Map> recv_selectKeyCclTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyCclTime failed: unknown result"); } public Map> selectKeyCclTimestr( String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeyCclTimestr(key, ccl, timestamp, creds, transaction, environment); return recv_selectKeyCclTimestr(); } public void send_selectKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyCclTimestr_args args = new selectKeyCclTimestr_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyCclTimestr", args); } public Map> recv_selectKeyCclTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyCclTimestr failed: unknown result"); } public Map>> selectKeysCriteria( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeysCriteria(keys, criteria, creds, transaction, environment); return recv_selectKeysCriteria(); } public void send_selectKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysCriteria_args args = new selectKeysCriteria_args(); args.setKeys(keys); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysCriteria", args); } public Map>> recv_selectKeysCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysCriteria failed: unknown result"); } public Map>> selectKeysCcl( List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeysCcl(keys, ccl, creds, transaction, environment); return recv_selectKeysCcl(); } public void send_selectKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysCcl_args args = new selectKeysCcl_args(); args.setKeys(keys); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysCcl", args); } public Map>> recv_selectKeysCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysCcl failed: unknown result"); } public Map>> selectKeysCriteriaTime( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeysCriteriaTime(keys, criteria, timestamp, creds, transaction, environment); return recv_selectKeysCriteriaTime(); } public void send_selectKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysCriteriaTime_args args = new selectKeysCriteriaTime_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysCriteriaTime", args); } public Map>> recv_selectKeysCriteriaTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysCriteriaTime failed: unknown result"); } public Map>> selectKeysCriteriaTimestr( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeysCriteriaTimestr(keys, criteria, timestamp, creds, transaction, environment); return recv_selectKeysCriteriaTimestr(); } public void send_selectKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysCriteriaTimestr_args args = new selectKeysCriteriaTimestr_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysCriteriaTimestr", args); } public Map>> recv_selectKeysCriteriaTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysCriteriaTimestr failed: unknown result"); } public Map>> selectKeysCclTime( List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeysCclTime(keys, ccl, timestamp, creds, transaction, environment); return recv_selectKeysCclTime(); } public void send_selectKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysCclTime_args args = new selectKeysCclTime_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysCclTime", args); } public Map>> recv_selectKeysCclTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysCclTime failed: unknown result"); } public Map>> selectKeysCclTimestr( List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_selectKeysCclTimestr(keys, ccl, timestamp, creds, transaction, environment); return recv_selectKeysCclTimestr(); } public void send_selectKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysCclTimestr_args args = new selectKeysCclTimestr_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysCclTimestr", args); } public Map>> recv_selectKeysCclTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyRecordTimestr failed: unknown result"); } public Map getKeysRecord( List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getKeysRecord(keys, record, creds, transaction, environment); return recv_getKeysRecord(); } public void send_getKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysRecord_args args = new getKeysRecord_args(); args.setKeys(keys); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysRecord", args); } public Map recv_getKeysRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysRecord failed: unknown result"); } public Map getKeysRecordTime( List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getKeysRecordTime(keys, record, timestamp, creds, transaction, environment); return recv_getKeysRecordTime(); } public void send_getKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysRecordTime_args args = new getKeysRecordTime_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysRecordTime", args); } public Map recv_getKeysRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysRecordTime failed: unknown result"); } public Map getKeysRecordTimestr( List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getKeysRecordTimestr(keys, record, timestamp, creds, transaction, environment); return recv_getKeysRecordTimestr(); } public void send_getKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysRecordTimestr_args args = new getKeysRecordTimestr_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysRecordTimestr", args); } public Map recv_getKeysRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysRecordTimestr failed: unknown result"); } public Map> getKeysRecords( List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getKeysRecords(keys, records, creds, transaction, environment); return recv_getKeysRecords(); } public void send_getKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysRecords_args args = new getKeysRecords_args(); args.setKeys(keys); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysRecords", args); } public Map> recv_getKeysRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysRecords failed: unknown result"); } public Map getKeyRecords( String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getKeyRecords(key, records, creds, transaction, environment); return recv_getKeyRecords(); } public void send_getKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeyRecords_args args = new getKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeyRecords", args); } public Map recv_getKeyRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyRecords failed: unknown result"); } public Map getKeyRecordsTime( String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getKeyRecordsTime(key, records, timestamp, creds, transaction, environment); return recv_getKeyRecordsTime(); } public void send_getKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeyRecordsTime_args args = new getKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeyRecordsTime", args); } public Map recv_getKeyRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyRecordsTime failed: unknown result"); } public Map getKeyRecordsTimestr( String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getKeyRecordsTimestr(key, records, timestamp, creds, transaction, environment); return recv_getKeyRecordsTimestr(); } public void send_getKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeyRecordsTimestr_args args = new getKeyRecordsTimestr_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeyRecordsTimestr", args); } public Map recv_getKeyRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyRecordsTimestr failed: unknown result"); } public Map> getKeysRecordsTime( List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getKeysRecordsTime(keys, records, timestamp, creds, transaction, environment); return recv_getKeysRecordsTime(); } public void send_getKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysRecordsTime_args args = new getKeysRecordsTime_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysRecordsTime", args); } public Map> recv_getKeysRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysRecordsTime failed: unknown result"); } public Map> getKeysRecordsTimestr( List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getKeysRecordsTimestr(keys, records, timestamp, creds, transaction, environment); return recv_getKeysRecordsTimestr(); } public void send_getKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysRecordsTimestr_args args = new getKeysRecordsTimestr_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysRecordsTimestr", args); } public Map> recv_getKeysRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysRecordsTimestr failed: unknown result"); } public Map getKeyCriteria( String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getKeyCriteria(key, criteria, creds, transaction, environment); return recv_getKeyCriteria(); } public void send_getKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeyCriteria_args args = new getKeyCriteria_args(); args.setKey(key); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeyCriteria", args); } public Map recv_getKeyCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyCriteria failed: unknown result"); } public Map> getCriteria( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getCriteria(criteria, creds, transaction, environment); return recv_getCriteria(); } public void send_getCriteria( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getCriteria_args args = new getCriteria_args(); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getCriteria", args); } public Map> recv_getCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getCriteria failed: unknown result"); } public Map> getCcl( String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getCcl(ccl, creds, transaction, environment); return recv_getCcl(); } public void send_getCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getCcl_args args = new getCcl_args(); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getCcl", args); } public Map> recv_getCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getCcl failed: unknown result"); } public Map> getCriteriaTime( com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getCriteriaTime(criteria, timestamp, creds, transaction, environment); return recv_getCriteriaTime(); } public void send_getCriteriaTime( com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getCriteriaTime_args args = new getCriteriaTime_args(); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getCriteriaTime", args); } public Map> recv_getCriteriaTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getCriteriaTime failed: unknown result"); } public Map> getCriteriaTimestr( com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getCriteriaTimestr(criteria, timestamp, creds, transaction, environment); return recv_getCriteriaTimestr(); } public void send_getCriteriaTimestr( com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getCriteriaTimestr_args args = new getCriteriaTimestr_args(); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getCriteriaTimestr", args); } public Map> recv_getCriteriaTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getCriteriaTimestr failed: unknown result"); } public Map> getCclTime( String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getCclTime(ccl, timestamp, creds, transaction, environment); return recv_getCclTime(); } public void send_getCclTime(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getCclTime_args args = new getCclTime_args(); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getCclTime", args); } public Map> recv_getCclTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getCclTime failed: unknown result"); } public Map> getCclTimestr( String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getCclTimestr(ccl, timestamp, creds, transaction, environment); return recv_getCclTimestr(); } public void send_getCclTimestr(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getCclTimestr_args args = new getCclTimestr_args(); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getCclTimestr", args); } public Map> recv_getCclTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getCclTimestr failed: unknown result"); } public Map getKeyCcl( String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getKeyCcl(key, ccl, creds, transaction, environment); return recv_getKeyCcl(); } public void send_getKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeyCcl_args args = new getKeyCcl_args(); args.setKey(key); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeyCcl", args); } public Map recv_getKeyCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyCcl failed: unknown result"); } public Map getKeyCriteriaTime( String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getKeyCriteriaTime(key, criteria, timestamp, creds, transaction, environment); return recv_getKeyCriteriaTime(); } public void send_getKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeyCriteriaTime_args args = new getKeyCriteriaTime_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeyCriteriaTime", args); } public Map recv_getKeyCriteriaTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyCriteriaTime failed: unknown result"); } public Map getKeyCriteriaTimestr( String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getKeyCriteriaTimestr(key, criteria, timestamp, creds, transaction, environment); return recv_getKeyCriteriaTimestr(); } public void send_getKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeyCriteriaTimestr_args args = new getKeyCriteriaTimestr_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeyCriteriaTimestr", args); } public Map recv_getKeyCriteriaTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyCriteriaTimestr failed: unknown result"); } public Map getKeyCclTime( String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getKeyCclTime(key, ccl, timestamp, creds, transaction, environment); return recv_getKeyCclTime(); } public void send_getKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeyCclTime_args args = new getKeyCclTime_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeyCclTime", args); } public Map recv_getKeyCclTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyCclTime failed: unknown result"); } public Map getKeyCclTimestr( String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getKeyCclTimestr(key, ccl, timestamp, creds, transaction, environment); return recv_getKeyCclTimestr(); } public void send_getKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeyCclTimestr_args args = new getKeyCclTimestr_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeyCclTimestr", args); } public Map recv_getKeyCclTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyCclTimestr failed: unknown result"); } public Map> getKeysCriteria( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getKeysCriteria(keys, criteria, creds, transaction, environment); return recv_getKeysCriteria(); } public void send_getKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysCriteria_args args = new getKeysCriteria_args(); args.setKeys(keys); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysCriteria", args); } public Map> recv_getKeysCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysCriteria failed: unknown result"); } public Map> getKeysCcl( List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getKeysCcl(keys, ccl, creds, transaction, environment); return recv_getKeysCcl(); } public void send_getKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysCcl_args args = new getKeysCcl_args(); args.setKeys(keys); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysCcl", args); } public Map> recv_getKeysCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysCcl failed: unknown result"); } public Map> getKeysCriteriaTime( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getKeysCriteriaTime(keys, criteria, timestamp, creds, transaction, environment); return recv_getKeysCriteriaTime(); } public void send_getKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysCriteriaTime_args args = new getKeysCriteriaTime_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysCriteriaTime", args); } public Map> recv_getKeysCriteriaTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysCriteriaTime failed: unknown result"); } public Map> getKeysCriteriaTimestr( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getKeysCriteriaTimestr(keys, criteria, timestamp, creds, transaction, environment); return recv_getKeysCriteriaTimestr(); } public void send_getKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysCriteriaTimestr_args args = new getKeysCriteriaTimestr_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysCriteriaTimestr", args); } public Map> recv_getKeysCriteriaTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysCriteriaTimestr failed: unknown result"); } public Map> getKeysCclTime( List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getKeysCclTime(keys, ccl, timestamp, creds, transaction, environment); return recv_getKeysCclTime(); } public void send_getKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysCclTime_args args = new getKeysCclTime_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysCclTime", args); } public Map> recv_getKeysCclTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysCclTime failed: unknown result"); } public Map> getKeysCclTimestr( List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_getKeysCclTimestr(keys, ccl, timestamp, creds, transaction, environment); return recv_getKeysCclTimestr(); } public void send_getKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysCclTimestr_args args = new getKeysCclTimestr_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysCclTimestr", args); } public Map> recv_getKeysCclTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "verifyKeyValueRecordTimestr failed: unknown result"); } public String jsonifyRecords(List records, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_jsonifyRecords(records, identifier, creds, transaction, environment); return recv_jsonifyRecords(); } public void send_jsonifyRecords(List records, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { jsonifyRecords_args args = new jsonifyRecords_args(); args.setRecords(records); args.setIdentifier(identifier); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("jsonifyRecords", args); } public String recv_jsonifyRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "jsonifyRecords failed: unknown result"); } public String jsonifyRecordsTime(List records, long timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_jsonifyRecordsTime(records, timestamp, identifier, creds, transaction, environment); return recv_jsonifyRecordsTime(); } public void send_jsonifyRecordsTime(List records, long timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { jsonifyRecordsTime_args args = new jsonifyRecordsTime_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setIdentifier(identifier); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("jsonifyRecordsTime", args); } public String recv_jsonifyRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "jsonifyRecordsTime failed: unknown result"); } public String jsonifyRecordsTimestr(List records, String timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_jsonifyRecordsTimestr(records, timestamp, identifier, creds, transaction, environment); return recv_jsonifyRecordsTimestr(); } public void send_jsonifyRecordsTimestr(List records, String timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { jsonifyRecordsTimestr_args args = new jsonifyRecordsTimestr_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setIdentifier(identifier); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("jsonifyRecordsTimestr", args); } public String recv_jsonifyRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "jsonifyRecordsTimestr failed: unknown result"); } public Set findCriteria( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_findCriteria(criteria, creds, transaction, environment); return recv_findCriteria(); } public void send_findCriteria( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { findCriteria_args args = new findCriteria_args(); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("findCriteria", args); } public Set recv_findCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "findCriteria failed: unknown result"); } public Set findCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_findCcl(ccl, creds, transaction, environment); return recv_findCcl(); } public void send_findCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { findCcl_args args = new findCcl_args(); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("findCcl", args); } public Set recv_findCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "findCcl failed: unknown result"); } public Set findKeyOperatorValues(String key, com.cinchapi.concourse.thrift.Operator operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_findKeyOperatorValues(key, operator, values, creds, transaction, environment); return recv_findKeyOperatorValues(); } public void send_findKeyOperatorValues(String key, com.cinchapi.concourse.thrift.Operator operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { findKeyOperatorValues_args args = new findKeyOperatorValues_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("findKeyOperatorValues", args); } public Set recv_findKeyOperatorValues() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "findKeyOperatorValues failed: unknown result"); } public Set findKeyOperatorValuesTime(String key, com.cinchapi.concourse.thrift.Operator operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_findKeyOperatorValuesTime(key, operator, values, timestamp, creds, transaction, environment); return recv_findKeyOperatorValuesTime(); } public void send_findKeyOperatorValuesTime(String key, com.cinchapi.concourse.thrift.Operator operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { findKeyOperatorValuesTime_args args = new findKeyOperatorValuesTime_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("findKeyOperatorValuesTime", args); } public Set recv_findKeyOperatorValuesTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "findKeyOperatorValuesTime failed: unknown result"); } public Set findKeyOperatorValuesTimestr(String key, com.cinchapi.concourse.thrift.Operator operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_findKeyOperatorValuesTimestr(key, operator, values, timestamp, creds, transaction, environment); return recv_findKeyOperatorValuesTimestr(); } public void send_findKeyOperatorValuesTimestr(String key, com.cinchapi.concourse.thrift.Operator operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { findKeyOperatorValuesTimestr_args args = new findKeyOperatorValuesTimestr_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("findKeyOperatorValuesTimestr", args); } public Set recv_findKeyOperatorValuesTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "findKeyOperatorValuesTimestr failed: unknown result"); } public Set findKeyOperatorstrValues(String key, String operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_findKeyOperatorstrValues(key, operator, values, creds, transaction, environment); return recv_findKeyOperatorstrValues(); } public void send_findKeyOperatorstrValues(String key, String operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { findKeyOperatorstrValues_args args = new findKeyOperatorstrValues_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("findKeyOperatorstrValues", args); } public Set recv_findKeyOperatorstrValues() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "findKeyOperatorstrValues failed: unknown result"); } public Set findKeyOperatorstrValuesTime(String key, String operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_findKeyOperatorstrValuesTime(key, operator, values, timestamp, creds, transaction, environment); return recv_findKeyOperatorstrValuesTime(); } public void send_findKeyOperatorstrValuesTime(String key, String operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { findKeyOperatorstrValuesTime_args args = new findKeyOperatorstrValuesTime_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("findKeyOperatorstrValuesTime", args); } public Set recv_findKeyOperatorstrValuesTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "findKeyOperatorstrValuesTime failed: unknown result"); } public Set findKeyOperatorstrValuesTimestr(String key, String operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_findKeyOperatorstrValuesTimestr(key, operator, values, timestamp, creds, transaction, environment); return recv_findKeyOperatorstrValuesTimestr(); } public void send_findKeyOperatorstrValuesTimestr(String key, String operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { findKeyOperatorstrValuesTimestr_args args = new findKeyOperatorstrValuesTimestr_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("findKeyOperatorstrValuesTimestr", args); } public Set recv_findKeyOperatorstrValuesTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "findKeyOperatorstrValuesTimestr failed: unknown result"); } public Set search(String key, String query, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_search(key, query, creds, transaction, environment); return recv_search(); } public void send_search(String key, String query, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { search_args args = new search_args(); args.setKey(key); args.setQuery(query); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("search", args); } public Set recv_search() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "search failed: unknown result"); } public void revertKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_revertKeysRecordsTime(keys, records, timestamp, creds, transaction, environment); recv_revertKeysRecordsTime(); } public void send_revertKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { revertKeysRecordsTime_args args = new revertKeysRecordsTime_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("revertKeysRecordsTime", args); } public void recv_revertKeysRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } return; } public void revertKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_revertKeysRecordsTimestr(keys, records, timestamp, creds, transaction, environment); recv_revertKeysRecordsTimestr(); } public void send_revertKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { revertKeysRecordsTimestr_args args = new revertKeysRecordsTimestr_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("revertKeysRecordsTimestr", args); } public void recv_revertKeysRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } return; } public void revertKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_revertKeysRecordTime(keys, record, timestamp, creds, transaction, environment); recv_revertKeysRecordTime(); } public void send_revertKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { revertKeysRecordTime_args args = new revertKeysRecordTime_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("revertKeysRecordTime", args); } public void recv_revertKeysRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } return; } public void revertKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_revertKeysRecordTimestr(keys, record, timestamp, creds, transaction, environment); recv_revertKeysRecordTimestr(); } public void send_revertKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { revertKeysRecordTimestr_args args = new revertKeysRecordTimestr_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("revertKeysRecordTimestr", args); } public void recv_revertKeysRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } return; } public void revertKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_revertKeyRecordsTime(key, records, timestamp, creds, transaction, environment); recv_revertKeyRecordsTime(); } public void send_revertKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { revertKeyRecordsTime_args args = new revertKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("revertKeyRecordsTime", args); } public void recv_revertKeyRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } return; } public void revertKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_revertKeyRecordsTimestr(key, records, timestamp, creds, transaction, environment); recv_revertKeyRecordsTimestr(); } public void send_revertKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { revertKeyRecordsTimestr_args args = new revertKeyRecordsTimestr_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("revertKeyRecordsTimestr", args); } public void recv_revertKeyRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } return; } public Map pingRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_pingRecords(records, creds, transaction, environment); return recv_pingRecords(); } public void send_pingRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { pingRecords_args args = new pingRecords_args(); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("pingRecords", args); } public Map recv_pingRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex5 != null) { throw result.ex5; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex5 != null) { throw result.ex5; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "sumKeyRecord 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "sumKeyRecordTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject sumKeyRecordTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_sumKeyRecordTimestr(key, record, timestamp, creds, transaction, environment); return recv_sumKeyRecordTimestr(); } public void send_sumKeyRecordTimestr(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 { sumKeyRecordTimestr_args args = new sumKeyRecordTimestr_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("sumKeyRecordTimestr", args); } public com.cinchapi.concourse.thrift.TObject recv_sumKeyRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { sumKeyRecordTimestr_result result = new sumKeyRecordTimestr_result(); receiveBase(result, "sumKeyRecordTimestr"); 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, "sumKeyRecordTimestr failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject sumKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_sumKeyRecords(key, records, creds, transaction, environment); return recv_sumKeyRecords(); } public void send_sumKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { sumKeyRecords_args args = new sumKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("sumKeyRecords", args); } public com.cinchapi.concourse.thrift.TObject recv_sumKeyRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "sumKeyRecords failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject sumKeyRecordsTime( String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_sumKeyRecordsTime(key, records, timestamp, creds, transaction, environment); return recv_sumKeyRecordsTime(); } public void send_sumKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { sumKeyRecordsTime_args args = new sumKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("sumKeyRecordsTime", args); } public com.cinchapi.concourse.thrift.TObject recv_sumKeyRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "sumKeyRecordsTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject sumKeyRecordsTimestr( String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_sumKeyRecordsTimestr(key, records, timestamp, creds, transaction, environment); return recv_sumKeyRecordsTimestr(); } public void send_sumKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { sumKeyRecordsTimestr_args args = new sumKeyRecordsTimestr_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("sumKeyRecordsTimestr", args); } public com.cinchapi.concourse.thrift.TObject recv_sumKeyRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { sumKeyRecordsTimestr_result result = new sumKeyRecordsTimestr_result(); receiveBase(result, "sumKeyRecordsTimestr"); 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, "sumKeyRecordsTimestr 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "sumKeyTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject sumKeyTimestr(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_sumKeyTimestr(key, timestamp, creds, transaction, environment); return recv_sumKeyTimestr(); } public void send_sumKeyTimestr(String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { sumKeyTimestr_args args = new sumKeyTimestr_args(); args.setKey(key); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("sumKeyTimestr", args); } public com.cinchapi.concourse.thrift.TObject recv_sumKeyTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { sumKeyTimestr_result result = new sumKeyTimestr_result(); receiveBase(result, "sumKeyTimestr"); 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, "sumKeyTimestr 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "sumKeyCriteria 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "sumKeyCriteriaTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject sumKeyCriteriaTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_sumKeyCriteriaTimestr(key, criteria, timestamp, creds, transaction, environment); return recv_sumKeyCriteriaTimestr(); } public void send_sumKeyCriteriaTimestr(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 { sumKeyCriteriaTimestr_args args = new sumKeyCriteriaTimestr_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("sumKeyCriteriaTimestr", args); } public com.cinchapi.concourse.thrift.TObject recv_sumKeyCriteriaTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { sumKeyCriteriaTimestr_result result = new sumKeyCriteriaTimestr_result(); receiveBase(result, "sumKeyCriteriaTimestr"); 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, "sumKeyCriteriaTimestr 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "sumKeyCcl 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "sumKeyCclTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject sumKeyCclTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_sumKeyCclTimestr(key, ccl, timestamp, creds, transaction, environment); return recv_sumKeyCclTimestr(); } public void send_sumKeyCclTimestr(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 { sumKeyCclTimestr_args args = new sumKeyCclTimestr_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("sumKeyCclTimestr", args); } public com.cinchapi.concourse.thrift.TObject recv_sumKeyCclTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { sumKeyCclTimestr_result result = new sumKeyCclTimestr_result(); receiveBase(result, "sumKeyCclTimestr"); 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, "sumKeyCclTimestr 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "averageKeyRecord 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "averageKeyRecordTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject averageKeyRecordTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_averageKeyRecordTimestr(key, record, timestamp, creds, transaction, environment); return recv_averageKeyRecordTimestr(); } public void send_averageKeyRecordTimestr(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 { averageKeyRecordTimestr_args args = new averageKeyRecordTimestr_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("averageKeyRecordTimestr", args); } public com.cinchapi.concourse.thrift.TObject recv_averageKeyRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { averageKeyRecordTimestr_result result = new averageKeyRecordTimestr_result(); receiveBase(result, "averageKeyRecordTimestr"); 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, "averageKeyRecordTimestr failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject averageKeyRecords( String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_averageKeyRecords(key, records, creds, transaction, environment); return recv_averageKeyRecords(); } public void send_averageKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { averageKeyRecords_args args = new averageKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("averageKeyRecords", args); } public com.cinchapi.concourse.thrift.TObject recv_averageKeyRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "averageKeyRecords failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject averageKeyRecordsTime( String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_averageKeyRecordsTime(key, records, timestamp, creds, transaction, environment); return recv_averageKeyRecordsTime(); } public void send_averageKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { averageKeyRecordsTime_args args = new averageKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("averageKeyRecordsTime", args); } public com.cinchapi.concourse.thrift.TObject recv_averageKeyRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "averageKeyRecordsTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject averageKeyRecordsTimestr( String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_averageKeyRecordsTimestr(key, records, timestamp, creds, transaction, environment); return recv_averageKeyRecordsTimestr(); } public void send_averageKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { averageKeyRecordsTimestr_args args = new averageKeyRecordsTimestr_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("averageKeyRecordsTimestr", args); } public com.cinchapi.concourse.thrift.TObject recv_averageKeyRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { averageKeyRecordsTimestr_result result = new averageKeyRecordsTimestr_result(); receiveBase(result, "averageKeyRecordsTimestr"); 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, "averageKeyRecordsTimestr 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "averageKeyTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject averageKeyTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_averageKeyTimestr(key, timestamp, creds, transaction, environment); return recv_averageKeyTimestr(); } public void send_averageKeyTimestr(String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { averageKeyTimestr_args args = new averageKeyTimestr_args(); args.setKey(key); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("averageKeyTimestr", args); } public com.cinchapi.concourse.thrift.TObject recv_averageKeyTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { averageKeyTimestr_result result = new averageKeyTimestr_result(); receiveBase(result, "averageKeyTimestr"); 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, "averageKeyTimestr 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "averageKeyCriteria 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "averageKeyCriteriaTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject averageKeyCriteriaTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_averageKeyCriteriaTimestr(key, criteria, timestamp, creds, transaction, environment); return recv_averageKeyCriteriaTimestr(); } public void send_averageKeyCriteriaTimestr(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 { averageKeyCriteriaTimestr_args args = new averageKeyCriteriaTimestr_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("averageKeyCriteriaTimestr", args); } public com.cinchapi.concourse.thrift.TObject recv_averageKeyCriteriaTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { averageKeyCriteriaTimestr_result result = new averageKeyCriteriaTimestr_result(); receiveBase(result, "averageKeyCriteriaTimestr"); 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, "averageKeyCriteriaTimestr 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "averageKeyCcl 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "averageKeyCclTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject averageKeyCclTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_averageKeyCclTimestr(key, ccl, timestamp, creds, transaction, environment); return recv_averageKeyCclTimestr(); } public void send_averageKeyCclTimestr(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 { averageKeyCclTimestr_args args = new averageKeyCclTimestr_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("averageKeyCclTimestr", args); } public com.cinchapi.concourse.thrift.TObject recv_averageKeyCclTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { averageKeyCclTimestr_result result = new averageKeyCclTimestr_result(); receiveBase(result, "averageKeyCclTimestr"); 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, "averageKeyCclTimestr failed: unknown result"); } public long countKeyRecord(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_countKeyRecord(key, record, creds, transaction, environment); return recv_countKeyRecord(); } public void send_countKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { countKeyRecord_args args = new countKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("countKeyRecord", args); } public long recv_countKeyRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { countKeyRecord_result result = new countKeyRecord_result(); receiveBase(result, "countKeyRecord"); 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, "countKeyRecord failed: unknown result"); } public long countKeyRecordTime(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_countKeyRecordTime(key, record, timestamp, creds, transaction, environment); return recv_countKeyRecordTime(); } public void send_countKeyRecordTime(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 { countKeyRecordTime_args args = new countKeyRecordTime_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("countKeyRecordTime", args); } public long recv_countKeyRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { countKeyRecordTime_result result = new countKeyRecordTime_result(); receiveBase(result, "countKeyRecordTime"); 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, "countKeyRecordTime failed: unknown result"); } public long countKeyRecordTimestr(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_countKeyRecordTimestr(key, record, timestamp, creds, transaction, environment); return recv_countKeyRecordTimestr(); } public void send_countKeyRecordTimestr(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 { countKeyRecordTimestr_args args = new countKeyRecordTimestr_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("countKeyRecordTimestr", args); } public long recv_countKeyRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { countKeyRecordTimestr_result result = new countKeyRecordTimestr_result(); receiveBase(result, "countKeyRecordTimestr"); 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, "countKeyRecordTimestr failed: unknown result"); } public long countKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_countKeyRecords(key, records, creds, transaction, environment); return recv_countKeyRecords(); } public void send_countKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { countKeyRecords_args args = new countKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("countKeyRecords", args); } public long recv_countKeyRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { countKeyRecords_result result = new countKeyRecords_result(); receiveBase(result, "countKeyRecords"); 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, "countKeyRecords failed: unknown result"); } public long countKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_countKeyRecordsTime(key, records, timestamp, creds, transaction, environment); return recv_countKeyRecordsTime(); } public void send_countKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { countKeyRecordsTime_args args = new countKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("countKeyRecordsTime", args); } public long recv_countKeyRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { countKeyRecordsTime_result result = new countKeyRecordsTime_result(); receiveBase(result, "countKeyRecordsTime"); 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, "countKeyRecordsTime failed: unknown result"); } public long countKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_countKeyRecordsTimestr(key, records, timestamp, creds, transaction, environment); return recv_countKeyRecordsTimestr(); } public void send_countKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { countKeyRecordsTimestr_args args = new countKeyRecordsTimestr_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("countKeyRecordsTimestr", args); } public long recv_countKeyRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { countKeyRecordsTimestr_result result = new countKeyRecordsTimestr_result(); receiveBase(result, "countKeyRecordsTimestr"); 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, "countKeyRecordsTimestr failed: unknown result"); } public long countKey(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_countKey(key, creds, transaction, environment); return recv_countKey(); } public void send_countKey(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { countKey_args args = new countKey_args(); args.setKey(key); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("countKey", args); } public long recv_countKey() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { countKey_result result = new countKey_result(); receiveBase(result, "countKey"); 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, "countKey failed: unknown result"); } public long countKeyTime(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_countKeyTime(key, timestamp, creds, transaction, environment); return recv_countKeyTime(); } public void send_countKeyTime(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { countKeyTime_args args = new countKeyTime_args(); args.setKey(key); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("countKeyTime", args); } public long recv_countKeyTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { countKeyTime_result result = new countKeyTime_result(); receiveBase(result, "countKeyTime"); 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, "countKeyTime failed: unknown result"); } public long countKeyTimestr(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_countKeyTimestr(key, timestamp, creds, transaction, environment); return recv_countKeyTimestr(); } public void send_countKeyTimestr(String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { countKeyTimestr_args args = new countKeyTimestr_args(); args.setKey(key); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("countKeyTimestr", args); } public long recv_countKeyTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { countKeyTimestr_result result = new countKeyTimestr_result(); receiveBase(result, "countKeyTimestr"); 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, "countKeyTimestr failed: unknown result"); } public long countKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_countKeyCriteria(key, criteria, creds, transaction, environment); return recv_countKeyCriteria(); } public void send_countKeyCriteria(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 { countKeyCriteria_args args = new countKeyCriteria_args(); args.setKey(key); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("countKeyCriteria", args); } public long recv_countKeyCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { countKeyCriteria_result result = new countKeyCriteria_result(); receiveBase(result, "countKeyCriteria"); 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, "countKeyCriteria failed: unknown result"); } public long countKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_countKeyCriteriaTime(key, criteria, timestamp, creds, transaction, environment); return recv_countKeyCriteriaTime(); } public void send_countKeyCriteriaTime(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 { countKeyCriteriaTime_args args = new countKeyCriteriaTime_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("countKeyCriteriaTime", args); } public long recv_countKeyCriteriaTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { countKeyCriteriaTime_result result = new countKeyCriteriaTime_result(); receiveBase(result, "countKeyCriteriaTime"); 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, "countKeyCriteriaTime failed: unknown result"); } public long countKeyCriteriaTimestr(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_countKeyCriteriaTimestr(key, criteria, timestamp, creds, transaction, environment); return recv_countKeyCriteriaTimestr(); } public void send_countKeyCriteriaTimestr(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 { countKeyCriteriaTimestr_args args = new countKeyCriteriaTimestr_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("countKeyCriteriaTimestr", args); } public long recv_countKeyCriteriaTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { countKeyCriteriaTimestr_result result = new countKeyCriteriaTimestr_result(); receiveBase(result, "countKeyCriteriaTimestr"); 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, "countKeyCriteriaTimestr failed: unknown result"); } public long countKeyCcl(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_countKeyCcl(key, ccl, creds, transaction, environment); return recv_countKeyCcl(); } public void send_countKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { countKeyCcl_args args = new countKeyCcl_args(); args.setKey(key); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("countKeyCcl", args); } public long recv_countKeyCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { countKeyCcl_result result = new countKeyCcl_result(); receiveBase(result, "countKeyCcl"); 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, "countKeyCcl failed: unknown result"); } public long countKeyCclTime(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_countKeyCclTime(key, ccl, timestamp, creds, transaction, environment); return recv_countKeyCclTime(); } public void send_countKeyCclTime(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 { countKeyCclTime_args args = new countKeyCclTime_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("countKeyCclTime", args); } public long recv_countKeyCclTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { countKeyCclTime_result result = new countKeyCclTime_result(); receiveBase(result, "countKeyCclTime"); 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, "countKeyCclTime failed: unknown result"); } public long countKeyCclTimestr(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_countKeyCclTimestr(key, ccl, timestamp, creds, transaction, environment); return recv_countKeyCclTimestr(); } public void send_countKeyCclTimestr(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 { countKeyCclTimestr_args args = new countKeyCclTimestr_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("countKeyCclTimestr", args); } public long recv_countKeyCclTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { countKeyCclTimestr_result result = new countKeyCclTimestr_result(); receiveBase(result, "countKeyCclTimestr"); 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, "countKeyCclTimestr failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject maxKeyRecord(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_maxKeyRecord(key, record, creds, transaction, environment); return recv_maxKeyRecord(); } public void send_maxKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { maxKeyRecord_args args = new maxKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("maxKeyRecord", args); } public com.cinchapi.concourse.thrift.TObject recv_maxKeyRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { maxKeyRecord_result result = new maxKeyRecord_result(); receiveBase(result, "maxKeyRecord"); 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, "maxKeyRecord failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject maxKeyRecordTime( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_maxKeyRecordTime(key, record, timestamp, creds, transaction, environment); return recv_maxKeyRecordTime(); } public void send_maxKeyRecordTime(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 { maxKeyRecordTime_args args = new maxKeyRecordTime_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("maxKeyRecordTime", args); } public com.cinchapi.concourse.thrift.TObject recv_maxKeyRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { maxKeyRecordTime_result result = new maxKeyRecordTime_result(); receiveBase(result, "maxKeyRecordTime"); 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, "maxKeyRecordTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject maxKeyRecordTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_maxKeyRecordTimestr(key, record, timestamp, creds, transaction, environment); return recv_maxKeyRecordTimestr(); } public void send_maxKeyRecordTimestr(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 { maxKeyRecordTimestr_args args = new maxKeyRecordTimestr_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("maxKeyRecordTimestr", args); } public com.cinchapi.concourse.thrift.TObject recv_maxKeyRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { maxKeyRecordTimestr_result result = new maxKeyRecordTimestr_result(); receiveBase(result, "maxKeyRecordTimestr"); 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, "maxKeyRecordTimestr failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject maxKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_maxKeyRecords(key, records, creds, transaction, environment); return recv_maxKeyRecords(); } public void send_maxKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { maxKeyRecords_args args = new maxKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("maxKeyRecords", args); } public com.cinchapi.concourse.thrift.TObject recv_maxKeyRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { maxKeyRecords_result result = new maxKeyRecords_result(); receiveBase(result, "maxKeyRecords"); 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, "maxKeyRecords failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject maxKeyRecordsTime( String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_maxKeyRecordsTime(key, records, timestamp, creds, transaction, environment); return recv_maxKeyRecordsTime(); } public void send_maxKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { maxKeyRecordsTime_args args = new maxKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("maxKeyRecordsTime", args); } public com.cinchapi.concourse.thrift.TObject recv_maxKeyRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { maxKeyRecordsTime_result result = new maxKeyRecordsTime_result(); receiveBase(result, "maxKeyRecordsTime"); 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, "maxKeyRecordsTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject maxKeyRecordsTimestr( String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_maxKeyRecordsTimestr(key, records, timestamp, creds, transaction, environment); return recv_maxKeyRecordsTimestr(); } public void send_maxKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { maxKeyRecordsTimestr_args args = new maxKeyRecordsTimestr_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("maxKeyRecordsTimestr", args); } public com.cinchapi.concourse.thrift.TObject recv_maxKeyRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { maxKeyRecordsTimestr_result result = new maxKeyRecordsTimestr_result(); receiveBase(result, "maxKeyRecordsTimestr"); 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, "maxKeyRecordsTimestr failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject maxKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_maxKeyCriteria(key, criteria, creds, transaction, environment); return recv_maxKeyCriteria(); } public void send_maxKeyCriteria(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 { maxKeyCriteria_args args = new maxKeyCriteria_args(); args.setKey(key); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("maxKeyCriteria", args); } public com.cinchapi.concourse.thrift.TObject recv_maxKeyCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { maxKeyCriteria_result result = new maxKeyCriteria_result(); receiveBase(result, "maxKeyCriteria"); 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, "maxKeyCriteria failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject maxKeyCriteriaTime( String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_maxKeyCriteriaTime(key, criteria, timestamp, creds, transaction, environment); return recv_maxKeyCriteriaTime(); } public void send_maxKeyCriteriaTime(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 { maxKeyCriteriaTime_args args = new maxKeyCriteriaTime_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("maxKeyCriteriaTime", args); } public com.cinchapi.concourse.thrift.TObject recv_maxKeyCriteriaTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { maxKeyCriteriaTime_result result = new maxKeyCriteriaTime_result(); receiveBase(result, "maxKeyCriteriaTime"); 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, "maxKeyCriteriaTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject maxKeyCriteriaTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_maxKeyCriteriaTimestr(key, criteria, timestamp, creds, transaction, environment); return recv_maxKeyCriteriaTimestr(); } public void send_maxKeyCriteriaTimestr(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 { maxKeyCriteriaTimestr_args args = new maxKeyCriteriaTimestr_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("maxKeyCriteriaTimestr", args); } public com.cinchapi.concourse.thrift.TObject recv_maxKeyCriteriaTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { maxKeyCriteriaTimestr_result result = new maxKeyCriteriaTimestr_result(); receiveBase(result, "maxKeyCriteriaTimestr"); 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, "maxKeyCriteriaTimestr failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject maxKeyCcl(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_maxKeyCcl(key, ccl, creds, transaction, environment); return recv_maxKeyCcl(); } public void send_maxKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { maxKeyCcl_args args = new maxKeyCcl_args(); args.setKey(key); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("maxKeyCcl", args); } public com.cinchapi.concourse.thrift.TObject recv_maxKeyCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { maxKeyCcl_result result = new maxKeyCcl_result(); receiveBase(result, "maxKeyCcl"); 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, "maxKeyCcl failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject maxKeyCclTime(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_maxKeyCclTime(key, ccl, timestamp, creds, transaction, environment); return recv_maxKeyCclTime(); } public void send_maxKeyCclTime(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 { maxKeyCclTime_args args = new maxKeyCclTime_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("maxKeyCclTime", args); } public com.cinchapi.concourse.thrift.TObject recv_maxKeyCclTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { maxKeyCclTime_result result = new maxKeyCclTime_result(); receiveBase(result, "maxKeyCclTime"); 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, "maxKeyCclTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject maxKeyCclTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_maxKeyCclTimestr(key, ccl, timestamp, creds, transaction, environment); return recv_maxKeyCclTimestr(); } public void send_maxKeyCclTimestr(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 { maxKeyCclTimestr_args args = new maxKeyCclTimestr_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("maxKeyCclTimestr", args); } public com.cinchapi.concourse.thrift.TObject recv_maxKeyCclTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { maxKeyCclTimestr_result result = new maxKeyCclTimestr_result(); receiveBase(result, "maxKeyCclTimestr"); 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, "maxKeyCclTimestr failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject maxKey(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_maxKey(key, creds, transaction, environment); return recv_maxKey(); } public void send_maxKey(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { maxKey_args args = new maxKey_args(); args.setKey(key); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("maxKey", args); } public com.cinchapi.concourse.thrift.TObject recv_maxKey() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { maxKey_result result = new maxKey_result(); receiveBase(result, "maxKey"); 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, "maxKey failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject maxKeyTime(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_maxKeyTime(key, timestamp, creds, transaction, environment); return recv_maxKeyTime(); } public void send_maxKeyTime(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { maxKeyTime_args args = new maxKeyTime_args(); args.setKey(key); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("maxKeyTime", args); } public com.cinchapi.concourse.thrift.TObject recv_maxKeyTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { maxKeyTime_result result = new maxKeyTime_result(); receiveBase(result, "maxKeyTime"); 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, "maxKeyTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject maxKeyTimestr(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_maxKeyTimestr(key, timestamp, creds, transaction, environment); return recv_maxKeyTimestr(); } public void send_maxKeyTimestr(String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { maxKeyTimestr_args args = new maxKeyTimestr_args(); args.setKey(key); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("maxKeyTimestr", args); } public com.cinchapi.concourse.thrift.TObject recv_maxKeyTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { maxKeyTimestr_result result = new maxKeyTimestr_result(); receiveBase(result, "maxKeyTimestr"); 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, "maxKeyTimestr failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject minKeyRecord(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_minKeyRecord(key, record, creds, transaction, environment); return recv_minKeyRecord(); } public void send_minKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { minKeyRecord_args args = new minKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("minKeyRecord", args); } public com.cinchapi.concourse.thrift.TObject recv_minKeyRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { minKeyRecord_result result = new minKeyRecord_result(); receiveBase(result, "minKeyRecord"); 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, "minKeyRecord failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject minKeyRecordTime( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_minKeyRecordTime(key, record, timestamp, creds, transaction, environment); return recv_minKeyRecordTime(); } public void send_minKeyRecordTime(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 { minKeyRecordTime_args args = new minKeyRecordTime_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("minKeyRecordTime", args); } public com.cinchapi.concourse.thrift.TObject recv_minKeyRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { minKeyRecordTime_result result = new minKeyRecordTime_result(); receiveBase(result, "minKeyRecordTime"); 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, "minKeyRecordTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject minKeyRecordTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_minKeyRecordTimestr(key, record, timestamp, creds, transaction, environment); return recv_minKeyRecordTimestr(); } public void send_minKeyRecordTimestr(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 { minKeyRecordTimestr_args args = new minKeyRecordTimestr_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("minKeyRecordTimestr", args); } public com.cinchapi.concourse.thrift.TObject recv_minKeyRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { minKeyRecordTimestr_result result = new minKeyRecordTimestr_result(); receiveBase(result, "minKeyRecordTimestr"); 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, "minKeyRecordTimestr failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject minKey(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_minKey(key, creds, transaction, environment); return recv_minKey(); } public void send_minKey(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { minKey_args args = new minKey_args(); args.setKey(key); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("minKey", args); } public com.cinchapi.concourse.thrift.TObject recv_minKey() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { minKey_result result = new minKey_result(); receiveBase(result, "minKey"); 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, "minKey failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject minKeyRecordsTime( String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_minKeyRecordsTime(key, records, timestamp, creds, transaction, environment); return recv_minKeyRecordsTime(); } public void send_minKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { minKeyRecordsTime_args args = new minKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("minKeyRecordsTime", args); } public com.cinchapi.concourse.thrift.TObject recv_minKeyRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { minKeyRecordsTime_result result = new minKeyRecordsTime_result(); receiveBase(result, "minKeyRecordsTime"); 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, "minKeyRecordsTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject minKeyRecordsTimestr( String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_minKeyRecordsTimestr(key, records, timestamp, creds, transaction, environment); return recv_minKeyRecordsTimestr(); } public void send_minKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { minKeyRecordsTimestr_args args = new minKeyRecordsTimestr_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("minKeyRecordsTimestr", args); } public com.cinchapi.concourse.thrift.TObject recv_minKeyRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { minKeyRecordsTimestr_result result = new minKeyRecordsTimestr_result(); receiveBase(result, "minKeyRecordsTimestr"); 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, "minKeyRecordsTimestr failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject minKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_minKeyCriteria(key, criteria, creds, transaction, environment); return recv_minKeyCriteria(); } public void send_minKeyCriteria(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 { minKeyCriteria_args args = new minKeyCriteria_args(); args.setKey(key); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("minKeyCriteria", args); } public com.cinchapi.concourse.thrift.TObject recv_minKeyCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { minKeyCriteria_result result = new minKeyCriteria_result(); receiveBase(result, "minKeyCriteria"); 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, "minKeyCriteria failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject minKeyCriteriaTime( String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_minKeyCriteriaTime(key, criteria, timestamp, creds, transaction, environment); return recv_minKeyCriteriaTime(); } public void send_minKeyCriteriaTime(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 { minKeyCriteriaTime_args args = new minKeyCriteriaTime_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("minKeyCriteriaTime", args); } public com.cinchapi.concourse.thrift.TObject recv_minKeyCriteriaTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { minKeyCriteriaTime_result result = new minKeyCriteriaTime_result(); receiveBase(result, "minKeyCriteriaTime"); 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, "minKeyCriteriaTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject minKeyCriteriaTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_minKeyCriteriaTimestr(key, criteria, timestamp, creds, transaction, environment); return recv_minKeyCriteriaTimestr(); } public void send_minKeyCriteriaTimestr(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 { minKeyCriteriaTimestr_args args = new minKeyCriteriaTimestr_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("minKeyCriteriaTimestr", args); } public com.cinchapi.concourse.thrift.TObject recv_minKeyCriteriaTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { minKeyCriteriaTimestr_result result = new minKeyCriteriaTimestr_result(); receiveBase(result, "minKeyCriteriaTimestr"); 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, "minKeyCriteriaTimestr failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject minKeyCcl(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_minKeyCcl(key, ccl, creds, transaction, environment); return recv_minKeyCcl(); } public void send_minKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { minKeyCcl_args args = new minKeyCcl_args(); args.setKey(key); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("minKeyCcl", args); } public com.cinchapi.concourse.thrift.TObject recv_minKeyCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { minKeyCcl_result result = new minKeyCcl_result(); receiveBase(result, "minKeyCcl"); 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, "minKeyCcl failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject minKeyCclTime(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_minKeyCclTime(key, ccl, timestamp, creds, transaction, environment); return recv_minKeyCclTime(); } public void send_minKeyCclTime(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 { minKeyCclTime_args args = new minKeyCclTime_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("minKeyCclTime", args); } public com.cinchapi.concourse.thrift.TObject recv_minKeyCclTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { minKeyCclTime_result result = new minKeyCclTime_result(); receiveBase(result, "minKeyCclTime"); 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, "minKeyCclTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject minKeyCclTimestr( 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_minKeyCclTimestr(key, ccl, timestamp, creds, transaction, environment); return recv_minKeyCclTimestr(); } public void send_minKeyCclTimestr(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 { minKeyCclTimestr_args args = new minKeyCclTimestr_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("minKeyCclTimestr", args); } public com.cinchapi.concourse.thrift.TObject recv_minKeyCclTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { minKeyCclTimestr_result result = new minKeyCclTimestr_result(); receiveBase(result, "minKeyCclTimestr"); 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, "minKeyCclTimestr failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject minKeyTime(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_minKeyTime(key, timestamp, creds, transaction, environment); return recv_minKeyTime(); } public void send_minKeyTime(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { minKeyTime_args args = new minKeyTime_args(); args.setKey(key); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("minKeyTime", args); } public com.cinchapi.concourse.thrift.TObject recv_minKeyTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { minKeyTime_result result = new minKeyTime_result(); receiveBase(result, "minKeyTime"); 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, "minKeyTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject minKeyTimestr(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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_minKeyTimestr(key, timestamp, creds, transaction, environment); return recv_minKeyTimestr(); } public void send_minKeyTimestr(String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { minKeyTimestr_args args = new minKeyTimestr_args(); args.setKey(key); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("minKeyTimestr", args); } public com.cinchapi.concourse.thrift.TObject recv_minKeyTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { minKeyTimestr_result result = new minKeyTimestr_result(); receiveBase(result, "minKeyTimestr"); 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, "minKeyTimestr failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject minKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_minKeyRecords(key, records, creds, transaction, environment); return recv_minKeyRecords(); } public void send_minKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { minKeyRecords_args args = new minKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("minKeyRecords", args); } public com.cinchapi.concourse.thrift.TObject recv_minKeyRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { minKeyRecords_result result = new minKeyRecords_result(); receiveBase(result, "minKeyRecords"); 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, "minKeyRecords failed: unknown result"); } public Map> navigateKeyRecord( String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeyRecord(key, record, creds, transaction, environment); return recv_navigateKeyRecord(); } public void send_navigateKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyRecord_args args = new navigateKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyRecord", args); } public Map> recv_navigateKeyRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeyRecord_result result = new navigateKeyRecord_result(); receiveBase(result, "navigateKeyRecord"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyRecord failed: unknown result"); } public Map> navigateKeyRecordTime( String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeyRecordTime(key, record, timestamp, creds, transaction, environment); return recv_navigateKeyRecordTime(); } public void send_navigateKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyRecordTime_args args = new navigateKeyRecordTime_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyRecordTime", args); } public Map> recv_navigateKeyRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeyRecordTime_result result = new navigateKeyRecordTime_result(); receiveBase(result, "navigateKeyRecordTime"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyRecordTime failed: unknown result"); } public Map> navigateKeyRecordTimestr( String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeyRecordTimestr(key, record, timestamp, creds, transaction, environment); return recv_navigateKeyRecordTimestr(); } public void send_navigateKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyRecordTimestr_args args = new navigateKeyRecordTimestr_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyRecordTimestr", args); } public Map> recv_navigateKeyRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeyRecordTimestr_result result = new navigateKeyRecordTimestr_result(); receiveBase(result, "navigateKeyRecordTimestr"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } 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, "navigateKeyRecordTimestr failed: unknown result"); } public Map>> navigateKeysRecord( List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeysRecord(keys, record, creds, transaction, environment); return recv_navigateKeysRecord(); } public void send_navigateKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysRecord_args args = new navigateKeysRecord_args(); args.setKeys(keys); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysRecord", args); } public Map>> recv_navigateKeysRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeysRecord_result result = new navigateKeysRecord_result(); receiveBase(result, "navigateKeysRecord"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysRecord failed: unknown result"); } public Map>> navigateKeysRecordTime( List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeysRecordTime(keys, record, timestamp, creds, transaction, environment); return recv_navigateKeysRecordTime(); } public void send_navigateKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysRecordTime_args args = new navigateKeysRecordTime_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysRecordTime", args); } public Map>> recv_navigateKeysRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeysRecordTime_result result = new navigateKeysRecordTime_result(); receiveBase(result, "navigateKeysRecordTime"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysRecordTime failed: unknown result"); } public Map>> navigateKeysRecordTimestr( List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeysRecordTimestr(keys, record, timestamp, creds, transaction, environment); return recv_navigateKeysRecordTimestr(); } public void send_navigateKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysRecordTimestr_args args = new navigateKeysRecordTimestr_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysRecordTimestr", args); } public Map>> recv_navigateKeysRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeysRecordTimestr_result result = new navigateKeysRecordTimestr_result(); receiveBase(result, "navigateKeysRecordTimestr"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } 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, "navigateKeysRecordTimestr failed: unknown result"); } public Map>> navigateKeysRecords( List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeysRecords(keys, records, creds, transaction, environment); return recv_navigateKeysRecords(); } public void send_navigateKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysRecords_args args = new navigateKeysRecords_args(); args.setKeys(keys); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysRecords", args); } public Map>> recv_navigateKeysRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeysRecords_result result = new navigateKeysRecords_result(); receiveBase(result, "navigateKeysRecords"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysRecords failed: unknown result"); } public Map> navigateKeyRecords( String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeyRecords(key, records, creds, transaction, environment); return recv_navigateKeyRecords(); } public void send_navigateKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyRecords_args args = new navigateKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyRecords", args); } public Map> recv_navigateKeyRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeyRecords_result result = new navigateKeyRecords_result(); receiveBase(result, "navigateKeyRecords"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyRecords failed: unknown result"); } public Map> navigateKeyRecordsTime( String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeyRecordsTime(key, records, timestamp, creds, transaction, environment); return recv_navigateKeyRecordsTime(); } public void send_navigateKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyRecordsTime_args args = new navigateKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyRecordsTime", args); } public Map> recv_navigateKeyRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeyRecordsTime_result result = new navigateKeyRecordsTime_result(); receiveBase(result, "navigateKeyRecordsTime"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyRecordsTime failed: unknown result"); } public Map> navigateKeyRecordsTimestr( String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeyRecordsTimestr(key, records, timestamp, creds, transaction, environment); return recv_navigateKeyRecordsTimestr(); } public void send_navigateKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyRecordsTimestr_args args = new navigateKeyRecordsTimestr_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyRecordsTimestr", args); } public Map> recv_navigateKeyRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeyRecordsTimestr_result result = new navigateKeyRecordsTimestr_result(); receiveBase(result, "navigateKeyRecordsTimestr"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } 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, "navigateKeyRecordsTimestr failed: unknown result"); } public Map>> navigateKeysRecordsTime( List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeysRecordsTime(keys, records, timestamp, creds, transaction, environment); return recv_navigateKeysRecordsTime(); } public void send_navigateKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysRecordsTime_args args = new navigateKeysRecordsTime_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysRecordsTime", args); } public Map>> recv_navigateKeysRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeysRecordsTime_result result = new navigateKeysRecordsTime_result(); receiveBase(result, "navigateKeysRecordsTime"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysRecordsTime failed: unknown result"); } public Map>> navigateKeysRecordsTimestr( List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeysRecordsTimestr(keys, records, timestamp, creds, transaction, environment); return recv_navigateKeysRecordsTimestr(); } public void send_navigateKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysRecordsTimestr_args args = new navigateKeysRecordsTimestr_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysRecordsTimestr", args); } public Map>> recv_navigateKeysRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeysRecordsTimestr_result result = new navigateKeysRecordsTimestr_result(); receiveBase(result, "navigateKeysRecordsTimestr"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } 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, "navigateKeysRecordsTimestr failed: unknown result"); } public Map> navigateKeyCcl( String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeyCcl(key, ccl, creds, transaction, environment); return recv_navigateKeyCcl(); } public void send_navigateKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyCcl_args args = new navigateKeyCcl_args(); args.setKey(key); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyCcl", args); } public Map> recv_navigateKeyCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeyCcl_result result = new navigateKeyCcl_result(); receiveBase(result, "navigateKeyCcl"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyCcl failed: unknown result"); } public Map> navigateKeyCclTime( String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeyCclTime(key, ccl, timestamp, creds, transaction, environment); return recv_navigateKeyCclTime(); } public void send_navigateKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyCclTime_args args = new navigateKeyCclTime_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyCclTime", args); } public Map> recv_navigateKeyCclTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeyCclTime_result result = new navigateKeyCclTime_result(); receiveBase(result, "navigateKeyCclTime"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyCclTime failed: unknown result"); } public Map> navigateKeyCclTimestr( String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeyCclTimestr(key, ccl, timestamp, creds, transaction, environment); return recv_navigateKeyCclTimestr(); } public void send_navigateKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyCclTimestr_args args = new navigateKeyCclTimestr_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyCclTimestr", args); } public Map> recv_navigateKeyCclTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeyCclTimestr_result result = new navigateKeyCclTimestr_result(); receiveBase(result, "navigateKeyCclTimestr"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyCclTimestr failed: unknown result"); } public Map>> navigateKeysCcl( List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeysCcl(keys, ccl, creds, transaction, environment); return recv_navigateKeysCcl(); } public void send_navigateKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysCcl_args args = new navigateKeysCcl_args(); args.setKeys(keys); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysCcl", args); } public Map>> recv_navigateKeysCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeysCcl_result result = new navigateKeysCcl_result(); receiveBase(result, "navigateKeysCcl"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysCcl failed: unknown result"); } public Map>> navigateKeysCclTime( List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeysCclTime(keys, ccl, timestamp, creds, transaction, environment); return recv_navigateKeysCclTime(); } public void send_navigateKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysCclTime_args args = new navigateKeysCclTime_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysCclTime", args); } public Map>> recv_navigateKeysCclTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeysCclTime_result result = new navigateKeysCclTime_result(); receiveBase(result, "navigateKeysCclTime"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysCclTime failed: unknown result"); } public Map>> navigateKeysCclTimestr( List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeysCclTimestr(keys, ccl, timestamp, creds, transaction, environment); return recv_navigateKeysCclTimestr(); } public void send_navigateKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysCclTimestr_args args = new navigateKeysCclTimestr_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysCclTimestr", args); } public Map>> recv_navigateKeysCclTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeysCclTimestr_result result = new navigateKeysCclTimestr_result(); receiveBase(result, "navigateKeysCclTimestr"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysCclTimestr failed: unknown result"); } public Map> navigateKeyCriteria( String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeyCriteria(key, criteria, creds, transaction, environment); return recv_navigateKeyCriteria(); } public void send_navigateKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyCriteria_args args = new navigateKeyCriteria_args(); args.setKey(key); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyCriteria", args); } public Map> recv_navigateKeyCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeyCriteria_result result = new navigateKeyCriteria_result(); receiveBase(result, "navigateKeyCriteria"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyCriteria failed: unknown result"); } public Map> navigateKeyCriteriaTime( String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeyCriteriaTime(key, criteria, timestamp, creds, transaction, environment); return recv_navigateKeyCriteriaTime(); } public void send_navigateKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyCriteriaTime_args args = new navigateKeyCriteriaTime_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyCriteriaTime", args); } public Map> recv_navigateKeyCriteriaTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeyCriteriaTime_result result = new navigateKeyCriteriaTime_result(); receiveBase(result, "navigateKeyCriteriaTime"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyCriteriaTime failed: unknown result"); } public Map> navigateKeyCriteriaTimestr( String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeyCriteriaTimestr(key, criteria, timestamp, creds, transaction, environment); return recv_navigateKeyCriteriaTimestr(); } public void send_navigateKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyCriteriaTimestr_args args = new navigateKeyCriteriaTimestr_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyCriteriaTimestr", args); } public Map> recv_navigateKeyCriteriaTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeyCriteriaTimestr_result result = new navigateKeyCriteriaTimestr_result(); receiveBase(result, "navigateKeyCriteriaTimestr"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyCriteriaTimestr failed: unknown result"); } public Map>> navigateKeysCriteria( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeysCriteria(keys, criteria, creds, transaction, environment); return recv_navigateKeysCriteria(); } public void send_navigateKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysCriteria_args args = new navigateKeysCriteria_args(); args.setKeys(keys); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysCriteria", args); } public Map>> recv_navigateKeysCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeysCriteria_result result = new navigateKeysCriteria_result(); receiveBase(result, "navigateKeysCriteria"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysCriteria failed: unknown result"); } public Map>> navigateKeysCriteriaTime( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeysCriteriaTime(keys, criteria, timestamp, creds, transaction, environment); return recv_navigateKeysCriteriaTime(); } public void send_navigateKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysCriteriaTime_args args = new navigateKeysCriteriaTime_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysCriteriaTime", args); } public Map>> recv_navigateKeysCriteriaTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeysCriteriaTime_result result = new navigateKeysCriteriaTime_result(); receiveBase(result, "navigateKeysCriteriaTime"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysCriteriaTime failed: unknown result"); } public Map>> navigateKeysCriteriaTimestr( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { send_navigateKeysCriteriaTimestr(keys, criteria, timestamp, creds, transaction, environment); return recv_navigateKeysCriteriaTimestr(); } public void send_navigateKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysCriteriaTimestr_args args = new navigateKeysCriteriaTimestr_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysCriteriaTimestr", args); } public Map>> recv_navigateKeysCriteriaTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { navigateKeysCriteriaTimestr_result result = new navigateKeysCriteriaTimestr_result(); receiveBase(result, "navigateKeysCriteriaTimestr"); if(result.isSetSuccess()) { return result.success; } if(result.ex != null) { throw result.ex; } if(result.ex2 != null) { throw result.ex2; } if(result.ex3 != null) { throw result.ex3; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysCriteriaTimestr failed: unknown result"); } public String getServerEnvironment( com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex3 != null) { throw result.ex3; } 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, com.cinchapi.concourse.thrift.PermissionException, 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, com.cinchapi.concourse.thrift.PermissionException, 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; } if(result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.MISSING_RESULT, "timePhrase failed: unknown result"); } public com.cinchapi.concourse.thrift.ComplexTObject invokeManagement( String method, List params, com.cinchapi.concourse.thrift.AccessToken creds) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.ManagementException, org.apache.thrift.TException { send_invokeManagement(method, params, creds); return recv_invokeManagement(); } public void send_invokeManagement(String method, List params, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { invokeManagement_args args = new invokeManagement_args(); args.setMethod(method); args.setParams(params); args.setCreds(creds); sendBase("invokeManagement", args); } public com.cinchapi.concourse.thrift.ComplexTObject recv_invokeManagement() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.ManagementException, org.apache.thrift.TException { invokeManagement_result result = new invokeManagement_result(); receiveBase(result, "invokeManagement"); 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, "invokeManagement failed: unknown result"); } } public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface { public static class Factory implements org.apache.thrift.async.TAsyncClientFactory { private org.apache.thrift.async.TAsyncClientManager clientManager; private org.apache.thrift.protocol.TProtocolFactory protocolFactory; public Factory( org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) { this.clientManager = clientManager; this.protocolFactory = protocolFactory; } public AsyncClient getAsyncClient( org.apache.thrift.transport.TNonblockingTransport transport) { return new AsyncClient(protocolFactory, clientManager, transport); } } public AsyncClient( org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) { super(protocolFactory, clientManager, transport); } public void abort(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); abort_call method_call = new abort_call(creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class abort_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public abort_call(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "abort", org.apache.thrift.protocol.TMessageType.CALL, 0)); abort_args args = new abort_args(); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_abort(); } } public void addKeyValue(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); addKeyValue_call method_call = new addKeyValue_call(key, value, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class addKeyValue_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TObject value; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public addKeyValue_call(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.value = value; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "addKeyValue", org.apache.thrift.protocol.TMessageType.CALL, 0)); addKeyValue_args args = new addKeyValue_args(); args.setKey(key); args.setValue(value); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public long getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_addKeyValueRecord(); } } public void addKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); addKeyValueRecords_call method_call = new addKeyValueRecords_call( key, value, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class addKeyValueRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TObject value; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public addKeyValueRecords_call(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.value = value; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "addKeyValueRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); addKeyValueRecords_args args = new addKeyValueRecords_args(); args.setKey(key); args.setValue(value); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_addKeyValueRecords(); } } public void auditRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); auditRecord_call method_call = new auditRecord_call(record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class auditRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public auditRecord_call(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "auditRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); auditRecord_args args = new auditRecord_args(); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_auditRecord(); } } public void auditRecordStart(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); auditRecordStart_call method_call = new auditRecordStart_call( record, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class auditRecordStart_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private long start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public auditRecordStart_call(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.record = record; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "auditRecordStart", org.apache.thrift.protocol.TMessageType.CALL, 0)); auditRecordStart_args args = new auditRecordStart_args(); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_auditRecordStart(); } } public void auditRecordStartstr(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); auditRecordStartstr_call method_call = new auditRecordStartstr_call( record, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class auditRecordStartstr_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private String start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public auditRecordStartstr_call(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.record = record; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "auditRecordStartstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); auditRecordStartstr_args args = new auditRecordStartstr_args(); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_auditRecordStartstr(); } } public void auditRecordStartEnd(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); auditRecordStartEnd_call method_call = new auditRecordStartEnd_call( record, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class auditRecordStartEnd_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private long start; private long tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public auditRecordStartEnd_call(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.record = record; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "auditRecordStartEnd", org.apache.thrift.protocol.TMessageType.CALL, 0)); auditRecordStartEnd_args args = new auditRecordStartEnd_args(); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_auditRecordStartEnd(); } } public void auditRecordStartstrEndstr(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); auditRecordStartstrEndstr_call method_call = new auditRecordStartstrEndstr_call( record, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class auditRecordStartstrEndstr_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private String start; private String tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public auditRecordStartstrEndstr_call(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.record = record; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "auditRecordStartstrEndstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); auditRecordStartstrEndstr_args args = new auditRecordStartstrEndstr_args(); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_auditRecordStartstrEndstr(); } } public void auditKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); auditKeyRecord_call method_call = new auditKeyRecord_call(key, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class auditKeyRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public auditKeyRecord_call(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "auditKeyRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); auditKeyRecord_args args = new auditKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_auditKeyRecord(); } } public void auditKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); auditKeyRecordStart_call method_call = new auditKeyRecordStart_call( key, record, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class auditKeyRecordStart_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private long start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public auditKeyRecordStart_call(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.record = record; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "auditKeyRecordStart", org.apache.thrift.protocol.TMessageType.CALL, 0)); auditKeyRecordStart_args args = new auditKeyRecordStart_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_auditKeyRecordStart(); } } public void auditKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); auditKeyRecordStartstr_call method_call = new auditKeyRecordStartstr_call( key, record, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class auditKeyRecordStartstr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private String start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public auditKeyRecordStartstr_call(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.record = record; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "auditKeyRecordStartstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); auditKeyRecordStartstr_args args = new auditKeyRecordStartstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_auditKeyRecordStartstr(); } } public void auditKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); auditKeyRecordStartEnd_call method_call = new auditKeyRecordStartEnd_call( key, record, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class auditKeyRecordStartEnd_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private long start; private long tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public auditKeyRecordStartEnd_call(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.record = record; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "auditKeyRecordStartEnd", org.apache.thrift.protocol.TMessageType.CALL, 0)); auditKeyRecordStartEnd_args args = new auditKeyRecordStartEnd_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_auditKeyRecordStartEnd(); } } public void auditKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); auditKeyRecordStartstrEndstr_call method_call = new auditKeyRecordStartstrEndstr_call( key, record, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class auditKeyRecordStartstrEndstr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private String start; private String tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public auditKeyRecordStartstrEndstr_call(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.record = record; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "auditKeyRecordStartstrEndstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); auditKeyRecordStartstrEndstr_args args = new auditKeyRecordStartstrEndstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_auditKeyRecordStartstrEndstr(); } } public void browseKey(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); browseKey_call method_call = new browseKey_call(key, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class browseKey_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public browseKey_call(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "browseKey", org.apache.thrift.protocol.TMessageType.CALL, 0)); browseKey_args args = new browseKey_args(); args.setKey(key); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_browseKey(); } } public void browseKeys(List keys, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); browseKeys_call method_call = new browseKeys_call(keys, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class browseKeys_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public browseKeys_call(List keys, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "browseKeys", org.apache.thrift.protocol.TMessageType.CALL, 0)); browseKeys_args args = new browseKeys_args(); args.setKeys(keys); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_browseKeys(); } } public void browseKeyTime(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); browseKeyTime_call method_call = new browseKeyTime_call(key, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class browseKeyTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public browseKeyTime_call(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "browseKeyTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); browseKeyTime_args args = new browseKeyTime_args(); args.setKey(key); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_browseKeyTime(); } } public void browseKeyTimestr(String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); browseKeyTimestr_call method_call = new browseKeyTimestr_call(key, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class browseKeyTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public browseKeyTimestr_call(String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "browseKeyTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); browseKeyTimestr_args args = new browseKeyTimestr_args(); args.setKey(key); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_browseKeyTimestr(); } } public void browseKeysTime(List keys, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); browseKeysTime_call method_call = new browseKeysTime_call(keys, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class browseKeysTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public browseKeysTime_call(List keys, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "browseKeysTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); browseKeysTime_args args = new browseKeysTime_args(); args.setKeys(keys); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_browseKeysTime(); } } public void browseKeysTimestr(List keys, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); browseKeysTimestr_call method_call = new browseKeysTimestr_call( keys, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class browseKeysTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public browseKeysTimestr_call(List keys, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "browseKeysTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); browseKeysTimestr_args args = new browseKeysTimestr_args(); args.setKeys(keys); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_browseKeysTimestr(); } } public void chronologizeKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); chronologizeKeyRecord_call method_call = new chronologizeKeyRecord_call( key, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class chronologizeKeyRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public chronologizeKeyRecord_call(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "chronologizeKeyRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); chronologizeKeyRecord_args args = new chronologizeKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_chronologizeKeyRecord(); } } public void chronologizeKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); chronologizeKeyRecordStart_call method_call = new chronologizeKeyRecordStart_call( key, record, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class chronologizeKeyRecordStart_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private long start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public chronologizeKeyRecordStart_call(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.record = record; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "chronologizeKeyRecordStart", org.apache.thrift.protocol.TMessageType.CALL, 0)); chronologizeKeyRecordStart_args args = new chronologizeKeyRecordStart_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_chronologizeKeyRecordStart(); } } public void chronologizeKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); chronologizeKeyRecordStartstr_call method_call = new chronologizeKeyRecordStartstr_call( key, record, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class chronologizeKeyRecordStartstr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private String start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public chronologizeKeyRecordStartstr_call(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.record = record; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "chronologizeKeyRecordStartstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); chronologizeKeyRecordStartstr_args args = new chronologizeKeyRecordStartstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_chronologizeKeyRecordStartstr(); } } public void chronologizeKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); chronologizeKeyRecordStartEnd_call method_call = new chronologizeKeyRecordStartEnd_call( key, record, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class chronologizeKeyRecordStartEnd_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private long start; private long tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public chronologizeKeyRecordStartEnd_call(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.record = record; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "chronologizeKeyRecordStartEnd", org.apache.thrift.protocol.TMessageType.CALL, 0)); chronologizeKeyRecordStartEnd_args args = new chronologizeKeyRecordStartEnd_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_chronologizeKeyRecordStartEnd(); } } public void chronologizeKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); chronologizeKeyRecordStartstrEndstr_call method_call = new chronologizeKeyRecordStartstrEndstr_call( key, record, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class chronologizeKeyRecordStartstrEndstr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private String start; private String tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public chronologizeKeyRecordStartstrEndstr_call(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.record = record; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "chronologizeKeyRecordStartstrEndstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); chronologizeKeyRecordStartstrEndstr_args args = new chronologizeKeyRecordStartstrEndstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_clearRecord(); } } public void clearRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); clearRecords_call method_call = new clearRecords_call(records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class clearRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public clearRecords_call(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "clearRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); clearRecords_args args = new clearRecords_args(); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_clearKeyRecord(); } } public void clearKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); clearKeysRecord_call method_call = new clearKeysRecord_call(keys, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class clearKeysRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public clearKeysRecord_call(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "clearKeysRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); clearKeysRecord_args args = new clearKeysRecord_args(); args.setKeys(keys); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_clearKeysRecord(); } } public void clearKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); clearKeyRecords_call method_call = new clearKeyRecords_call(key, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class clearKeyRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public clearKeyRecords_call(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "clearKeyRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); clearKeyRecords_args args = new clearKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_clearKeyRecords(); } } public void clearKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); clearKeysRecords_call method_call = new clearKeysRecords_call(keys, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class clearKeysRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public clearKeysRecords_call(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "clearKeysRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); clearKeysRecords_args args = new clearKeysRecords_args(); args.setKeys(keys); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_commit(); } } public void describe(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describe_call method_call = new describe_call(creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class describe_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public describe_call( com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "describe", org.apache.thrift.protocol.TMessageType.CALL, 0)); describe_args args = new describe_args(); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_describe(); } } public void describeTime(long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describeTime_call method_call = new describeTime_call(timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class describeTime_call extends org.apache.thrift.async.TAsyncMethodCall { private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public describeTime_call(long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "describeTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); describeTime_args args = new describeTime_args(); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_describeTime(); } } public void describeTimestr(String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describeTimestr_call method_call = new describeTimestr_call( timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class describeTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public describeTimestr_call(String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "describeTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); describeTimestr_args args = new describeTimestr_args(); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_describeTimestr(); } } public void describeRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describeRecord_call method_call = new describeRecord_call(record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class describeRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public describeRecord_call(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "describeRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); describeRecord_args args = new describeRecord_args(); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_describeRecord(); } } public void describeRecordTime(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describeRecordTime_call method_call = new describeRecordTime_call( record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class describeRecordTime_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public describeRecordTime_call(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "describeRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); describeRecordTime_args args = new describeRecordTime_args(); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_describeRecordTime(); } } public void describeRecordTimestr(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describeRecordTimestr_call method_call = new describeRecordTimestr_call( record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class describeRecordTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public describeRecordTimestr_call(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "describeRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); describeRecordTimestr_args args = new describeRecordTimestr_args(); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_describeRecordTimestr(); } } public void describeRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describeRecords_call method_call = new describeRecords_call(records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class describeRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public describeRecords_call(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "describeRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); describeRecords_args args = new describeRecords_args(); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_describeRecords(); } } public void describeRecordsTime(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describeRecordsTime_call method_call = new describeRecordsTime_call( records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class describeRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public describeRecordsTime_call(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "describeRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); describeRecordsTime_args args = new describeRecordsTime_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_describeRecordsTime(); } } public void describeRecordsTimestr(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describeRecordsTimestr_call method_call = new describeRecordsTimestr_call( records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class describeRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public describeRecordsTimestr_call(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "describeRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); describeRecordsTimestr_args args = new describeRecordsTimestr_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_describeRecordsTimestr(); } } public void diffRecordStart(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffRecordStart_call method_call = new diffRecordStart_call(record, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffRecordStart_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private long start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffRecordStart_call(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.record = record; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "diffRecordStart", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffRecordStart_args args = new diffRecordStart_args(); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_diffRecordStart(); } } public void diffRecordStartstr(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffRecordStartstr_call method_call = new diffRecordStartstr_call( record, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffRecordStartstr_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private String start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffRecordStartstr_call(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.record = record; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "diffRecordStartstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffRecordStartstr_args args = new diffRecordStartstr_args(); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_diffRecordStartstr(); } } public void diffRecordStartEnd(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffRecordStartEnd_call method_call = new diffRecordStartEnd_call( record, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffRecordStartEnd_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private long start; private long tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffRecordStartEnd_call(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.record = record; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "diffRecordStartEnd", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffRecordStartEnd_args args = new diffRecordStartEnd_args(); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_diffRecordStartEnd(); } } public void diffRecordStartstrEndstr(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffRecordStartstrEndstr_call method_call = new diffRecordStartstrEndstr_call( record, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffRecordStartstrEndstr_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private String start; private String tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffRecordStartstrEndstr_call(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.record = record; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "diffRecordStartstrEndstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffRecordStartstrEndstr_args args = new diffRecordStartstrEndstr_args(); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_diffRecordStartstrEndstr(); } } public void diffKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffKeyRecordStart_call method_call = new diffKeyRecordStart_call( key, record, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffKeyRecordStart_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private long start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffKeyRecordStart_call(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.record = record; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "diffKeyRecordStart", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffKeyRecordStart_args args = new diffKeyRecordStart_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_diffKeyRecordStart(); } } public void diffKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffKeyRecordStartstr_call method_call = new diffKeyRecordStartstr_call( key, record, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffKeyRecordStartstr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private String start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffKeyRecordStartstr_call(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.record = record; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "diffKeyRecordStartstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffKeyRecordStartstr_args args = new diffKeyRecordStartstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_diffKeyRecordStartstr(); } } public void diffKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffKeyRecordStartEnd_call method_call = new diffKeyRecordStartEnd_call( key, record, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffKeyRecordStartEnd_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private long start; private long tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffKeyRecordStartEnd_call(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.record = record; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "diffKeyRecordStartEnd", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffKeyRecordStartEnd_args args = new diffKeyRecordStartEnd_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_diffKeyRecordStartEnd(); } } public void diffKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffKeyRecordStartstrEndstr_call method_call = new diffKeyRecordStartstrEndstr_call( key, record, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffKeyRecordStartstrEndstr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private String start; private String tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffKeyRecordStartstrEndstr_call(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.record = record; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "diffKeyRecordStartstrEndstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffKeyRecordStartstrEndstr_args args = new diffKeyRecordStartstrEndstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_diffKeyRecordStartstrEndstr(); } } public void diffKeyStart(String key, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffKeyStart_call method_call = new diffKeyStart_call(key, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffKeyStart_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffKeyStart_call(String key, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "diffKeyStart", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffKeyStart_args args = new diffKeyStart_args(); args.setKey(key); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_diffKeyStart(); } } public void diffKeyStartstr(String key, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffKeyStartstr_call method_call = new diffKeyStartstr_call(key, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffKeyStartstr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffKeyStartstr_call(String key, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "diffKeyStartstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffKeyStartstr_args args = new diffKeyStartstr_args(); args.setKey(key); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_diffKeyStartstr(); } } public void diffKeyStartEnd(String key, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffKeyStartEnd_call method_call = new diffKeyStartEnd_call(key, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffKeyStartEnd_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long start; private long tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffKeyStartEnd_call(String key, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "diffKeyStartEnd", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffKeyStartEnd_args args = new diffKeyStartEnd_args(); args.setKey(key); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_diffKeyStartEnd(); } } public void diffKeyStartstrEndstr(String key, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffKeyStartstrEndstr_call method_call = new diffKeyStartstrEndstr_call( key, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffKeyStartstrEndstr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String start; private String tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffKeyStartstrEndstr_call(String key, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "diffKeyStartstrEndstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffKeyStartstrEndstr_args args = new diffKeyStartstrEndstr_args(); args.setKey(key); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_diffKeyStartstrEndstr(); } } public void invokePlugin(String id, String method, List params, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); invokePlugin_call method_call = new invokePlugin_call(id, method, params, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class invokePlugin_call extends org.apache.thrift.async.TAsyncMethodCall { private String id; private String method; private List params; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public invokePlugin_call(String id, String method, List params, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.id = id; this.method = method; this.params = params; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "invokePlugin", org.apache.thrift.protocol.TMessageType.CALL, 0)); invokePlugin_args args = new invokePlugin_args(); args.setId(id); args.setMethod(method); args.setParams(params); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.ComplexTObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_stage(); } } public void insertJson(String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); insertJson_call method_call = new insertJson_call(json, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class insertJson_call extends org.apache.thrift.async.TAsyncMethodCall { private String json; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public insertJson_call(String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.json = json; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "insertJson", org.apache.thrift.protocol.TMessageType.CALL, 0)); insertJson_args args = new insertJson_args(); args.setJson(json); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_insertJsonRecord(); } } public void insertJsonRecords(String json, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); insertJsonRecords_call method_call = new insertJsonRecords_call( json, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class insertJsonRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String json; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public insertJsonRecords_call(String json, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.json = json; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "insertJsonRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); insertJsonRecords_args args = new insertJsonRecords_args(); args.setJson(json); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_removeKeyValueRecord(); } } public void removeKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); removeKeyValueRecords_call method_call = new removeKeyValueRecords_call( key, value, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class removeKeyValueRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TObject value; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public removeKeyValueRecords_call(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.value = value; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "removeKeyValueRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); removeKeyValueRecords_args args = new removeKeyValueRecords_args(); args.setKey(key); args.setValue(value); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_setKeyValue(); } } public void setKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); setKeyValueRecords_call method_call = new setKeyValueRecords_call( key, value, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class setKeyValueRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TObject value; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public setKeyValueRecords_call(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.value = value; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "setKeyValueRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); setKeyValueRecords_args args = new setKeyValueRecords_args(); args.setKey(key); args.setValue(value); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_setKeyValueRecords(); } } public void reconcileKeyRecordValues(String key, long record, Set values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); reconcileKeyRecordValues_call method_call = new reconcileKeyRecordValues_call( key, record, values, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class reconcileKeyRecordValues_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private Set values; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public reconcileKeyRecordValues_call(String key, long record, Set values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.record = record; this.values = values; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "reconcileKeyRecordValues", org.apache.thrift.protocol.TMessageType.CALL, 0)); reconcileKeyRecordValues_args args = new reconcileKeyRecordValues_args(); args.setKey(key); args.setRecord(record); args.setValues(values); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_reconcileKeyRecordValues(); } } public void inventory(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); inventory_call method_call = new inventory_call(creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class inventory_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public inventory_call( com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "inventory", org.apache.thrift.protocol.TMessageType.CALL, 0)); inventory_args args = new inventory_args(); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_inventory(); } } public void selectRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectRecord_call method_call = new selectRecord_call(record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectRecord_call(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectRecord_args args = new selectRecord_args(); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectRecord(); } } public void selectRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectRecords_call method_call = new selectRecords_call(records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectRecords_call(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectRecords_args args = new selectRecords_args(); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectRecords(); } } public void selectRecordTime(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectRecordTime_call method_call = new selectRecordTime_call( record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectRecordTime_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectRecordTime_call(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectRecordTime_args args = new selectRecordTime_args(); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectRecordTime(); } } public void selectRecordTimestr(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectRecordTimestr_call method_call = new selectRecordTimestr_call( record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectRecordTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectRecordTimestr_call(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectRecordTimestr_args args = new selectRecordTimestr_args(); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectRecordTimestr(); } } public void selectRecordsTime(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectRecordsTime_call method_call = new selectRecordsTime_call( records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectRecordsTime_call(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectRecordsTime_args args = new selectRecordsTime_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectRecordsTime(); } } public void selectRecordsTimestr(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectRecordsTimestr_call method_call = new selectRecordsTimestr_call( records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectRecordsTimestr_call(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectRecordsTimestr_args args = new selectRecordsTimestr_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectRecordsTimestr(); } } public void selectKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyRecord_call method_call = new selectKeyRecord_call(key, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyRecord_call(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeyRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyRecord_args args = new selectKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeyRecord(); } } public void selectKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyRecordTime_call method_call = new selectKeyRecordTime_call( key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyRecordTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyRecordTime_call(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeyRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyRecordTime_args args = new selectKeyRecordTime_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeyRecordTime(); } } public void selectKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyRecordTimestr_call method_call = new selectKeyRecordTimestr_call( key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyRecordTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyRecordTimestr_call(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeyRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyRecordTimestr_args args = new selectKeyRecordTimestr_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeyRecordTimestr(); } } public void selectKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysRecord_call method_call = new selectKeysRecord_call(keys, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysRecord_call(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeysRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysRecord_args args = new selectKeysRecord_args(); args.setKeys(keys); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeysRecord(); } } public void selectKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysRecordTime_call method_call = new selectKeysRecordTime_call( keys, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysRecordTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysRecordTime_call(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeysRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysRecordTime_args args = new selectKeysRecordTime_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeysRecordTime(); } } public void selectKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysRecordTimestr_call method_call = new selectKeysRecordTimestr_call( keys, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysRecordTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysRecordTimestr_call(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeysRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysRecordTimestr_args args = new selectKeysRecordTimestr_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeysRecordTimestr(); } } public void selectKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysRecords_call method_call = new selectKeysRecords_call( keys, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysRecords_call(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeysRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysRecords_args args = new selectKeysRecords_args(); args.setKeys(keys); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeysRecords(); } } public void selectKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyRecords_call method_call = new selectKeyRecords_call(key, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyRecords_call(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeyRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyRecords_args args = new selectKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeyRecords(); } } public void selectKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyRecordsTime_call method_call = new selectKeyRecordsTime_call( key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyRecordsTime_call(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeyRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyRecordsTime_args args = new selectKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeyRecordsTime(); } } public void selectKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyRecordsTimestr_call method_call = new selectKeyRecordsTimestr_call( key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyRecordsTimestr_call(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeyRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyRecordsTimestr_args args = new selectKeyRecordsTimestr_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeyRecordsTimestr(); } } public void selectKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysRecordsTime_call method_call = new selectKeysRecordsTime_call( keys, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysRecordsTime_call(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeysRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysRecordsTime_args args = new selectKeysRecordsTime_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeysRecordsTime(); } } public void selectKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysRecordsTimestr_call method_call = new selectKeysRecordsTimestr_call( keys, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysRecordsTimestr_call(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeysRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysRecordsTimestr_args args = new selectKeysRecordsTimestr_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeysRecordsTimestr(); } } public void selectCriteria( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectCriteria_call method_call = new selectCriteria_call(criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectCriteria_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.TCriteria criteria; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectCriteria_call( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectCriteria_args args = new selectCriteria_args(); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectCriteria(); } } public void selectCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectCcl_call method_call = new selectCcl_call(ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectCcl_call extends org.apache.thrift.async.TAsyncMethodCall { private String ccl; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectCcl_call(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectCcl_args args = new selectCcl_args(); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectCcl(); } } public void selectCriteriaTime( com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectCriteriaTime_call method_call = new selectCriteriaTime_call( criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectCriteriaTime_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.TCriteria criteria; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectCriteriaTime_call( com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectCriteriaTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectCriteriaTime_args args = new selectCriteriaTime_args(); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectCriteriaTime(); } } public void selectCriteriaTimestr( com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectCriteriaTimestr_call method_call = new selectCriteriaTimestr_call( criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectCriteriaTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.TCriteria criteria; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectCriteriaTimestr_call( com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectCriteriaTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectCriteriaTimestr_args args = new selectCriteriaTimestr_args(); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectCriteriaTimestr(); } } public void selectCclTime(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectCclTime_call method_call = new selectCclTime_call(ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectCclTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String ccl; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectCclTime_call(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectCclTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectCclTime_args args = new selectCclTime_args(); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectCclTime(); } } public void selectCclTimestr(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectCclTimestr_call method_call = new selectCclTimestr_call(ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectCclTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String ccl; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectCclTimestr_call(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectCclTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectCclTimestr_args args = new selectCclTimestr_args(); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectCclTimestr(); } } public void selectKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyCriteria_call method_call = new selectKeyCriteria_call(key, criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyCriteria_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyCriteria_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeyCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyCriteria_args args = new selectKeyCriteria_args(); args.setKey(key); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeyCriteria(); } } public void selectKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyCcl_call method_call = new selectKeyCcl_call(key, ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyCcl_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyCcl_call(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeyCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyCcl_args args = new selectKeyCcl_args(); args.setKey(key); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeyCcl(); } } public void selectKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyCriteriaTime_call method_call = new selectKeyCriteriaTime_call( key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyCriteriaTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyCriteriaTime_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeyCriteriaTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyCriteriaTime_args args = new selectKeyCriteriaTime_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeyCriteriaTime(); } } public void selectKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyCriteriaTimestr_call method_call = new selectKeyCriteriaTimestr_call( key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyCriteriaTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyCriteriaTimestr_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeyCriteriaTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyCriteriaTimestr_args args = new selectKeyCriteriaTimestr_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeyCriteriaTimestr(); } } public void selectKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyCclTime_call method_call = new selectKeyCclTime_call(key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyCclTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyCclTime_call(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeyCclTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyCclTime_args args = new selectKeyCclTime_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeyCclTime(); } } public void selectKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyCclTimestr_call method_call = new selectKeyCclTimestr_call( key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyCclTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyCclTimestr_call(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeyCclTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyCclTimestr_args args = new selectKeyCclTimestr_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeyCclTimestr(); } } public void selectKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysCriteria_call method_call = new selectKeysCriteria_call( keys, criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysCriteria_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private com.cinchapi.concourse.thrift.TCriteria criteria; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysCriteria_call(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeysCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysCriteria_args args = new selectKeysCriteria_args(); args.setKeys(keys); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeysCriteria(); } } public void selectKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysCcl_call method_call = new selectKeysCcl_call(keys, ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysCcl_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private String ccl; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysCcl_call(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeysCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysCcl_args args = new selectKeysCcl_args(); args.setKeys(keys); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeysCcl(); } } public void selectKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysCriteriaTime_call method_call = new selectKeysCriteriaTime_call( keys, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysCriteriaTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private com.cinchapi.concourse.thrift.TCriteria criteria; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysCriteriaTime_call(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeysCriteriaTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysCriteriaTime_args args = new selectKeysCriteriaTime_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeysCriteriaTime(); } } public void selectKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysCriteriaTimestr_call method_call = new selectKeysCriteriaTimestr_call( keys, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysCriteriaTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private com.cinchapi.concourse.thrift.TCriteria criteria; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysCriteriaTimestr_call(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeysCriteriaTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysCriteriaTimestr_args args = new selectKeysCriteriaTimestr_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeysCriteriaTimestr(); } } public void selectKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysCclTime_call method_call = new selectKeysCclTime_call( keys, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysCclTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private String ccl; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysCclTime_call(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeysCclTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysCclTime_args args = new selectKeysCclTime_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_selectKeysCclTime(); } } public void selectKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysCclTimestr_call method_call = new selectKeysCclTimestr_call( keys, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysCclTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private String ccl; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysCclTimestr_call(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "selectKeysCclTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysCclTimestr_args args = new selectKeysCclTimestr_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getKeyRecordTimestr(); } } public void getKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysRecord_call method_call = new getKeysRecord_call(keys, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysRecord_call(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getKeysRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysRecord_args args = new getKeysRecord_args(); args.setKeys(keys); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getKeysRecord(); } } public void getKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysRecordTime_call method_call = new getKeysRecordTime_call( keys, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysRecordTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysRecordTime_call(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getKeysRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysRecordTime_args args = new getKeysRecordTime_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getKeysRecordTime(); } } public void getKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysRecordTimestr_call method_call = new getKeysRecordTimestr_call( keys, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysRecordTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysRecordTimestr_call(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getKeysRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysRecordTimestr_args args = new getKeysRecordTimestr_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getKeysRecordTimestr(); } } public void getKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysRecords_call method_call = new getKeysRecords_call(keys, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysRecords_call(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getKeysRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysRecords_args args = new getKeysRecords_args(); args.setKeys(keys); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getKeysRecords(); } } public void getKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeyRecords_call method_call = new getKeyRecords_call(key, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeyRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeyRecords_call(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getKeyRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeyRecords_args args = new getKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getKeyRecords(); } } public void getKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeyRecordsTime_call method_call = new getKeyRecordsTime_call(key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeyRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeyRecordsTime_call(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getKeyRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeyRecordsTime_args args = new getKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getKeyRecordsTime(); } } public void getKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeyRecordsTimestr_call method_call = new getKeyRecordsTimestr_call( key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeyRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeyRecordsTimestr_call(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getKeyRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeyRecordsTimestr_args args = new getKeyRecordsTimestr_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getKeyRecordsTimestr(); } } public void getKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysRecordsTime_call method_call = new getKeysRecordsTime_call( keys, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysRecordsTime_call(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getKeysRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysRecordsTime_args args = new getKeysRecordsTime_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getKeysRecordsTime(); } } public void getKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysRecordsTimestr_call method_call = new getKeysRecordsTimestr_call( keys, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysRecordsTimestr_call(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getKeysRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysRecordsTimestr_args args = new getKeysRecordsTimestr_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getKeysRecordsTimestr(); } } public void getKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeyCriteria_call method_call = new getKeyCriteria_call(key, criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeyCriteria_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeyCriteria_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getKeyCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeyCriteria_args args = new getKeyCriteria_args(); args.setKey(key); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getKeyCriteria(); } } public void getCriteria( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getCriteria_call method_call = new getCriteria_call(criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getCriteria_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.TCriteria criteria; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getCriteria_call( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); getCriteria_args args = new getCriteria_args(); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getCriteria(); } } public void getCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getCcl_call method_call = new getCcl_call(ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getCcl_call extends org.apache.thrift.async.TAsyncMethodCall { private String ccl; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getCcl_call(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); getCcl_args args = new getCcl_args(); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getCcl(); } } public void getCriteriaTime( com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getCriteriaTime_call method_call = new getCriteriaTime_call( criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getCriteriaTime_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.TCriteria criteria; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getCriteriaTime_call( com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getCriteriaTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); getCriteriaTime_args args = new getCriteriaTime_args(); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getCriteriaTime(); } } public void getCriteriaTimestr( com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getCriteriaTimestr_call method_call = new getCriteriaTimestr_call( criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getCriteriaTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.TCriteria criteria; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getCriteriaTimestr_call( com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getCriteriaTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); getCriteriaTimestr_args args = new getCriteriaTimestr_args(); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getCriteriaTimestr(); } } public void getCclTime(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getCclTime_call method_call = new getCclTime_call(ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getCclTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String ccl; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getCclTime_call(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getCclTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); getCclTime_args args = new getCclTime_args(); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getCclTime(); } } public void getCclTimestr(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getCclTimestr_call method_call = new getCclTimestr_call(ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getCclTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String ccl; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getCclTimestr_call(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getCclTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); getCclTimestr_args args = new getCclTimestr_args(); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getCclTimestr(); } } public void getKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeyCcl_call method_call = new getKeyCcl_call(key, ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeyCcl_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeyCcl_call(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getKeyCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeyCcl_args args = new getKeyCcl_args(); args.setKey(key); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getKeyCcl(); } } public void getKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeyCriteriaTime_call method_call = new getKeyCriteriaTime_call( key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeyCriteriaTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeyCriteriaTime_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getKeyCriteriaTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeyCriteriaTime_args args = new getKeyCriteriaTime_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getKeyCriteriaTime(); } } public void getKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeyCriteriaTimestr_call method_call = new getKeyCriteriaTimestr_call( key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeyCriteriaTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeyCriteriaTimestr_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getKeyCriteriaTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeyCriteriaTimestr_args args = new getKeyCriteriaTimestr_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getKeyCriteriaTimestr(); } } public void getKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeyCclTime_call method_call = new getKeyCclTime_call(key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeyCclTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeyCclTime_call(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getKeyCclTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeyCclTime_args args = new getKeyCclTime_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getKeyCclTime(); } } public void getKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeyCclTimestr_call method_call = new getKeyCclTimestr_call(key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeyCclTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeyCclTimestr_call(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getKeyCclTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeyCclTimestr_args args = new getKeyCclTimestr_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getKeyCclTimestr(); } } public void getKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysCriteria_call method_call = new getKeysCriteria_call(keys, criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysCriteria_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private com.cinchapi.concourse.thrift.TCriteria criteria; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysCriteria_call(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getKeysCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysCriteria_args args = new getKeysCriteria_args(); args.setKeys(keys); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getKeysCriteria(); } } public void getKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysCcl_call method_call = new getKeysCcl_call(keys, ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysCcl_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private String ccl; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysCcl_call(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getKeysCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysCcl_args args = new getKeysCcl_args(); args.setKeys(keys); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getKeysCcl(); } } public void getKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysCriteriaTime_call method_call = new getKeysCriteriaTime_call( keys, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysCriteriaTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private com.cinchapi.concourse.thrift.TCriteria criteria; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysCriteriaTime_call(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getKeysCriteriaTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysCriteriaTime_args args = new getKeysCriteriaTime_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getKeysCriteriaTime(); } } public void getKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysCriteriaTimestr_call method_call = new getKeysCriteriaTimestr_call( keys, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysCriteriaTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private com.cinchapi.concourse.thrift.TCriteria criteria; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysCriteriaTimestr_call(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getKeysCriteriaTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysCriteriaTimestr_args args = new getKeysCriteriaTimestr_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getKeysCriteriaTimestr(); } } public void getKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysCclTime_call method_call = new getKeysCclTime_call(keys, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysCclTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private String ccl; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysCclTime_call(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getKeysCclTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysCclTime_args args = new getKeysCclTime_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getKeysCclTime(); } } public void getKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysCclTimestr_call method_call = new getKeysCclTimestr_call( keys, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysCclTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private String ccl; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysCclTimestr_call(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getKeysCclTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysCclTimestr_args args = new getKeysCclTimestr_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_verifyKeyValueRecordTimestr(); } } public void jsonifyRecords(List records, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); jsonifyRecords_call method_call = new jsonifyRecords_call(records, identifier, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class jsonifyRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private boolean identifier; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public jsonifyRecords_call(List records, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.records = records; this.identifier = identifier; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "jsonifyRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); jsonifyRecords_args args = new jsonifyRecords_args(); args.setRecords(records); args.setIdentifier(identifier); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public String getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_jsonifyRecords(); } } public void jsonifyRecordsTime(List records, long timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); jsonifyRecordsTime_call method_call = new jsonifyRecordsTime_call( records, timestamp, identifier, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class jsonifyRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private long timestamp; private boolean identifier; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public jsonifyRecordsTime_call(List records, long timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.records = records; this.timestamp = timestamp; this.identifier = identifier; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "jsonifyRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); jsonifyRecordsTime_args args = new jsonifyRecordsTime_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setIdentifier(identifier); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public String getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_jsonifyRecordsTime(); } } public void jsonifyRecordsTimestr(List records, String timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); jsonifyRecordsTimestr_call method_call = new jsonifyRecordsTimestr_call( records, timestamp, identifier, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class jsonifyRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private String timestamp; private boolean identifier; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public jsonifyRecordsTimestr_call(List records, String timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.records = records; this.timestamp = timestamp; this.identifier = identifier; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "jsonifyRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); jsonifyRecordsTimestr_args args = new jsonifyRecordsTimestr_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setIdentifier(identifier); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public String getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_jsonifyRecordsTimestr(); } } public void findCriteria( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); findCriteria_call method_call = new findCriteria_call(criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class findCriteria_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.TCriteria criteria; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public findCriteria_call( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "findCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); findCriteria_args args = new findCriteria_args(); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_findCriteria(); } } public void findCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); findCcl_call method_call = new findCcl_call(ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class findCcl_call extends org.apache.thrift.async.TAsyncMethodCall { private String ccl; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public findCcl_call(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "findCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); findCcl_args args = new findCcl_args(); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_findCcl(); } } public void findKeyOperatorValues(String key, com.cinchapi.concourse.thrift.Operator operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); findKeyOperatorValues_call method_call = new findKeyOperatorValues_call( key, operator, values, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class findKeyOperatorValues_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.Operator operator; private List values; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public findKeyOperatorValues_call(String key, com.cinchapi.concourse.thrift.Operator operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.operator = operator; this.values = values; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "findKeyOperatorValues", org.apache.thrift.protocol.TMessageType.CALL, 0)); findKeyOperatorValues_args args = new findKeyOperatorValues_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_findKeyOperatorValues(); } } public void findKeyOperatorValuesTime(String key, com.cinchapi.concourse.thrift.Operator operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); findKeyOperatorValuesTime_call method_call = new findKeyOperatorValuesTime_call( key, operator, values, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class findKeyOperatorValuesTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.Operator operator; private List values; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public findKeyOperatorValuesTime_call(String key, com.cinchapi.concourse.thrift.Operator operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.operator = operator; this.values = values; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "findKeyOperatorValuesTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); findKeyOperatorValuesTime_args args = new findKeyOperatorValuesTime_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_findKeyOperatorValuesTime(); } } public void findKeyOperatorValuesTimestr(String key, com.cinchapi.concourse.thrift.Operator operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); findKeyOperatorValuesTimestr_call method_call = new findKeyOperatorValuesTimestr_call( key, operator, values, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class findKeyOperatorValuesTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.Operator operator; private List values; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public findKeyOperatorValuesTimestr_call(String key, com.cinchapi.concourse.thrift.Operator operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.operator = operator; this.values = values; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "findKeyOperatorValuesTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); findKeyOperatorValuesTimestr_args args = new findKeyOperatorValuesTimestr_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_findKeyOperatorValuesTimestr(); } } public void findKeyOperatorstrValues(String key, String operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); findKeyOperatorstrValues_call method_call = new findKeyOperatorstrValues_call( key, operator, values, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class findKeyOperatorstrValues_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String operator; private List values; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public findKeyOperatorstrValues_call(String key, String operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.operator = operator; this.values = values; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "findKeyOperatorstrValues", org.apache.thrift.protocol.TMessageType.CALL, 0)); findKeyOperatorstrValues_args args = new findKeyOperatorstrValues_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_findKeyOperatorstrValues(); } } public void findKeyOperatorstrValuesTime(String key, String operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); findKeyOperatorstrValuesTime_call method_call = new findKeyOperatorstrValuesTime_call( key, operator, values, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class findKeyOperatorstrValuesTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String operator; private List values; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public findKeyOperatorstrValuesTime_call(String key, String operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.operator = operator; this.values = values; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "findKeyOperatorstrValuesTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); findKeyOperatorstrValuesTime_args args = new findKeyOperatorstrValuesTime_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_findKeyOperatorstrValuesTime(); } } public void findKeyOperatorstrValuesTimestr(String key, String operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); findKeyOperatorstrValuesTimestr_call method_call = new findKeyOperatorstrValuesTimestr_call( key, operator, values, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class findKeyOperatorstrValuesTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String operator; private List values; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public findKeyOperatorstrValuesTimestr_call(String key, String operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.operator = operator; this.values = values; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "findKeyOperatorstrValuesTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); findKeyOperatorstrValuesTimestr_args args = new findKeyOperatorstrValuesTimestr_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)) .recv_findKeyOperatorstrValuesTimestr(); } } public void search(String key, String query, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); search_call method_call = new search_call(key, query, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class search_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String query; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public search_call(String key, String query, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.query = query; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "search", org.apache.thrift.protocol.TMessageType.CALL, 0)); search_args args = new search_args(); args.setKey(key); args.setQuery(query); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_search(); } } public void revertKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); revertKeysRecordsTime_call method_call = new revertKeysRecordsTime_call( keys, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class revertKeysRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public revertKeysRecordsTime_call(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "revertKeysRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); revertKeysRecordsTime_args args = new revertKeysRecordsTime_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_revertKeysRecordsTime(); } } public void revertKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); revertKeysRecordsTimestr_call method_call = new revertKeysRecordsTimestr_call( keys, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class revertKeysRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public revertKeysRecordsTimestr_call(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "revertKeysRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); revertKeysRecordsTimestr_args args = new revertKeysRecordsTimestr_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_revertKeysRecordsTimestr(); } } public void revertKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); revertKeysRecordTime_call method_call = new revertKeysRecordTime_call( keys, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class revertKeysRecordTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public revertKeysRecordTime_call(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "revertKeysRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); revertKeysRecordTime_args args = new revertKeysRecordTime_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_revertKeysRecordTime(); } } public void revertKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); revertKeysRecordTimestr_call method_call = new revertKeysRecordTimestr_call( keys, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class revertKeysRecordTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public revertKeysRecordTimestr_call(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "revertKeysRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); revertKeysRecordTimestr_args args = new revertKeysRecordTimestr_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_revertKeysRecordTimestr(); } } public void revertKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); revertKeyRecordsTime_call method_call = new revertKeyRecordsTime_call( key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class revertKeyRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public revertKeyRecordsTime_call(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "revertKeyRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); revertKeyRecordsTime_args args = new revertKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_revertKeyRecordsTime(); } } public void revertKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); revertKeyRecordsTimestr_call method_call = new revertKeyRecordsTimestr_call( key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class revertKeyRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public revertKeyRecordsTimestr_call(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "revertKeyRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); revertKeyRecordsTimestr_args args = new revertKeyRecordsTimestr_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_revertKeyRecordTimestr(); } } public void pingRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); pingRecords_call method_call = new pingRecords_call(records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class pingRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public pingRecords_call(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "pingRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); pingRecords_args args = new pingRecords_args(); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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 sumKeyRecordTimestr(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(); sumKeyRecordTimestr_call method_call = new sumKeyRecordTimestr_call( key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sumKeyRecordTimestr_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 sumKeyRecordTimestr_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( "sumKeyRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); sumKeyRecordTimestr_args args = new sumKeyRecordTimestr_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_sumKeyRecordTimestr(); } } public void sumKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); sumKeyRecords_call method_call = new sumKeyRecords_call(key, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sumKeyRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public sumKeyRecords_call(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "sumKeyRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); sumKeyRecords_args args = new sumKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_sumKeyRecords(); } } public void sumKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); sumKeyRecordsTime_call method_call = new sumKeyRecordsTime_call(key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sumKeyRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public sumKeyRecordsTime_call(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "sumKeyRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); sumKeyRecordsTime_args args = new sumKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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 sumKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); sumKeyRecordsTimestr_call method_call = new sumKeyRecordsTimestr_call( key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sumKeyRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public sumKeyRecordsTimestr_call(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "sumKeyRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); sumKeyRecordsTimestr_args args = new sumKeyRecordsTimestr_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, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_sumKeyRecordsTimestr(); } } 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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 sumKeyTimestr(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(); sumKeyTimestr_call method_call = new sumKeyTimestr_call(key, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sumKeyTimestr_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 sumKeyTimestr_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( "sumKeyTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); sumKeyTimestr_args args = new sumKeyTimestr_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, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_sumKeyTimestr(); } } 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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 sumKeyCriteriaTimestr(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(); sumKeyCriteriaTimestr_call method_call = new sumKeyCriteriaTimestr_call( key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sumKeyCriteriaTimestr_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 sumKeyCriteriaTimestr_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( "sumKeyCriteriaTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); sumKeyCriteriaTimestr_args args = new sumKeyCriteriaTimestr_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, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_sumKeyCriteriaTimestr(); } } 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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 sumKeyCclTimestr(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(); sumKeyCclTimestr_call method_call = new sumKeyCclTimestr_call(key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sumKeyCclTimestr_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 sumKeyCclTimestr_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( "sumKeyCclTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); sumKeyCclTimestr_args args = new sumKeyCclTimestr_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_sumKeyCclTimestr(); } } 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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 averageKeyRecordTimestr(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(); averageKeyRecordTimestr_call method_call = new averageKeyRecordTimestr_call( key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class averageKeyRecordTimestr_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 averageKeyRecordTimestr_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( "averageKeyRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); averageKeyRecordTimestr_args args = new averageKeyRecordTimestr_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_averageKeyRecordTimestr(); } } public void averageKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); averageKeyRecords_call method_call = new averageKeyRecords_call(key, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class averageKeyRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public averageKeyRecords_call(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "averageKeyRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); averageKeyRecords_args args = new averageKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_averageKeyRecords(); } } public void averageKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); averageKeyRecordsTime_call method_call = new averageKeyRecordsTime_call( key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class averageKeyRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public averageKeyRecordsTime_call(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "averageKeyRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); averageKeyRecordsTime_args args = new averageKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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 averageKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); averageKeyRecordsTimestr_call method_call = new averageKeyRecordsTimestr_call( key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class averageKeyRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public averageKeyRecordsTimestr_call(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "averageKeyRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); averageKeyRecordsTimestr_args args = new averageKeyRecordsTimestr_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, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_averageKeyRecordsTimestr(); } } 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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 averageKeyTimestr(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(); averageKeyTimestr_call method_call = new averageKeyTimestr_call(key, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class averageKeyTimestr_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 averageKeyTimestr_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( "averageKeyTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); averageKeyTimestr_args args = new averageKeyTimestr_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, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_averageKeyTimestr(); } } 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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 averageKeyCriteriaTimestr(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(); averageKeyCriteriaTimestr_call method_call = new averageKeyCriteriaTimestr_call( key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class averageKeyCriteriaTimestr_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 averageKeyCriteriaTimestr_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( "averageKeyCriteriaTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); averageKeyCriteriaTimestr_args args = new averageKeyCriteriaTimestr_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, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_averageKeyCriteriaTimestr(); } } 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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 averageKeyCclTimestr(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(); averageKeyCclTimestr_call method_call = new averageKeyCclTimestr_call( key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class averageKeyCclTimestr_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 averageKeyCclTimestr_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( "averageKeyCclTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); averageKeyCclTimestr_args args = new averageKeyCclTimestr_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_averageKeyCclTimestr(); } } public void countKeyRecord(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(); countKeyRecord_call method_call = new countKeyRecord_call(key, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class countKeyRecord_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 countKeyRecord_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( "countKeyRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); countKeyRecord_args args = new countKeyRecord_args(); args.setKey(key); args.setRecord(record); 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.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_countKeyRecord(); } } public void countKeyRecordTime(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(); countKeyRecordTime_call method_call = new countKeyRecordTime_call( key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class countKeyRecordTime_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 countKeyRecordTime_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( "countKeyRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); countKeyRecordTime_args args = new countKeyRecordTime_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 long getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_countKeyRecordTime(); } } public void countKeyRecordTimestr(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(); countKeyRecordTimestr_call method_call = new countKeyRecordTimestr_call( key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class countKeyRecordTimestr_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 countKeyRecordTimestr_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( "countKeyRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); countKeyRecordTimestr_args args = new countKeyRecordTimestr_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 long getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_countKeyRecordTimestr(); } } public void countKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); countKeyRecords_call method_call = new countKeyRecords_call(key, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class countKeyRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public countKeyRecords_call(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "countKeyRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); countKeyRecords_args args = new countKeyRecords_args(); args.setKey(key); args.setRecords(records); 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.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_countKeyRecords(); } } public void countKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); countKeyRecordsTime_call method_call = new countKeyRecordsTime_call( key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class countKeyRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public countKeyRecordsTime_call(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "countKeyRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); countKeyRecordsTime_args args = new countKeyRecordsTime_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 long getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_countKeyRecordsTime(); } } public void countKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); countKeyRecordsTimestr_call method_call = new countKeyRecordsTimestr_call( key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class countKeyRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public countKeyRecordsTimestr_call(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "countKeyRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); countKeyRecordsTimestr_args args = new countKeyRecordsTimestr_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 long getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_countKeyRecordsTimestr(); } } public void countKey(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(); countKey_call method_call = new countKey_call(key, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class countKey_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 countKey_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( "countKey", org.apache.thrift.protocol.TMessageType.CALL, 0)); countKey_args args = new countKey_args(); args.setKey(key); 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.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_countKey(); } } public void countKeyTime(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(); countKeyTime_call method_call = new countKeyTime_call(key, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class countKeyTime_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 countKeyTime_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( "countKeyTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); countKeyTime_args args = new countKeyTime_args(); args.setKey(key); args.setTimestamp(timestamp); 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.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_countKeyTime(); } } public void countKeyTimestr(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(); countKeyTimestr_call method_call = new countKeyTimestr_call(key, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class countKeyTimestr_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 countKeyTimestr_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( "countKeyTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); countKeyTimestr_args args = new countKeyTimestr_args(); args.setKey(key); args.setTimestamp(timestamp); 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.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_countKeyTimestr(); } } public void countKeyCriteria(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(); countKeyCriteria_call method_call = new countKeyCriteria_call(key, criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class countKeyCriteria_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 countKeyCriteria_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( "countKeyCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); countKeyCriteria_args args = new countKeyCriteria_args(); args.setKey(key); args.setCriteria(criteria); 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.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_countKeyCriteria(); } } public void countKeyCriteriaTime(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(); countKeyCriteriaTime_call method_call = new countKeyCriteriaTime_call( key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class countKeyCriteriaTime_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 countKeyCriteriaTime_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( "countKeyCriteriaTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); countKeyCriteriaTime_args args = new countKeyCriteriaTime_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 long getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_countKeyCriteriaTime(); } } public void countKeyCriteriaTimestr(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(); countKeyCriteriaTimestr_call method_call = new countKeyCriteriaTimestr_call( key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class countKeyCriteriaTimestr_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 countKeyCriteriaTimestr_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( "countKeyCriteriaTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); countKeyCriteriaTimestr_args args = new countKeyCriteriaTimestr_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 long getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_countKeyCriteriaTimestr(); } } public void countKeyCcl(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(); countKeyCcl_call method_call = new countKeyCcl_call(key, ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class countKeyCcl_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 countKeyCcl_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( "countKeyCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); countKeyCcl_args args = new countKeyCcl_args(); args.setKey(key); args.setCcl(ccl); 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.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_countKeyCcl(); } } public void countKeyCclTime(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(); countKeyCclTime_call method_call = new countKeyCclTime_call(key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class countKeyCclTime_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 countKeyCclTime_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( "countKeyCclTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); countKeyCclTime_args args = new countKeyCclTime_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 long getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_countKeyCclTime(); } } public void countKeyCclTimestr(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(); countKeyCclTimestr_call method_call = new countKeyCclTimestr_call( key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class countKeyCclTimestr_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 countKeyCclTimestr_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( "countKeyCclTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); countKeyCclTimestr_args args = new countKeyCclTimestr_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 long getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_countKeyCclTimestr(); } } public void maxKeyRecord(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(); maxKeyRecord_call method_call = new maxKeyRecord_call(key, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class maxKeyRecord_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 maxKeyRecord_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( "maxKeyRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); maxKeyRecord_args args = new maxKeyRecord_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_maxKeyRecord(); } } public void maxKeyRecordTime(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(); maxKeyRecordTime_call method_call = new maxKeyRecordTime_call(key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class maxKeyRecordTime_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 maxKeyRecordTime_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( "maxKeyRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); maxKeyRecordTime_args args = new maxKeyRecordTime_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.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_maxKeyRecordTime(); } } public void maxKeyRecordTimestr(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(); maxKeyRecordTimestr_call method_call = new maxKeyRecordTimestr_call( key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class maxKeyRecordTimestr_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 maxKeyRecordTimestr_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( "maxKeyRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); maxKeyRecordTimestr_args args = new maxKeyRecordTimestr_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_maxKeyRecordTimestr(); } } public void maxKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); maxKeyRecords_call method_call = new maxKeyRecords_call(key, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class maxKeyRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public maxKeyRecords_call(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "maxKeyRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); maxKeyRecords_args args = new maxKeyRecords_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_maxKeyRecords(); } } public void maxKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); maxKeyRecordsTime_call method_call = new maxKeyRecordsTime_call(key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class maxKeyRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public maxKeyRecordsTime_call(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "maxKeyRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); maxKeyRecordsTime_args args = new maxKeyRecordsTime_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_maxKeyRecordsTime(); } } public void maxKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); maxKeyRecordsTimestr_call method_call = new maxKeyRecordsTimestr_call( key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class maxKeyRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public maxKeyRecordsTimestr_call(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "maxKeyRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); maxKeyRecordsTimestr_args args = new maxKeyRecordsTimestr_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, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_maxKeyRecordsTimestr(); } } public void maxKeyCriteria(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(); maxKeyCriteria_call method_call = new maxKeyCriteria_call(key, criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class maxKeyCriteria_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 maxKeyCriteria_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( "maxKeyCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); maxKeyCriteria_args args = new maxKeyCriteria_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_maxKeyCriteria(); } } public void maxKeyCriteriaTime(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(); maxKeyCriteriaTime_call method_call = new maxKeyCriteriaTime_call( key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class maxKeyCriteriaTime_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 maxKeyCriteriaTime_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( "maxKeyCriteriaTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); maxKeyCriteriaTime_args args = new maxKeyCriteriaTime_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_maxKeyCriteriaTime(); } } public void maxKeyCriteriaTimestr(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(); maxKeyCriteriaTimestr_call method_call = new maxKeyCriteriaTimestr_call( key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class maxKeyCriteriaTimestr_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 maxKeyCriteriaTimestr_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( "maxKeyCriteriaTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); maxKeyCriteriaTimestr_args args = new maxKeyCriteriaTimestr_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, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_maxKeyCriteriaTimestr(); } } public void maxKeyCcl(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(); maxKeyCcl_call method_call = new maxKeyCcl_call(key, ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class maxKeyCcl_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 maxKeyCcl_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( "maxKeyCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); maxKeyCcl_args args = new maxKeyCcl_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_maxKeyCcl(); } } public void maxKeyCclTime(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(); maxKeyCclTime_call method_call = new maxKeyCclTime_call(key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class maxKeyCclTime_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 maxKeyCclTime_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( "maxKeyCclTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); maxKeyCclTime_args args = new maxKeyCclTime_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_maxKeyCclTime(); } } public void maxKeyCclTimestr(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(); maxKeyCclTimestr_call method_call = new maxKeyCclTimestr_call(key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class maxKeyCclTimestr_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 maxKeyCclTimestr_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( "maxKeyCclTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); maxKeyCclTimestr_args args = new maxKeyCclTimestr_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_maxKeyCclTimestr(); } } public void maxKey(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(); maxKey_call method_call = new maxKey_call(key, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class maxKey_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 maxKey_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( "maxKey", org.apache.thrift.protocol.TMessageType.CALL, 0)); maxKey_args args = new maxKey_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_maxKey(); } } public void maxKeyTime(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(); maxKeyTime_call method_call = new maxKeyTime_call(key, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class maxKeyTime_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 maxKeyTime_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( "maxKeyTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); maxKeyTime_args args = new maxKeyTime_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_maxKeyTime(); } } public void maxKeyTimestr(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(); maxKeyTimestr_call method_call = new maxKeyTimestr_call(key, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class maxKeyTimestr_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 maxKeyTimestr_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( "maxKeyTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); maxKeyTimestr_args args = new maxKeyTimestr_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, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_maxKeyTimestr(); } } public void minKeyRecord(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(); minKeyRecord_call method_call = new minKeyRecord_call(key, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class minKeyRecord_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 minKeyRecord_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( "minKeyRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); minKeyRecord_args args = new minKeyRecord_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_minKeyRecord(); } } public void minKeyRecordTime(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(); minKeyRecordTime_call method_call = new minKeyRecordTime_call(key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class minKeyRecordTime_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 minKeyRecordTime_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( "minKeyRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); minKeyRecordTime_args args = new minKeyRecordTime_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.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_minKeyRecordTime(); } } public void minKeyRecordTimestr(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(); minKeyRecordTimestr_call method_call = new minKeyRecordTimestr_call( key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class minKeyRecordTimestr_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 minKeyRecordTimestr_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( "minKeyRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); minKeyRecordTimestr_args args = new minKeyRecordTimestr_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_minKeyRecordTimestr(); } } public void minKey(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(); minKey_call method_call = new minKey_call(key, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class minKey_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 minKey_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( "minKey", org.apache.thrift.protocol.TMessageType.CALL, 0)); minKey_args args = new minKey_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_minKey(); } } public void minKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); minKeyRecordsTime_call method_call = new minKeyRecordsTime_call(key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class minKeyRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public minKeyRecordsTime_call(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "minKeyRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); minKeyRecordsTime_args args = new minKeyRecordsTime_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_minKeyRecordsTime(); } } public void minKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); minKeyRecordsTimestr_call method_call = new minKeyRecordsTimestr_call( key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class minKeyRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public minKeyRecordsTimestr_call(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "minKeyRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); minKeyRecordsTimestr_args args = new minKeyRecordsTimestr_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, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_minKeyRecordsTimestr(); } } public void minKeyCriteria(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(); minKeyCriteria_call method_call = new minKeyCriteria_call(key, criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class minKeyCriteria_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 minKeyCriteria_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( "minKeyCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); minKeyCriteria_args args = new minKeyCriteria_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_minKeyCriteria(); } } public void minKeyCriteriaTime(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(); minKeyCriteriaTime_call method_call = new minKeyCriteriaTime_call( key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class minKeyCriteriaTime_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 minKeyCriteriaTime_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( "minKeyCriteriaTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); minKeyCriteriaTime_args args = new minKeyCriteriaTime_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_minKeyCriteriaTime(); } } public void minKeyCriteriaTimestr(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(); minKeyCriteriaTimestr_call method_call = new minKeyCriteriaTimestr_call( key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class minKeyCriteriaTimestr_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 minKeyCriteriaTimestr_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( "minKeyCriteriaTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); minKeyCriteriaTimestr_args args = new minKeyCriteriaTimestr_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, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_minKeyCriteriaTimestr(); } } public void minKeyCcl(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(); minKeyCcl_call method_call = new minKeyCcl_call(key, ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class minKeyCcl_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 minKeyCcl_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( "minKeyCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); minKeyCcl_args args = new minKeyCcl_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_minKeyCcl(); } } public void minKeyCclTime(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(); minKeyCclTime_call method_call = new minKeyCclTime_call(key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class minKeyCclTime_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 minKeyCclTime_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( "minKeyCclTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); minKeyCclTime_args args = new minKeyCclTime_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_minKeyCclTime(); } } public void minKeyCclTimestr(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(); minKeyCclTimestr_call method_call = new minKeyCclTimestr_call(key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class minKeyCclTimestr_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 minKeyCclTimestr_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( "minKeyCclTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); minKeyCclTimestr_args args = new minKeyCclTimestr_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_minKeyCclTimestr(); } } public void minKeyTime(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(); minKeyTime_call method_call = new minKeyTime_call(key, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class minKeyTime_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 minKeyTime_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( "minKeyTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); minKeyTime_args args = new minKeyTime_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_minKeyTime(); } } public void minKeyTimestr(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(); minKeyTimestr_call method_call = new minKeyTimestr_call(key, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class minKeyTimestr_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 minKeyTimestr_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( "minKeyTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); minKeyTimestr_args args = new minKeyTimestr_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, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_minKeyTimestr(); } } public void minKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); minKeyRecords_call method_call = new minKeyRecords_call(key, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class minKeyRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public minKeyRecords_call(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "minKeyRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); minKeyRecords_args args = new minKeyRecords_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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_minKeyRecords(); } } public void navigateKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyRecord_call method_call = new navigateKeyRecord_call(key, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyRecord_call(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeyRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyRecord_args args = new navigateKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeyRecord(); } } public void navigateKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyRecordTime_call method_call = new navigateKeyRecordTime_call( key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyRecordTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyRecordTime_call(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeyRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyRecordTime_args args = new navigateKeyRecordTime_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeyRecordTime(); } } public void navigateKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyRecordTimestr_call method_call = new navigateKeyRecordTimestr_call( key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyRecordTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyRecordTimestr_call(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeyRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyRecordTimestr_args args = new navigateKeyRecordTimestr_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeyRecordTimestr(); } } public void navigateKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysRecord_call method_call = new navigateKeysRecord_call( keys, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysRecord_call(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeysRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysRecord_args args = new navigateKeysRecord_args(); args.setKeys(keys); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeysRecord(); } } public void navigateKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysRecordTime_call method_call = new navigateKeysRecordTime_call( keys, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysRecordTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysRecordTime_call(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeysRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysRecordTime_args args = new navigateKeysRecordTime_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeysRecordTime(); } } public void navigateKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysRecordTimestr_call method_call = new navigateKeysRecordTimestr_call( keys, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysRecordTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysRecordTimestr_call(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeysRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysRecordTimestr_args args = new navigateKeysRecordTimestr_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeysRecordTimestr(); } } public void navigateKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysRecords_call method_call = new navigateKeysRecords_call( keys, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysRecords_call(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeysRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysRecords_args args = new navigateKeysRecords_args(); args.setKeys(keys); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeysRecords(); } } public void navigateKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyRecords_call method_call = new navigateKeyRecords_call( key, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyRecords_call(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeyRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyRecords_args args = new navigateKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeyRecords(); } } public void navigateKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyRecordsTime_call method_call = new navigateKeyRecordsTime_call( key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyRecordsTime_call(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeyRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyRecordsTime_args args = new navigateKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeyRecordsTime(); } } public void navigateKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyRecordsTimestr_call method_call = new navigateKeyRecordsTimestr_call( key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyRecordsTimestr_call(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeyRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyRecordsTimestr_args args = new navigateKeyRecordsTimestr_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeyRecordsTimestr(); } } public void navigateKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysRecordsTime_call method_call = new navigateKeysRecordsTime_call( keys, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysRecordsTime_call(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeysRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysRecordsTime_args args = new navigateKeysRecordsTime_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeysRecordsTime(); } } public void navigateKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysRecordsTimestr_call method_call = new navigateKeysRecordsTimestr_call( keys, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysRecordsTimestr_call(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeysRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysRecordsTimestr_args args = new navigateKeysRecordsTimestr_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeysRecordsTimestr(); } } public void navigateKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyCcl_call method_call = new navigateKeyCcl_call(key, ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyCcl_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyCcl_call(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeyCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyCcl_args args = new navigateKeyCcl_args(); args.setKey(key); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeyCcl(); } } public void navigateKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyCclTime_call method_call = new navigateKeyCclTime_call( key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyCclTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyCclTime_call(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeyCclTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyCclTime_args args = new navigateKeyCclTime_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeyCclTime(); } } public void navigateKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyCclTimestr_call method_call = new navigateKeyCclTimestr_call( key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyCclTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyCclTimestr_call(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeyCclTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyCclTimestr_args args = new navigateKeyCclTimestr_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeyCclTimestr(); } } public void navigateKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysCcl_call method_call = new navigateKeysCcl_call(keys, ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysCcl_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private String ccl; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysCcl_call(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeysCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysCcl_args args = new navigateKeysCcl_args(); args.setKeys(keys); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeysCcl(); } } public void navigateKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysCclTime_call method_call = new navigateKeysCclTime_call( keys, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysCclTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private String ccl; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysCclTime_call(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeysCclTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysCclTime_args args = new navigateKeysCclTime_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeysCclTime(); } } public void navigateKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysCclTimestr_call method_call = new navigateKeysCclTimestr_call( keys, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysCclTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private String ccl; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysCclTimestr_call(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeysCclTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysCclTimestr_args args = new navigateKeysCclTimestr_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeysCclTimestr(); } } public void navigateKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyCriteria_call method_call = new navigateKeyCriteria_call( key, criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyCriteria_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyCriteria_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeyCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyCriteria_args args = new navigateKeyCriteria_args(); args.setKey(key); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeyCriteria(); } } public void navigateKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyCriteriaTime_call method_call = new navigateKeyCriteriaTime_call( key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyCriteriaTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyCriteriaTime_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeyCriteriaTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyCriteriaTime_args args = new navigateKeyCriteriaTime_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeyCriteriaTime(); } } public void navigateKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyCriteriaTimestr_call method_call = new navigateKeyCriteriaTimestr_call( key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyCriteriaTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyCriteriaTimestr_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeyCriteriaTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyCriteriaTimestr_args args = new navigateKeyCriteriaTimestr_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeyCriteriaTimestr(); } } public void navigateKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysCriteria_call method_call = new navigateKeysCriteria_call( keys, criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysCriteria_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private com.cinchapi.concourse.thrift.TCriteria criteria; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysCriteria_call(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeysCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysCriteria_args args = new navigateKeysCriteria_args(); args.setKeys(keys); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeysCriteria(); } } public void navigateKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysCriteriaTime_call method_call = new navigateKeysCriteriaTime_call( keys, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysCriteriaTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private com.cinchapi.concourse.thrift.TCriteria criteria; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysCriteriaTime_call(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeysCriteriaTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysCriteriaTime_args args = new navigateKeysCriteriaTime_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeysCriteriaTime(); } } public void navigateKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysCriteriaTimestr_call method_call = new navigateKeysCriteriaTimestr_call( keys, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysCriteriaTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private com.cinchapi.concourse.thrift.TCriteria criteria; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysCriteriaTimestr_call(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "navigateKeysCriteriaTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysCriteriaTimestr_args args = new navigateKeysCriteriaTimestr_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_navigateKeysCriteriaTimestr(); } } public void getServerEnvironment( com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getServerEnvironment_call method_call = new getServerEnvironment_call( creds, token, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getServerEnvironment_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken token; private String environment; public getServerEnvironment_call( com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.creds = creds; this.token = token; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "getServerEnvironment", org.apache.thrift.protocol.TMessageType.CALL, 0)); getServerEnvironment_args args = new getServerEnvironment_args(); args.setCreds(creds); args.setToken(token); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public String getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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, com.cinchapi.concourse.thrift.PermissionException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport 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 void invokeManagement(String method, List params, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); invokeManagement_call method_call = new invokeManagement_call( method, params, creds, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class invokeManagement_call extends org.apache.thrift.async.TAsyncMethodCall { private String method; private List params; private com.cinchapi.concourse.thrift.AccessToken creds; public invokeManagement_call(String method, List params, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.method = method; this.params = params; this.creds = creds; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage( "invokeManagement", org.apache.thrift.protocol.TMessageType.CALL, 0)); invokeManagement_args args = new invokeManagement_args(); args.setMethod(method); args.setParams(params); args.setCreds(creds); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.ComplexTObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.ManagementException, org.apache.thrift.TException { if(getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException( "Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport( getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client .getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_invokeManagement(); } } } public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { private static final Logger LOGGER = LoggerFactory .getLogger(Processor.class.getName()); public Processor(I iface) { super(iface, getProcessMap( new LinkedHashMap>())); } protected Processor(I iface, Map> processMap) { super(iface, getProcessMap(processMap)); } private static Map> getProcessMap( Map> processMap) { processMap.put("abort", new abort()); processMap.put("addKeyValue", new addKeyValue()); processMap.put("addKeyValueRecord", new addKeyValueRecord()); processMap.put("addKeyValueRecords", new addKeyValueRecords()); processMap.put("auditRecord", new auditRecord()); processMap.put("auditRecordStart", new auditRecordStart()); processMap.put("auditRecordStartstr", new auditRecordStartstr()); processMap.put("auditRecordStartEnd", new auditRecordStartEnd()); processMap.put("auditRecordStartstrEndstr", new auditRecordStartstrEndstr()); processMap.put("auditKeyRecord", new auditKeyRecord()); processMap.put("auditKeyRecordStart", new auditKeyRecordStart()); processMap.put("auditKeyRecordStartstr", new auditKeyRecordStartstr()); processMap.put("auditKeyRecordStartEnd", new auditKeyRecordStartEnd()); processMap.put("auditKeyRecordStartstrEndstr", new auditKeyRecordStartstrEndstr()); processMap.put("browseKey", new browseKey()); processMap.put("browseKeys", new browseKeys()); processMap.put("browseKeyTime", new browseKeyTime()); processMap.put("browseKeyTimestr", new browseKeyTimestr()); processMap.put("browseKeysTime", new browseKeysTime()); processMap.put("browseKeysTimestr", new browseKeysTimestr()); processMap.put("chronologizeKeyRecord", new chronologizeKeyRecord()); processMap.put("chronologizeKeyRecordStart", new chronologizeKeyRecordStart()); processMap.put("chronologizeKeyRecordStartstr", new chronologizeKeyRecordStartstr()); processMap.put("chronologizeKeyRecordStartEnd", new chronologizeKeyRecordStartEnd()); processMap.put("chronologizeKeyRecordStartstrEndstr", new chronologizeKeyRecordStartstrEndstr()); processMap.put("clearRecord", new clearRecord()); processMap.put("clearRecords", new clearRecords()); processMap.put("clearKeyRecord", new clearKeyRecord()); processMap.put("clearKeysRecord", new clearKeysRecord()); processMap.put("clearKeyRecords", new clearKeyRecords()); processMap.put("clearKeysRecords", new clearKeysRecords()); processMap.put("commit", new commit()); processMap.put("describe", new describe()); processMap.put("describeTime", new describeTime()); processMap.put("describeTimestr", new describeTimestr()); processMap.put("describeRecord", new describeRecord()); processMap.put("describeRecordTime", new describeRecordTime()); processMap.put("describeRecordTimestr", new describeRecordTimestr()); processMap.put("describeRecords", new describeRecords()); processMap.put("describeRecordsTime", new describeRecordsTime()); processMap.put("describeRecordsTimestr", new describeRecordsTimestr()); processMap.put("diffRecordStart", new diffRecordStart()); processMap.put("diffRecordStartstr", new diffRecordStartstr()); processMap.put("diffRecordStartEnd", new diffRecordStartEnd()); processMap.put("diffRecordStartstrEndstr", new diffRecordStartstrEndstr()); processMap.put("diffKeyRecordStart", new diffKeyRecordStart()); processMap.put("diffKeyRecordStartstr", new diffKeyRecordStartstr()); processMap.put("diffKeyRecordStartEnd", new diffKeyRecordStartEnd()); processMap.put("diffKeyRecordStartstrEndstr", new diffKeyRecordStartstrEndstr()); processMap.put("diffKeyStart", new diffKeyStart()); processMap.put("diffKeyStartstr", new diffKeyStartstr()); processMap.put("diffKeyStartEnd", new diffKeyStartEnd()); processMap.put("diffKeyStartstrEndstr", new diffKeyStartstrEndstr()); processMap.put("invokePlugin", new invokePlugin()); processMap.put("login", new login()); processMap.put("logout", new logout()); processMap.put("stage", new stage()); processMap.put("insertJson", new insertJson()); processMap.put("insertJsonRecord", new insertJsonRecord()); processMap.put("insertJsonRecords", new insertJsonRecords()); processMap.put("removeKeyValueRecord", new removeKeyValueRecord()); processMap.put("removeKeyValueRecords", new removeKeyValueRecords()); processMap.put("setKeyValueRecord", new setKeyValueRecord()); processMap.put("setKeyValue", new setKeyValue()); processMap.put("setKeyValueRecords", new setKeyValueRecords()); processMap.put("reconcileKeyRecordValues", new reconcileKeyRecordValues()); processMap.put("inventory", new inventory()); processMap.put("selectRecord", new selectRecord()); processMap.put("selectRecords", new selectRecords()); processMap.put("selectRecordTime", new selectRecordTime()); processMap.put("selectRecordTimestr", new selectRecordTimestr()); processMap.put("selectRecordsTime", new selectRecordsTime()); processMap.put("selectRecordsTimestr", new selectRecordsTimestr()); processMap.put("selectKeyRecord", new selectKeyRecord()); processMap.put("selectKeyRecordTime", new selectKeyRecordTime()); processMap.put("selectKeyRecordTimestr", new selectKeyRecordTimestr()); processMap.put("selectKeysRecord", new selectKeysRecord()); processMap.put("selectKeysRecordTime", new selectKeysRecordTime()); processMap.put("selectKeysRecordTimestr", new selectKeysRecordTimestr()); processMap.put("selectKeysRecords", new selectKeysRecords()); processMap.put("selectKeyRecords", new selectKeyRecords()); processMap.put("selectKeyRecordsTime", new selectKeyRecordsTime()); processMap.put("selectKeyRecordsTimestr", new selectKeyRecordsTimestr()); processMap.put("selectKeysRecordsTime", new selectKeysRecordsTime()); processMap.put("selectKeysRecordsTimestr", new selectKeysRecordsTimestr()); processMap.put("selectCriteria", new selectCriteria()); processMap.put("selectCcl", new selectCcl()); processMap.put("selectCriteriaTime", new selectCriteriaTime()); processMap.put("selectCriteriaTimestr", new selectCriteriaTimestr()); processMap.put("selectCclTime", new selectCclTime()); processMap.put("selectCclTimestr", new selectCclTimestr()); processMap.put("selectKeyCriteria", new selectKeyCriteria()); processMap.put("selectKeyCcl", new selectKeyCcl()); processMap.put("selectKeyCriteriaTime", new selectKeyCriteriaTime()); processMap.put("selectKeyCriteriaTimestr", new selectKeyCriteriaTimestr()); processMap.put("selectKeyCclTime", new selectKeyCclTime()); processMap.put("selectKeyCclTimestr", new selectKeyCclTimestr()); processMap.put("selectKeysCriteria", new selectKeysCriteria()); processMap.put("selectKeysCcl", new selectKeysCcl()); processMap.put("selectKeysCriteriaTime", new selectKeysCriteriaTime()); processMap.put("selectKeysCriteriaTimestr", new selectKeysCriteriaTimestr()); processMap.put("selectKeysCclTime", new selectKeysCclTime()); processMap.put("selectKeysCclTimestr", new selectKeysCclTimestr()); processMap.put("getKeyRecord", new getKeyRecord()); processMap.put("getKeyRecordTime", new getKeyRecordTime()); processMap.put("getKeyRecordTimestr", new getKeyRecordTimestr()); processMap.put("getKeysRecord", new getKeysRecord()); processMap.put("getKeysRecordTime", new getKeysRecordTime()); processMap.put("getKeysRecordTimestr", new getKeysRecordTimestr()); processMap.put("getKeysRecords", new getKeysRecords()); processMap.put("getKeyRecords", new getKeyRecords()); processMap.put("getKeyRecordsTime", new getKeyRecordsTime()); processMap.put("getKeyRecordsTimestr", new getKeyRecordsTimestr()); processMap.put("getKeysRecordsTime", new getKeysRecordsTime()); processMap.put("getKeysRecordsTimestr", new getKeysRecordsTimestr()); processMap.put("getKeyCriteria", new getKeyCriteria()); processMap.put("getCriteria", new getCriteria()); processMap.put("getCcl", new getCcl()); processMap.put("getCriteriaTime", new getCriteriaTime()); processMap.put("getCriteriaTimestr", new getCriteriaTimestr()); processMap.put("getCclTime", new getCclTime()); processMap.put("getCclTimestr", new getCclTimestr()); processMap.put("getKeyCcl", new getKeyCcl()); processMap.put("getKeyCriteriaTime", new getKeyCriteriaTime()); processMap.put("getKeyCriteriaTimestr", new getKeyCriteriaTimestr()); processMap.put("getKeyCclTime", new getKeyCclTime()); processMap.put("getKeyCclTimestr", new getKeyCclTimestr()); processMap.put("getKeysCriteria", new getKeysCriteria()); processMap.put("getKeysCcl", new getKeysCcl()); processMap.put("getKeysCriteriaTime", new getKeysCriteriaTime()); processMap.put("getKeysCriteriaTimestr", new getKeysCriteriaTimestr()); processMap.put("getKeysCclTime", new getKeysCclTime()); processMap.put("getKeysCclTimestr", new getKeysCclTimestr()); processMap.put("verifyKeyValueRecord", new verifyKeyValueRecord()); processMap.put("verifyKeyValueRecordTime", new verifyKeyValueRecordTime()); processMap.put("verifyKeyValueRecordTimestr", new verifyKeyValueRecordTimestr()); processMap.put("jsonifyRecords", new jsonifyRecords()); processMap.put("jsonifyRecordsTime", new jsonifyRecordsTime()); processMap.put("jsonifyRecordsTimestr", new jsonifyRecordsTimestr()); processMap.put("findCriteria", new findCriteria()); processMap.put("findCcl", new findCcl()); processMap.put("findKeyOperatorValues", new findKeyOperatorValues()); processMap.put("findKeyOperatorValuesTime", new findKeyOperatorValuesTime()); processMap.put("findKeyOperatorValuesTimestr", new findKeyOperatorValuesTimestr()); processMap.put("findKeyOperatorstrValues", new findKeyOperatorstrValues()); processMap.put("findKeyOperatorstrValuesTime", new findKeyOperatorstrValuesTime()); processMap.put("findKeyOperatorstrValuesTimestr", new findKeyOperatorstrValuesTimestr()); processMap.put("search", new search()); processMap.put("revertKeysRecordsTime", new revertKeysRecordsTime()); processMap.put("revertKeysRecordsTimestr", new revertKeysRecordsTimestr()); processMap.put("revertKeysRecordTime", new revertKeysRecordTime()); processMap.put("revertKeysRecordTimestr", new revertKeysRecordTimestr()); processMap.put("revertKeyRecordsTime", new revertKeyRecordsTime()); processMap.put("revertKeyRecordsTimestr", new revertKeyRecordsTimestr()); processMap.put("revertKeyRecordTime", new revertKeyRecordTime()); processMap.put("revertKeyRecordTimestr", new revertKeyRecordTimestr()); processMap.put("pingRecords", new pingRecords()); processMap.put("pingRecord", new pingRecord()); processMap.put("verifyAndSwap", new verifyAndSwap()); processMap.put("verifyOrSet", new verifyOrSet()); processMap.put("findOrAddKeyValue", new findOrAddKeyValue()); processMap.put("findOrInsertCriteriaJson", new findOrInsertCriteriaJson()); processMap.put("findOrInsertCclJson", new findOrInsertCclJson()); processMap.put("sumKeyRecord", new sumKeyRecord()); processMap.put("sumKeyRecordTime", new sumKeyRecordTime()); processMap.put("sumKeyRecordTimestr", new sumKeyRecordTimestr()); processMap.put("sumKeyRecords", new sumKeyRecords()); processMap.put("sumKeyRecordsTime", new sumKeyRecordsTime()); processMap.put("sumKeyRecordsTimestr", new sumKeyRecordsTimestr()); processMap.put("sumKey", new sumKey()); processMap.put("sumKeyTime", new sumKeyTime()); processMap.put("sumKeyTimestr", new sumKeyTimestr()); processMap.put("sumKeyCriteria", new sumKeyCriteria()); processMap.put("sumKeyCriteriaTime", new sumKeyCriteriaTime()); processMap.put("sumKeyCriteriaTimestr", new sumKeyCriteriaTimestr()); processMap.put("sumKeyCcl", new sumKeyCcl()); processMap.put("sumKeyCclTime", new sumKeyCclTime()); processMap.put("sumKeyCclTimestr", new sumKeyCclTimestr()); processMap.put("averageKeyRecord", new averageKeyRecord()); processMap.put("averageKeyRecordTime", new averageKeyRecordTime()); processMap.put("averageKeyRecordTimestr", new averageKeyRecordTimestr()); processMap.put("averageKeyRecords", new averageKeyRecords()); processMap.put("averageKeyRecordsTime", new averageKeyRecordsTime()); processMap.put("averageKeyRecordsTimestr", new averageKeyRecordsTimestr()); processMap.put("averageKey", new averageKey()); processMap.put("averageKeyTime", new averageKeyTime()); processMap.put("averageKeyTimestr", new averageKeyTimestr()); processMap.put("averageKeyCriteria", new averageKeyCriteria()); processMap.put("averageKeyCriteriaTime", new averageKeyCriteriaTime()); processMap.put("averageKeyCriteriaTimestr", new averageKeyCriteriaTimestr()); processMap.put("averageKeyCcl", new averageKeyCcl()); processMap.put("averageKeyCclTime", new averageKeyCclTime()); processMap.put("averageKeyCclTimestr", new averageKeyCclTimestr()); processMap.put("countKeyRecord", new countKeyRecord()); processMap.put("countKeyRecordTime", new countKeyRecordTime()); processMap.put("countKeyRecordTimestr", new countKeyRecordTimestr()); processMap.put("countKeyRecords", new countKeyRecords()); processMap.put("countKeyRecordsTime", new countKeyRecordsTime()); processMap.put("countKeyRecordsTimestr", new countKeyRecordsTimestr()); processMap.put("countKey", new countKey()); processMap.put("countKeyTime", new countKeyTime()); processMap.put("countKeyTimestr", new countKeyTimestr()); processMap.put("countKeyCriteria", new countKeyCriteria()); processMap.put("countKeyCriteriaTime", new countKeyCriteriaTime()); processMap.put("countKeyCriteriaTimestr", new countKeyCriteriaTimestr()); processMap.put("countKeyCcl", new countKeyCcl()); processMap.put("countKeyCclTime", new countKeyCclTime()); processMap.put("countKeyCclTimestr", new countKeyCclTimestr()); processMap.put("maxKeyRecord", new maxKeyRecord()); processMap.put("maxKeyRecordTime", new maxKeyRecordTime()); processMap.put("maxKeyRecordTimestr", new maxKeyRecordTimestr()); processMap.put("maxKeyRecords", new maxKeyRecords()); processMap.put("maxKeyRecordsTime", new maxKeyRecordsTime()); processMap.put("maxKeyRecordsTimestr", new maxKeyRecordsTimestr()); processMap.put("maxKeyCriteria", new maxKeyCriteria()); processMap.put("maxKeyCriteriaTime", new maxKeyCriteriaTime()); processMap.put("maxKeyCriteriaTimestr", new maxKeyCriteriaTimestr()); processMap.put("maxKeyCcl", new maxKeyCcl()); processMap.put("maxKeyCclTime", new maxKeyCclTime()); processMap.put("maxKeyCclTimestr", new maxKeyCclTimestr()); processMap.put("maxKey", new maxKey()); processMap.put("maxKeyTime", new maxKeyTime()); processMap.put("maxKeyTimestr", new maxKeyTimestr()); processMap.put("minKeyRecord", new minKeyRecord()); processMap.put("minKeyRecordTime", new minKeyRecordTime()); processMap.put("minKeyRecordTimestr", new minKeyRecordTimestr()); processMap.put("minKey", new minKey()); processMap.put("minKeyRecordsTime", new minKeyRecordsTime()); processMap.put("minKeyRecordsTimestr", new minKeyRecordsTimestr()); processMap.put("minKeyCriteria", new minKeyCriteria()); processMap.put("minKeyCriteriaTime", new minKeyCriteriaTime()); processMap.put("minKeyCriteriaTimestr", new minKeyCriteriaTimestr()); processMap.put("minKeyCcl", new minKeyCcl()); processMap.put("minKeyCclTime", new minKeyCclTime()); processMap.put("minKeyCclTimestr", new minKeyCclTimestr()); processMap.put("minKeyTime", new minKeyTime()); processMap.put("minKeyTimestr", new minKeyTimestr()); processMap.put("minKeyRecords", new minKeyRecords()); processMap.put("navigateKeyRecord", new navigateKeyRecord()); processMap.put("navigateKeyRecordTime", new navigateKeyRecordTime()); processMap.put("navigateKeyRecordTimestr", new navigateKeyRecordTimestr()); processMap.put("navigateKeysRecord", new navigateKeysRecord()); processMap.put("navigateKeysRecordTime", new navigateKeysRecordTime()); processMap.put("navigateKeysRecordTimestr", new navigateKeysRecordTimestr()); processMap.put("navigateKeysRecords", new navigateKeysRecords()); processMap.put("navigateKeyRecords", new navigateKeyRecords()); processMap.put("navigateKeyRecordsTime", new navigateKeyRecordsTime()); processMap.put("navigateKeyRecordsTimestr", new navigateKeyRecordsTimestr()); processMap.put("navigateKeysRecordsTime", new navigateKeysRecordsTime()); processMap.put("navigateKeysRecordsTimestr", new navigateKeysRecordsTimestr()); processMap.put("navigateKeyCcl", new navigateKeyCcl()); processMap.put("navigateKeyCclTime", new navigateKeyCclTime()); processMap.put("navigateKeyCclTimestr", new navigateKeyCclTimestr()); processMap.put("navigateKeysCcl", new navigateKeysCcl()); processMap.put("navigateKeysCclTime", new navigateKeysCclTime()); processMap.put("navigateKeysCclTimestr", new navigateKeysCclTimestr()); processMap.put("navigateKeyCriteria", new navigateKeyCriteria()); processMap.put("navigateKeyCriteriaTime", new navigateKeyCriteriaTime()); processMap.put("navigateKeyCriteriaTimestr", new navigateKeyCriteriaTimestr()); processMap.put("navigateKeysCriteria", new navigateKeysCriteria()); processMap.put("navigateKeysCriteriaTime", new navigateKeysCriteriaTime()); processMap.put("navigateKeysCriteriaTimestr", new navigateKeysCriteriaTimestr()); processMap.put("getServerEnvironment", new getServerEnvironment()); processMap.put("getServerVersion", new getServerVersion()); processMap.put("time", new time()); processMap.put("timePhrase", new timePhrase()); processMap.put("invokeManagement", new invokeManagement()); return processMap; } public static class abort extends org.apache.thrift.ProcessFunction { public abort() { super("abort"); } public abort_args getEmptyArgsInstance() { return new abort_args(); } protected boolean isOneway() { return false; } public abort_result getResult(I iface, abort_args args) throws org.apache.thrift.TException { abort_result result = new abort_result(); try { iface.abort(args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } return result; } } public static class addKeyValue extends org.apache.thrift.ProcessFunction { public addKeyValue() { super("addKeyValue"); } public addKeyValue_args getEmptyArgsInstance() { return new addKeyValue_args(); } protected boolean isOneway() { return false; } public addKeyValue_result getResult(I iface, addKeyValue_args args) throws org.apache.thrift.TException { addKeyValue_result result = new addKeyValue_result(); try { result.success = iface.addKeyValue(args.key, args.value, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class addKeyValueRecord extends org.apache.thrift.ProcessFunction { public addKeyValueRecord() { super("addKeyValueRecord"); } public addKeyValueRecord_args getEmptyArgsInstance() { return new addKeyValueRecord_args(); } protected boolean isOneway() { return false; } public addKeyValueRecord_result getResult(I iface, addKeyValueRecord_args args) throws org.apache.thrift.TException { addKeyValueRecord_result result = new addKeyValueRecord_result(); try { result.success = iface.addKeyValueRecord(args.key, args.value, args.record, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class addKeyValueRecords extends org.apache.thrift.ProcessFunction { public addKeyValueRecords() { super("addKeyValueRecords"); } public addKeyValueRecords_args getEmptyArgsInstance() { return new addKeyValueRecords_args(); } protected boolean isOneway() { return false; } public addKeyValueRecords_result getResult(I iface, addKeyValueRecords_args args) throws org.apache.thrift.TException { addKeyValueRecords_result result = new addKeyValueRecords_result(); try { result.success = iface.addKeyValueRecords(args.key, args.value, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class auditRecord extends org.apache.thrift.ProcessFunction { public auditRecord() { super("auditRecord"); } public auditRecord_args getEmptyArgsInstance() { return new auditRecord_args(); } protected boolean isOneway() { return false; } public auditRecord_result getResult(I iface, auditRecord_args args) throws org.apache.thrift.TException { auditRecord_result result = new auditRecord_result(); try { result.success = iface.auditRecord(args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class auditRecordStart extends org.apache.thrift.ProcessFunction { public auditRecordStart() { super("auditRecordStart"); } public auditRecordStart_args getEmptyArgsInstance() { return new auditRecordStart_args(); } protected boolean isOneway() { return false; } public auditRecordStart_result getResult(I iface, auditRecordStart_args args) throws org.apache.thrift.TException { auditRecordStart_result result = new auditRecordStart_result(); try { result.success = iface.auditRecordStart(args.record, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class auditRecordStartstr extends org.apache.thrift.ProcessFunction { public auditRecordStartstr() { super("auditRecordStartstr"); } public auditRecordStartstr_args getEmptyArgsInstance() { return new auditRecordStartstr_args(); } protected boolean isOneway() { return false; } public auditRecordStartstr_result getResult(I iface, auditRecordStartstr_args args) throws org.apache.thrift.TException { auditRecordStartstr_result result = new auditRecordStartstr_result(); try { result.success = iface.auditRecordStartstr(args.record, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class auditRecordStartEnd extends org.apache.thrift.ProcessFunction { public auditRecordStartEnd() { super("auditRecordStartEnd"); } public auditRecordStartEnd_args getEmptyArgsInstance() { return new auditRecordStartEnd_args(); } protected boolean isOneway() { return false; } public auditRecordStartEnd_result getResult(I iface, auditRecordStartEnd_args args) throws org.apache.thrift.TException { auditRecordStartEnd_result result = new auditRecordStartEnd_result(); try { result.success = iface.auditRecordStartEnd(args.record, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class auditRecordStartstrEndstr extends org.apache.thrift.ProcessFunction { public auditRecordStartstrEndstr() { super("auditRecordStartstrEndstr"); } public auditRecordStartstrEndstr_args getEmptyArgsInstance() { return new auditRecordStartstrEndstr_args(); } protected boolean isOneway() { return false; } public auditRecordStartstrEndstr_result getResult(I iface, auditRecordStartstrEndstr_args args) throws org.apache.thrift.TException { auditRecordStartstrEndstr_result result = new auditRecordStartstrEndstr_result(); try { result.success = iface.auditRecordStartstrEndstr( args.record, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class auditKeyRecord extends org.apache.thrift.ProcessFunction { public auditKeyRecord() { super("auditKeyRecord"); } public auditKeyRecord_args getEmptyArgsInstance() { return new auditKeyRecord_args(); } protected boolean isOneway() { return false; } public auditKeyRecord_result getResult(I iface, auditKeyRecord_args args) throws org.apache.thrift.TException { auditKeyRecord_result result = new auditKeyRecord_result(); try { result.success = iface.auditKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class auditKeyRecordStart extends org.apache.thrift.ProcessFunction { public auditKeyRecordStart() { super("auditKeyRecordStart"); } public auditKeyRecordStart_args getEmptyArgsInstance() { return new auditKeyRecordStart_args(); } protected boolean isOneway() { return false; } public auditKeyRecordStart_result getResult(I iface, auditKeyRecordStart_args args) throws org.apache.thrift.TException { auditKeyRecordStart_result result = new auditKeyRecordStart_result(); try { result.success = iface.auditKeyRecordStart(args.key, args.record, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class auditKeyRecordStartstr extends org.apache.thrift.ProcessFunction { public auditKeyRecordStartstr() { super("auditKeyRecordStartstr"); } public auditKeyRecordStartstr_args getEmptyArgsInstance() { return new auditKeyRecordStartstr_args(); } protected boolean isOneway() { return false; } public auditKeyRecordStartstr_result getResult(I iface, auditKeyRecordStartstr_args args) throws org.apache.thrift.TException { auditKeyRecordStartstr_result result = new auditKeyRecordStartstr_result(); try { result.success = iface.auditKeyRecordStartstr(args.key, args.record, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class auditKeyRecordStartEnd extends org.apache.thrift.ProcessFunction { public auditKeyRecordStartEnd() { super("auditKeyRecordStartEnd"); } public auditKeyRecordStartEnd_args getEmptyArgsInstance() { return new auditKeyRecordStartEnd_args(); } protected boolean isOneway() { return false; } public auditKeyRecordStartEnd_result getResult(I iface, auditKeyRecordStartEnd_args args) throws org.apache.thrift.TException { auditKeyRecordStartEnd_result result = new auditKeyRecordStartEnd_result(); try { result.success = iface.auditKeyRecordStartEnd(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class auditKeyRecordStartstrEndstr extends org.apache.thrift.ProcessFunction { public auditKeyRecordStartstrEndstr() { super("auditKeyRecordStartstrEndstr"); } public auditKeyRecordStartstrEndstr_args getEmptyArgsInstance() { return new auditKeyRecordStartstrEndstr_args(); } protected boolean isOneway() { return false; } public auditKeyRecordStartstrEndstr_result getResult(I iface, auditKeyRecordStartstrEndstr_args args) throws org.apache.thrift.TException { auditKeyRecordStartstrEndstr_result result = new auditKeyRecordStartstrEndstr_result(); try { result.success = iface.auditKeyRecordStartstrEndstr( args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class browseKey extends org.apache.thrift.ProcessFunction { public browseKey() { super("browseKey"); } public browseKey_args getEmptyArgsInstance() { return new browseKey_args(); } protected boolean isOneway() { return false; } public browseKey_result getResult(I iface, browseKey_args args) throws org.apache.thrift.TException { browseKey_result result = new browseKey_result(); try { result.success = iface.browseKey(args.key, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class browseKeys extends org.apache.thrift.ProcessFunction { public browseKeys() { super("browseKeys"); } public browseKeys_args getEmptyArgsInstance() { return new browseKeys_args(); } protected boolean isOneway() { return false; } public browseKeys_result getResult(I iface, browseKeys_args args) throws org.apache.thrift.TException { browseKeys_result result = new browseKeys_result(); try { result.success = iface.browseKeys(args.keys, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class browseKeyTime extends org.apache.thrift.ProcessFunction { public browseKeyTime() { super("browseKeyTime"); } public browseKeyTime_args getEmptyArgsInstance() { return new browseKeyTime_args(); } protected boolean isOneway() { return false; } public browseKeyTime_result getResult(I iface, browseKeyTime_args args) throws org.apache.thrift.TException { browseKeyTime_result result = new browseKeyTime_result(); try { result.success = iface.browseKeyTime(args.key, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class browseKeyTimestr extends org.apache.thrift.ProcessFunction { public browseKeyTimestr() { super("browseKeyTimestr"); } public browseKeyTimestr_args getEmptyArgsInstance() { return new browseKeyTimestr_args(); } protected boolean isOneway() { return false; } public browseKeyTimestr_result getResult(I iface, browseKeyTimestr_args args) throws org.apache.thrift.TException { browseKeyTimestr_result result = new browseKeyTimestr_result(); try { result.success = iface.browseKeyTimestr(args.key, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class browseKeysTime extends org.apache.thrift.ProcessFunction { public browseKeysTime() { super("browseKeysTime"); } public browseKeysTime_args getEmptyArgsInstance() { return new browseKeysTime_args(); } protected boolean isOneway() { return false; } public browseKeysTime_result getResult(I iface, browseKeysTime_args args) throws org.apache.thrift.TException { browseKeysTime_result result = new browseKeysTime_result(); try { result.success = iface.browseKeysTime(args.keys, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class browseKeysTimestr extends org.apache.thrift.ProcessFunction { public browseKeysTimestr() { super("browseKeysTimestr"); } public browseKeysTimestr_args getEmptyArgsInstance() { return new browseKeysTimestr_args(); } protected boolean isOneway() { return false; } public browseKeysTimestr_result getResult(I iface, browseKeysTimestr_args args) throws org.apache.thrift.TException { browseKeysTimestr_result result = new browseKeysTimestr_result(); try { result.success = iface.browseKeysTimestr(args.keys, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class chronologizeKeyRecord extends org.apache.thrift.ProcessFunction { public chronologizeKeyRecord() { super("chronologizeKeyRecord"); } public chronologizeKeyRecord_args getEmptyArgsInstance() { return new chronologizeKeyRecord_args(); } protected boolean isOneway() { return false; } public chronologizeKeyRecord_result getResult(I iface, chronologizeKeyRecord_args args) throws org.apache.thrift.TException { chronologizeKeyRecord_result result = new chronologizeKeyRecord_result(); try { result.success = iface.chronologizeKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class chronologizeKeyRecordStart extends org.apache.thrift.ProcessFunction { public chronologizeKeyRecordStart() { super("chronologizeKeyRecordStart"); } public chronologizeKeyRecordStart_args getEmptyArgsInstance() { return new chronologizeKeyRecordStart_args(); } protected boolean isOneway() { return false; } public chronologizeKeyRecordStart_result getResult(I iface, chronologizeKeyRecordStart_args args) throws org.apache.thrift.TException { chronologizeKeyRecordStart_result result = new chronologizeKeyRecordStart_result(); try { result.success = iface.chronologizeKeyRecordStart(args.key, args.record, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class chronologizeKeyRecordStartstr extends org.apache.thrift.ProcessFunction { public chronologizeKeyRecordStartstr() { super("chronologizeKeyRecordStartstr"); } public chronologizeKeyRecordStartstr_args getEmptyArgsInstance() { return new chronologizeKeyRecordStartstr_args(); } protected boolean isOneway() { return false; } public chronologizeKeyRecordStartstr_result getResult(I iface, chronologizeKeyRecordStartstr_args args) throws org.apache.thrift.TException { chronologizeKeyRecordStartstr_result result = new chronologizeKeyRecordStartstr_result(); try { result.success = iface.chronologizeKeyRecordStartstr( args.key, args.record, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class chronologizeKeyRecordStartEnd extends org.apache.thrift.ProcessFunction { public chronologizeKeyRecordStartEnd() { super("chronologizeKeyRecordStartEnd"); } public chronologizeKeyRecordStartEnd_args getEmptyArgsInstance() { return new chronologizeKeyRecordStartEnd_args(); } protected boolean isOneway() { return false; } public chronologizeKeyRecordStartEnd_result getResult(I iface, chronologizeKeyRecordStartEnd_args args) throws org.apache.thrift.TException { chronologizeKeyRecordStartEnd_result result = new chronologizeKeyRecordStartEnd_result(); try { result.success = iface.chronologizeKeyRecordStartEnd( args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class chronologizeKeyRecordStartstrEndstr extends org.apache.thrift.ProcessFunction { public chronologizeKeyRecordStartstrEndstr() { super("chronologizeKeyRecordStartstrEndstr"); } public chronologizeKeyRecordStartstrEndstr_args getEmptyArgsInstance() { return new chronologizeKeyRecordStartstrEndstr_args(); } protected boolean isOneway() { return false; } public chronologizeKeyRecordStartstrEndstr_result getResult(I iface, chronologizeKeyRecordStartstrEndstr_args args) throws org.apache.thrift.TException { chronologizeKeyRecordStartstrEndstr_result result = new chronologizeKeyRecordStartstrEndstr_result(); try { result.success = iface.chronologizeKeyRecordStartstrEndstr( args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class clearRecord extends org.apache.thrift.ProcessFunction { public clearRecord() { super("clearRecord"); } public clearRecord_args getEmptyArgsInstance() { return new clearRecord_args(); } protected boolean isOneway() { return false; } public clearRecord_result getResult(I iface, clearRecord_args args) throws org.apache.thrift.TException { clearRecord_result result = new clearRecord_result(); try { iface.clearRecord(args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class clearRecords extends org.apache.thrift.ProcessFunction { public clearRecords() { super("clearRecords"); } public clearRecords_args getEmptyArgsInstance() { return new clearRecords_args(); } protected boolean isOneway() { return false; } public clearRecords_result getResult(I iface, clearRecords_args args) throws org.apache.thrift.TException { clearRecords_result result = new clearRecords_result(); try { iface.clearRecords(args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class clearKeyRecord extends org.apache.thrift.ProcessFunction { public clearKeyRecord() { super("clearKeyRecord"); } public clearKeyRecord_args getEmptyArgsInstance() { return new clearKeyRecord_args(); } protected boolean isOneway() { return false; } public clearKeyRecord_result getResult(I iface, clearKeyRecord_args args) throws org.apache.thrift.TException { clearKeyRecord_result result = new clearKeyRecord_result(); try { iface.clearKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class clearKeysRecord extends org.apache.thrift.ProcessFunction { public clearKeysRecord() { super("clearKeysRecord"); } public clearKeysRecord_args getEmptyArgsInstance() { return new clearKeysRecord_args(); } protected boolean isOneway() { return false; } public clearKeysRecord_result getResult(I iface, clearKeysRecord_args args) throws org.apache.thrift.TException { clearKeysRecord_result result = new clearKeysRecord_result(); try { iface.clearKeysRecord(args.keys, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class clearKeyRecords extends org.apache.thrift.ProcessFunction { public clearKeyRecords() { super("clearKeyRecords"); } public clearKeyRecords_args getEmptyArgsInstance() { return new clearKeyRecords_args(); } protected boolean isOneway() { return false; } public clearKeyRecords_result getResult(I iface, clearKeyRecords_args args) throws org.apache.thrift.TException { clearKeyRecords_result result = new clearKeyRecords_result(); try { iface.clearKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class clearKeysRecords extends org.apache.thrift.ProcessFunction { public clearKeysRecords() { super("clearKeysRecords"); } public clearKeysRecords_args getEmptyArgsInstance() { return new clearKeysRecords_args(); } protected boolean isOneway() { return false; } public clearKeysRecords_result getResult(I iface, clearKeysRecords_args args) throws org.apache.thrift.TException { clearKeysRecords_result result = new clearKeysRecords_result(); try { iface.clearKeysRecords(args.keys, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class commit extends org.apache.thrift.ProcessFunction { public commit() { super("commit"); } public commit_args getEmptyArgsInstance() { return new commit_args(); } protected boolean isOneway() { return false; } public commit_result getResult(I iface, commit_args args) throws org.apache.thrift.TException { commit_result result = new commit_result(); try { result.success = iface.commit(args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class describe extends org.apache.thrift.ProcessFunction { public describe() { super("describe"); } public describe_args getEmptyArgsInstance() { return new describe_args(); } protected boolean isOneway() { return false; } public describe_result getResult(I iface, describe_args args) throws org.apache.thrift.TException { describe_result result = new describe_result(); try { result.success = iface.describe(args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class describeTime extends org.apache.thrift.ProcessFunction { public describeTime() { super("describeTime"); } public describeTime_args getEmptyArgsInstance() { return new describeTime_args(); } protected boolean isOneway() { return false; } public describeTime_result getResult(I iface, describeTime_args args) throws org.apache.thrift.TException { describeTime_result result = new describeTime_result(); try { result.success = iface.describeTime(args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class describeTimestr extends org.apache.thrift.ProcessFunction { public describeTimestr() { super("describeTimestr"); } public describeTimestr_args getEmptyArgsInstance() { return new describeTimestr_args(); } protected boolean isOneway() { return false; } public describeTimestr_result getResult(I iface, describeTimestr_args args) throws org.apache.thrift.TException { describeTimestr_result result = new describeTimestr_result(); try { result.success = iface.describeTimestr(args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class describeRecord extends org.apache.thrift.ProcessFunction { public describeRecord() { super("describeRecord"); } public describeRecord_args getEmptyArgsInstance() { return new describeRecord_args(); } protected boolean isOneway() { return false; } public describeRecord_result getResult(I iface, describeRecord_args args) throws org.apache.thrift.TException { describeRecord_result result = new describeRecord_result(); try { result.success = iface.describeRecord(args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class describeRecordTime extends org.apache.thrift.ProcessFunction { public describeRecordTime() { super("describeRecordTime"); } public describeRecordTime_args getEmptyArgsInstance() { return new describeRecordTime_args(); } protected boolean isOneway() { return false; } public describeRecordTime_result getResult(I iface, describeRecordTime_args args) throws org.apache.thrift.TException { describeRecordTime_result result = new describeRecordTime_result(); try { result.success = iface.describeRecordTime(args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class describeRecordTimestr extends org.apache.thrift.ProcessFunction { public describeRecordTimestr() { super("describeRecordTimestr"); } public describeRecordTimestr_args getEmptyArgsInstance() { return new describeRecordTimestr_args(); } protected boolean isOneway() { return false; } public describeRecordTimestr_result getResult(I iface, describeRecordTimestr_args args) throws org.apache.thrift.TException { describeRecordTimestr_result result = new describeRecordTimestr_result(); try { result.success = iface.describeRecordTimestr(args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class describeRecords extends org.apache.thrift.ProcessFunction { public describeRecords() { super("describeRecords"); } public describeRecords_args getEmptyArgsInstance() { return new describeRecords_args(); } protected boolean isOneway() { return false; } public describeRecords_result getResult(I iface, describeRecords_args args) throws org.apache.thrift.TException { describeRecords_result result = new describeRecords_result(); try { result.success = iface.describeRecords(args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class describeRecordsTime extends org.apache.thrift.ProcessFunction { public describeRecordsTime() { super("describeRecordsTime"); } public describeRecordsTime_args getEmptyArgsInstance() { return new describeRecordsTime_args(); } protected boolean isOneway() { return false; } public describeRecordsTime_result getResult(I iface, describeRecordsTime_args args) throws org.apache.thrift.TException { describeRecordsTime_result result = new describeRecordsTime_result(); try { result.success = iface.describeRecordsTime(args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class describeRecordsTimestr extends org.apache.thrift.ProcessFunction { public describeRecordsTimestr() { super("describeRecordsTimestr"); } public describeRecordsTimestr_args getEmptyArgsInstance() { return new describeRecordsTimestr_args(); } protected boolean isOneway() { return false; } public describeRecordsTimestr_result getResult(I iface, describeRecordsTimestr_args args) throws org.apache.thrift.TException { describeRecordsTimestr_result result = new describeRecordsTimestr_result(); try { result.success = iface.describeRecordsTimestr(args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class diffRecordStart extends org.apache.thrift.ProcessFunction { public diffRecordStart() { super("diffRecordStart"); } public diffRecordStart_args getEmptyArgsInstance() { return new diffRecordStart_args(); } protected boolean isOneway() { return false; } public diffRecordStart_result getResult(I iface, diffRecordStart_args args) throws org.apache.thrift.TException { diffRecordStart_result result = new diffRecordStart_result(); try { result.success = iface.diffRecordStart(args.record, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class diffRecordStartstr extends org.apache.thrift.ProcessFunction { public diffRecordStartstr() { super("diffRecordStartstr"); } public diffRecordStartstr_args getEmptyArgsInstance() { return new diffRecordStartstr_args(); } protected boolean isOneway() { return false; } public diffRecordStartstr_result getResult(I iface, diffRecordStartstr_args args) throws org.apache.thrift.TException { diffRecordStartstr_result result = new diffRecordStartstr_result(); try { result.success = iface.diffRecordStartstr(args.record, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class diffRecordStartEnd extends org.apache.thrift.ProcessFunction { public diffRecordStartEnd() { super("diffRecordStartEnd"); } public diffRecordStartEnd_args getEmptyArgsInstance() { return new diffRecordStartEnd_args(); } protected boolean isOneway() { return false; } public diffRecordStartEnd_result getResult(I iface, diffRecordStartEnd_args args) throws org.apache.thrift.TException { diffRecordStartEnd_result result = new diffRecordStartEnd_result(); try { result.success = iface.diffRecordStartEnd(args.record, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class diffRecordStartstrEndstr extends org.apache.thrift.ProcessFunction { public diffRecordStartstrEndstr() { super("diffRecordStartstrEndstr"); } public diffRecordStartstrEndstr_args getEmptyArgsInstance() { return new diffRecordStartstrEndstr_args(); } protected boolean isOneway() { return false; } public diffRecordStartstrEndstr_result getResult(I iface, diffRecordStartstrEndstr_args args) throws org.apache.thrift.TException { diffRecordStartstrEndstr_result result = new diffRecordStartstrEndstr_result(); try { result.success = iface.diffRecordStartstrEndstr(args.record, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class diffKeyRecordStart extends org.apache.thrift.ProcessFunction { public diffKeyRecordStart() { super("diffKeyRecordStart"); } public diffKeyRecordStart_args getEmptyArgsInstance() { return new diffKeyRecordStart_args(); } protected boolean isOneway() { return false; } public diffKeyRecordStart_result getResult(I iface, diffKeyRecordStart_args args) throws org.apache.thrift.TException { diffKeyRecordStart_result result = new diffKeyRecordStart_result(); try { result.success = iface.diffKeyRecordStart(args.key, args.record, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class diffKeyRecordStartstr extends org.apache.thrift.ProcessFunction { public diffKeyRecordStartstr() { super("diffKeyRecordStartstr"); } public diffKeyRecordStartstr_args getEmptyArgsInstance() { return new diffKeyRecordStartstr_args(); } protected boolean isOneway() { return false; } public diffKeyRecordStartstr_result getResult(I iface, diffKeyRecordStartstr_args args) throws org.apache.thrift.TException { diffKeyRecordStartstr_result result = new diffKeyRecordStartstr_result(); try { result.success = iface.diffKeyRecordStartstr(args.key, args.record, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class diffKeyRecordStartEnd extends org.apache.thrift.ProcessFunction { public diffKeyRecordStartEnd() { super("diffKeyRecordStartEnd"); } public diffKeyRecordStartEnd_args getEmptyArgsInstance() { return new diffKeyRecordStartEnd_args(); } protected boolean isOneway() { return false; } public diffKeyRecordStartEnd_result getResult(I iface, diffKeyRecordStartEnd_args args) throws org.apache.thrift.TException { diffKeyRecordStartEnd_result result = new diffKeyRecordStartEnd_result(); try { result.success = iface.diffKeyRecordStartEnd(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class diffKeyRecordStartstrEndstr extends org.apache.thrift.ProcessFunction { public diffKeyRecordStartstrEndstr() { super("diffKeyRecordStartstrEndstr"); } public diffKeyRecordStartstrEndstr_args getEmptyArgsInstance() { return new diffKeyRecordStartstrEndstr_args(); } protected boolean isOneway() { return false; } public diffKeyRecordStartstrEndstr_result getResult(I iface, diffKeyRecordStartstrEndstr_args args) throws org.apache.thrift.TException { diffKeyRecordStartstrEndstr_result result = new diffKeyRecordStartstrEndstr_result(); try { result.success = iface.diffKeyRecordStartstrEndstr(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class diffKeyStart extends org.apache.thrift.ProcessFunction { public diffKeyStart() { super("diffKeyStart"); } public diffKeyStart_args getEmptyArgsInstance() { return new diffKeyStart_args(); } protected boolean isOneway() { return false; } public diffKeyStart_result getResult(I iface, diffKeyStart_args args) throws org.apache.thrift.TException { diffKeyStart_result result = new diffKeyStart_result(); try { result.success = iface.diffKeyStart(args.key, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class diffKeyStartstr extends org.apache.thrift.ProcessFunction { public diffKeyStartstr() { super("diffKeyStartstr"); } public diffKeyStartstr_args getEmptyArgsInstance() { return new diffKeyStartstr_args(); } protected boolean isOneway() { return false; } public diffKeyStartstr_result getResult(I iface, diffKeyStartstr_args args) throws org.apache.thrift.TException { diffKeyStartstr_result result = new diffKeyStartstr_result(); try { result.success = iface.diffKeyStartstr(args.key, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class diffKeyStartEnd extends org.apache.thrift.ProcessFunction { public diffKeyStartEnd() { super("diffKeyStartEnd"); } public diffKeyStartEnd_args getEmptyArgsInstance() { return new diffKeyStartEnd_args(); } protected boolean isOneway() { return false; } public diffKeyStartEnd_result getResult(I iface, diffKeyStartEnd_args args) throws org.apache.thrift.TException { diffKeyStartEnd_result result = new diffKeyStartEnd_result(); try { result.success = iface.diffKeyStartEnd(args.key, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class diffKeyStartstrEndstr extends org.apache.thrift.ProcessFunction { public diffKeyStartstrEndstr() { super("diffKeyStartstrEndstr"); } public diffKeyStartstrEndstr_args getEmptyArgsInstance() { return new diffKeyStartstrEndstr_args(); } protected boolean isOneway() { return false; } public diffKeyStartstrEndstr_result getResult(I iface, diffKeyStartstrEndstr_args args) throws org.apache.thrift.TException { diffKeyStartstrEndstr_result result = new diffKeyStartstrEndstr_result(); try { result.success = iface.diffKeyStartstrEndstr(args.key, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class invokePlugin extends org.apache.thrift.ProcessFunction { public invokePlugin() { super("invokePlugin"); } public invokePlugin_args getEmptyArgsInstance() { return new invokePlugin_args(); } protected boolean isOneway() { return false; } public invokePlugin_result getResult(I iface, invokePlugin_args args) throws org.apache.thrift.TException { invokePlugin_result result = new invokePlugin_result(); try { result.success = iface.invokePlugin(args.id, args.method, args.params, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class login extends org.apache.thrift.ProcessFunction { public login() { super("login"); } public login_args getEmptyArgsInstance() { return new login_args(); } protected boolean isOneway() { return false; } public login_result getResult(I iface, login_args args) throws org.apache.thrift.TException { login_result result = new login_result(); try { result.success = iface.login(args.username, args.password, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.PermissionException ex2) { result.ex2 = ex2; } return result; } } public static class logout extends org.apache.thrift.ProcessFunction { public logout() { super("logout"); } public logout_args getEmptyArgsInstance() { return new logout_args(); } protected boolean isOneway() { return false; } public logout_result getResult(I iface, logout_args args) throws org.apache.thrift.TException { logout_result result = new logout_result(); try { iface.logout(args.token, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.PermissionException ex2) { result.ex2 = ex2; } return result; } } public static class stage extends org.apache.thrift.ProcessFunction { public stage() { super("stage"); } public stage_args getEmptyArgsInstance() { return new stage_args(); } protected boolean isOneway() { return false; } public stage_result getResult(I iface, stage_args args) throws org.apache.thrift.TException { stage_result result = new stage_result(); try { result.success = iface.stage(args.token, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.PermissionException ex2) { result.ex2 = ex2; } return result; } } public static class insertJson extends org.apache.thrift.ProcessFunction { public insertJson() { super("insertJson"); } public insertJson_args getEmptyArgsInstance() { return new insertJson_args(); } protected boolean isOneway() { return false; } public insertJson_result getResult(I iface, insertJson_args args) throws org.apache.thrift.TException { insertJson_result result = new insertJson_result(); try { result.success = iface.insertJson(args.json, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex4) { result.ex4 = ex4; } catch (com.cinchapi.concourse.thrift.PermissionException ex5) { result.ex5 = ex5; } return result; } } public static class insertJsonRecord extends org.apache.thrift.ProcessFunction { public insertJsonRecord() { super("insertJsonRecord"); } public insertJsonRecord_args getEmptyArgsInstance() { return new insertJsonRecord_args(); } protected boolean isOneway() { return false; } public insertJsonRecord_result getResult(I iface, insertJsonRecord_args args) throws org.apache.thrift.TException { insertJsonRecord_result result = new insertJsonRecord_result(); try { result.success = iface.insertJsonRecord(args.json, args.record, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex4) { result.ex4 = ex4; } catch (com.cinchapi.concourse.thrift.PermissionException ex5) { result.ex5 = ex5; } return result; } } public static class insertJsonRecords extends org.apache.thrift.ProcessFunction { public insertJsonRecords() { super("insertJsonRecords"); } public insertJsonRecords_args getEmptyArgsInstance() { return new insertJsonRecords_args(); } protected boolean isOneway() { return false; } public insertJsonRecords_result getResult(I iface, insertJsonRecords_args args) throws org.apache.thrift.TException { insertJsonRecords_result result = new insertJsonRecords_result(); try { result.success = iface.insertJsonRecords(args.json, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex4) { result.ex4 = ex4; } catch (com.cinchapi.concourse.thrift.PermissionException ex5) { result.ex5 = ex5; } return result; } } public static class removeKeyValueRecord extends org.apache.thrift.ProcessFunction { public removeKeyValueRecord() { super("removeKeyValueRecord"); } public removeKeyValueRecord_args getEmptyArgsInstance() { return new removeKeyValueRecord_args(); } protected boolean isOneway() { return false; } public removeKeyValueRecord_result getResult(I iface, removeKeyValueRecord_args args) throws org.apache.thrift.TException { removeKeyValueRecord_result result = new removeKeyValueRecord_result(); try { result.success = iface.removeKeyValueRecord(args.key, args.value, args.record, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class removeKeyValueRecords extends org.apache.thrift.ProcessFunction { public removeKeyValueRecords() { super("removeKeyValueRecords"); } public removeKeyValueRecords_args getEmptyArgsInstance() { return new removeKeyValueRecords_args(); } protected boolean isOneway() { return false; } public removeKeyValueRecords_result getResult(I iface, removeKeyValueRecords_args args) throws org.apache.thrift.TException { removeKeyValueRecords_result result = new removeKeyValueRecords_result(); try { result.success = iface.removeKeyValueRecords(args.key, args.value, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class setKeyValueRecord extends org.apache.thrift.ProcessFunction { public setKeyValueRecord() { super("setKeyValueRecord"); } public setKeyValueRecord_args getEmptyArgsInstance() { return new setKeyValueRecord_args(); } protected boolean isOneway() { return false; } public setKeyValueRecord_result getResult(I iface, setKeyValueRecord_args args) throws org.apache.thrift.TException { setKeyValueRecord_result result = new setKeyValueRecord_result(); try { iface.setKeyValueRecord(args.key, args.value, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class setKeyValue extends org.apache.thrift.ProcessFunction { public setKeyValue() { super("setKeyValue"); } public setKeyValue_args getEmptyArgsInstance() { return new setKeyValue_args(); } protected boolean isOneway() { return false; } public setKeyValue_result getResult(I iface, setKeyValue_args args) throws org.apache.thrift.TException { setKeyValue_result result = new setKeyValue_result(); try { result.success = iface.setKeyValue(args.key, args.value, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class setKeyValueRecords extends org.apache.thrift.ProcessFunction { public setKeyValueRecords() { super("setKeyValueRecords"); } public setKeyValueRecords_args getEmptyArgsInstance() { return new setKeyValueRecords_args(); } protected boolean isOneway() { return false; } public setKeyValueRecords_result getResult(I iface, setKeyValueRecords_args args) throws org.apache.thrift.TException { setKeyValueRecords_result result = new setKeyValueRecords_result(); try { iface.setKeyValueRecords(args.key, args.value, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class reconcileKeyRecordValues extends org.apache.thrift.ProcessFunction { public reconcileKeyRecordValues() { super("reconcileKeyRecordValues"); } public reconcileKeyRecordValues_args getEmptyArgsInstance() { return new reconcileKeyRecordValues_args(); } protected boolean isOneway() { return false; } public reconcileKeyRecordValues_result getResult(I iface, reconcileKeyRecordValues_args args) throws org.apache.thrift.TException { reconcileKeyRecordValues_result result = new reconcileKeyRecordValues_result(); try { iface.reconcileKeyRecordValues(args.key, args.record, args.values, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class inventory extends org.apache.thrift.ProcessFunction { public inventory() { super("inventory"); } public inventory_args getEmptyArgsInstance() { return new inventory_args(); } protected boolean isOneway() { return false; } public inventory_result getResult(I iface, inventory_args args) throws org.apache.thrift.TException { inventory_result result = new inventory_result(); try { result.success = iface.inventory(args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class selectRecord extends org.apache.thrift.ProcessFunction { public selectRecord() { super("selectRecord"); } public selectRecord_args getEmptyArgsInstance() { return new selectRecord_args(); } protected boolean isOneway() { return false; } public selectRecord_result getResult(I iface, selectRecord_args args) throws org.apache.thrift.TException { selectRecord_result result = new selectRecord_result(); try { result.success = iface.selectRecord(args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class selectRecords extends org.apache.thrift.ProcessFunction { public selectRecords() { super("selectRecords"); } public selectRecords_args getEmptyArgsInstance() { return new selectRecords_args(); } protected boolean isOneway() { return false; } public selectRecords_result getResult(I iface, selectRecords_args args) throws org.apache.thrift.TException { selectRecords_result result = new selectRecords_result(); try { result.success = iface.selectRecords(args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class selectRecordTime extends org.apache.thrift.ProcessFunction { public selectRecordTime() { super("selectRecordTime"); } public selectRecordTime_args getEmptyArgsInstance() { return new selectRecordTime_args(); } protected boolean isOneway() { return false; } public selectRecordTime_result getResult(I iface, selectRecordTime_args args) throws org.apache.thrift.TException { selectRecordTime_result result = new selectRecordTime_result(); try { result.success = iface.selectRecordTime(args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class selectRecordTimestr extends org.apache.thrift.ProcessFunction { public selectRecordTimestr() { super("selectRecordTimestr"); } public selectRecordTimestr_args getEmptyArgsInstance() { return new selectRecordTimestr_args(); } protected boolean isOneway() { return false; } public selectRecordTimestr_result getResult(I iface, selectRecordTimestr_args args) throws org.apache.thrift.TException { selectRecordTimestr_result result = new selectRecordTimestr_result(); try { result.success = iface.selectRecordTimestr(args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class selectRecordsTime extends org.apache.thrift.ProcessFunction { public selectRecordsTime() { super("selectRecordsTime"); } public selectRecordsTime_args getEmptyArgsInstance() { return new selectRecordsTime_args(); } protected boolean isOneway() { return false; } public selectRecordsTime_result getResult(I iface, selectRecordsTime_args args) throws org.apache.thrift.TException { selectRecordsTime_result result = new selectRecordsTime_result(); try { result.success = iface.selectRecordsTime(args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class selectRecordsTimestr extends org.apache.thrift.ProcessFunction { public selectRecordsTimestr() { super("selectRecordsTimestr"); } public selectRecordsTimestr_args getEmptyArgsInstance() { return new selectRecordsTimestr_args(); } protected boolean isOneway() { return false; } public selectRecordsTimestr_result getResult(I iface, selectRecordsTimestr_args args) throws org.apache.thrift.TException { selectRecordsTimestr_result result = new selectRecordsTimestr_result(); try { result.success = iface.selectRecordsTimestr(args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class selectKeyRecord extends org.apache.thrift.ProcessFunction { public selectKeyRecord() { super("selectKeyRecord"); } public selectKeyRecord_args getEmptyArgsInstance() { return new selectKeyRecord_args(); } protected boolean isOneway() { return false; } public selectKeyRecord_result getResult(I iface, selectKeyRecord_args args) throws org.apache.thrift.TException { selectKeyRecord_result result = new selectKeyRecord_result(); try { result.success = iface.selectKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeyRecordTime extends org.apache.thrift.ProcessFunction { public selectKeyRecordTime() { super("selectKeyRecordTime"); } public selectKeyRecordTime_args getEmptyArgsInstance() { return new selectKeyRecordTime_args(); } protected boolean isOneway() { return false; } public selectKeyRecordTime_result getResult(I iface, selectKeyRecordTime_args args) throws org.apache.thrift.TException { selectKeyRecordTime_result result = new selectKeyRecordTime_result(); try { result.success = iface.selectKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeyRecordTimestr extends org.apache.thrift.ProcessFunction { public selectKeyRecordTimestr() { super("selectKeyRecordTimestr"); } public selectKeyRecordTimestr_args getEmptyArgsInstance() { return new selectKeyRecordTimestr_args(); } protected boolean isOneway() { return false; } public selectKeyRecordTimestr_result getResult(I iface, selectKeyRecordTimestr_args args) throws org.apache.thrift.TException { selectKeyRecordTimestr_result result = new selectKeyRecordTimestr_result(); try { result.success = iface.selectKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class selectKeysRecord extends org.apache.thrift.ProcessFunction { public selectKeysRecord() { super("selectKeysRecord"); } public selectKeysRecord_args getEmptyArgsInstance() { return new selectKeysRecord_args(); } protected boolean isOneway() { return false; } public selectKeysRecord_result getResult(I iface, selectKeysRecord_args args) throws org.apache.thrift.TException { selectKeysRecord_result result = new selectKeysRecord_result(); try { result.success = iface.selectKeysRecord(args.keys, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeysRecordTime extends org.apache.thrift.ProcessFunction { public selectKeysRecordTime() { super("selectKeysRecordTime"); } public selectKeysRecordTime_args getEmptyArgsInstance() { return new selectKeysRecordTime_args(); } protected boolean isOneway() { return false; } public selectKeysRecordTime_result getResult(I iface, selectKeysRecordTime_args args) throws org.apache.thrift.TException { selectKeysRecordTime_result result = new selectKeysRecordTime_result(); try { result.success = iface.selectKeysRecordTime(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeysRecordTimestr extends org.apache.thrift.ProcessFunction { public selectKeysRecordTimestr() { super("selectKeysRecordTimestr"); } public selectKeysRecordTimestr_args getEmptyArgsInstance() { return new selectKeysRecordTimestr_args(); } protected boolean isOneway() { return false; } public selectKeysRecordTimestr_result getResult(I iface, selectKeysRecordTimestr_args args) throws org.apache.thrift.TException { selectKeysRecordTimestr_result result = new selectKeysRecordTimestr_result(); try { result.success = iface.selectKeysRecordTimestr(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class selectKeysRecords extends org.apache.thrift.ProcessFunction { public selectKeysRecords() { super("selectKeysRecords"); } public selectKeysRecords_args getEmptyArgsInstance() { return new selectKeysRecords_args(); } protected boolean isOneway() { return false; } public selectKeysRecords_result getResult(I iface, selectKeysRecords_args args) throws org.apache.thrift.TException { selectKeysRecords_result result = new selectKeysRecords_result(); try { result.success = iface.selectKeysRecords(args.keys, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeyRecords extends org.apache.thrift.ProcessFunction { public selectKeyRecords() { super("selectKeyRecords"); } public selectKeyRecords_args getEmptyArgsInstance() { return new selectKeyRecords_args(); } protected boolean isOneway() { return false; } public selectKeyRecords_result getResult(I iface, selectKeyRecords_args args) throws org.apache.thrift.TException { selectKeyRecords_result result = new selectKeyRecords_result(); try { result.success = iface.selectKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeyRecordsTime extends org.apache.thrift.ProcessFunction { public selectKeyRecordsTime() { super("selectKeyRecordsTime"); } public selectKeyRecordsTime_args getEmptyArgsInstance() { return new selectKeyRecordsTime_args(); } protected boolean isOneway() { return false; } public selectKeyRecordsTime_result getResult(I iface, selectKeyRecordsTime_args args) throws org.apache.thrift.TException { selectKeyRecordsTime_result result = new selectKeyRecordsTime_result(); try { result.success = iface.selectKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeyRecordsTimestr extends org.apache.thrift.ProcessFunction { public selectKeyRecordsTimestr() { super("selectKeyRecordsTimestr"); } public selectKeyRecordsTimestr_args getEmptyArgsInstance() { return new selectKeyRecordsTimestr_args(); } protected boolean isOneway() { return false; } public selectKeyRecordsTimestr_result getResult(I iface, selectKeyRecordsTimestr_args args) throws org.apache.thrift.TException { selectKeyRecordsTimestr_result result = new selectKeyRecordsTimestr_result(); try { result.success = iface.selectKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class selectKeysRecordsTime extends org.apache.thrift.ProcessFunction { public selectKeysRecordsTime() { super("selectKeysRecordsTime"); } public selectKeysRecordsTime_args getEmptyArgsInstance() { return new selectKeysRecordsTime_args(); } protected boolean isOneway() { return false; } public selectKeysRecordsTime_result getResult(I iface, selectKeysRecordsTime_args args) throws org.apache.thrift.TException { selectKeysRecordsTime_result result = new selectKeysRecordsTime_result(); try { result.success = iface.selectKeysRecordsTime(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeysRecordsTimestr extends org.apache.thrift.ProcessFunction { public selectKeysRecordsTimestr() { super("selectKeysRecordsTimestr"); } public selectKeysRecordsTimestr_args getEmptyArgsInstance() { return new selectKeysRecordsTimestr_args(); } protected boolean isOneway() { return false; } public selectKeysRecordsTimestr_result getResult(I iface, selectKeysRecordsTimestr_args args) throws org.apache.thrift.TException { selectKeysRecordsTimestr_result result = new selectKeysRecordsTimestr_result(); try { result.success = iface.selectKeysRecordsTimestr(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class selectCriteria extends org.apache.thrift.ProcessFunction { public selectCriteria() { super("selectCriteria"); } public selectCriteria_args getEmptyArgsInstance() { return new selectCriteria_args(); } protected boolean isOneway() { return false; } public selectCriteria_result getResult(I iface, selectCriteria_args args) throws org.apache.thrift.TException { selectCriteria_result result = new selectCriteria_result(); try { result.success = iface.selectCriteria(args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class selectCcl extends org.apache.thrift.ProcessFunction { public selectCcl() { super("selectCcl"); } public selectCcl_args getEmptyArgsInstance() { return new selectCcl_args(); } protected boolean isOneway() { return false; } public selectCcl_result getResult(I iface, selectCcl_args args) throws org.apache.thrift.TException { selectCcl_result result = new selectCcl_result(); try { result.success = iface.selectCcl(args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class selectCriteriaTime extends org.apache.thrift.ProcessFunction { public selectCriteriaTime() { super("selectCriteriaTime"); } public selectCriteriaTime_args getEmptyArgsInstance() { return new selectCriteriaTime_args(); } protected boolean isOneway() { return false; } public selectCriteriaTime_result getResult(I iface, selectCriteriaTime_args args) throws org.apache.thrift.TException { selectCriteriaTime_result result = new selectCriteriaTime_result(); try { result.success = iface.selectCriteriaTime(args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class selectCriteriaTimestr extends org.apache.thrift.ProcessFunction { public selectCriteriaTimestr() { super("selectCriteriaTimestr"); } public selectCriteriaTimestr_args getEmptyArgsInstance() { return new selectCriteriaTimestr_args(); } protected boolean isOneway() { return false; } public selectCriteriaTimestr_result getResult(I iface, selectCriteriaTimestr_args args) throws org.apache.thrift.TException { selectCriteriaTimestr_result result = new selectCriteriaTimestr_result(); try { result.success = iface.selectCriteriaTimestr(args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class selectCclTime extends org.apache.thrift.ProcessFunction { public selectCclTime() { super("selectCclTime"); } public selectCclTime_args getEmptyArgsInstance() { return new selectCclTime_args(); } protected boolean isOneway() { return false; } public selectCclTime_result getResult(I iface, selectCclTime_args args) throws org.apache.thrift.TException { selectCclTime_result result = new selectCclTime_result(); try { result.success = iface.selectCclTime(args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class selectCclTimestr extends org.apache.thrift.ProcessFunction { public selectCclTimestr() { super("selectCclTimestr"); } public selectCclTimestr_args getEmptyArgsInstance() { return new selectCclTimestr_args(); } protected boolean isOneway() { return false; } public selectCclTimestr_result getResult(I iface, selectCclTimestr_args args) throws org.apache.thrift.TException { selectCclTimestr_result result = new selectCclTimestr_result(); try { result.success = iface.selectCclTimestr(args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class selectKeyCriteria extends org.apache.thrift.ProcessFunction { public selectKeyCriteria() { super("selectKeyCriteria"); } public selectKeyCriteria_args getEmptyArgsInstance() { return new selectKeyCriteria_args(); } protected boolean isOneway() { return false; } public selectKeyCriteria_result getResult(I iface, selectKeyCriteria_args args) throws org.apache.thrift.TException { selectKeyCriteria_result result = new selectKeyCriteria_result(); try { result.success = iface.selectKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeyCcl extends org.apache.thrift.ProcessFunction { public selectKeyCcl() { super("selectKeyCcl"); } public selectKeyCcl_args getEmptyArgsInstance() { return new selectKeyCcl_args(); } protected boolean isOneway() { return false; } public selectKeyCcl_result getResult(I iface, selectKeyCcl_args args) throws org.apache.thrift.TException { selectKeyCcl_result result = new selectKeyCcl_result(); try { result.success = iface.selectKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class selectKeyCriteriaTime extends org.apache.thrift.ProcessFunction { public selectKeyCriteriaTime() { super("selectKeyCriteriaTime"); } public selectKeyCriteriaTime_args getEmptyArgsInstance() { return new selectKeyCriteriaTime_args(); } protected boolean isOneway() { return false; } public selectKeyCriteriaTime_result getResult(I iface, selectKeyCriteriaTime_args args) throws org.apache.thrift.TException { selectKeyCriteriaTime_result result = new selectKeyCriteriaTime_result(); try { result.success = iface.selectKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeyCriteriaTimestr extends org.apache.thrift.ProcessFunction { public selectKeyCriteriaTimestr() { super("selectKeyCriteriaTimestr"); } public selectKeyCriteriaTimestr_args getEmptyArgsInstance() { return new selectKeyCriteriaTimestr_args(); } protected boolean isOneway() { return false; } public selectKeyCriteriaTimestr_result getResult(I iface, selectKeyCriteriaTimestr_args args) throws org.apache.thrift.TException { selectKeyCriteriaTimestr_result result = new selectKeyCriteriaTimestr_result(); try { result.success = iface.selectKeyCriteriaTimestr(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class selectKeyCclTime extends org.apache.thrift.ProcessFunction { public selectKeyCclTime() { super("selectKeyCclTime"); } public selectKeyCclTime_args getEmptyArgsInstance() { return new selectKeyCclTime_args(); } protected boolean isOneway() { return false; } public selectKeyCclTime_result getResult(I iface, selectKeyCclTime_args args) throws org.apache.thrift.TException { selectKeyCclTime_result result = new selectKeyCclTime_result(); try { result.success = iface.selectKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class selectKeyCclTimestr extends org.apache.thrift.ProcessFunction { public selectKeyCclTimestr() { super("selectKeyCclTimestr"); } public selectKeyCclTimestr_args getEmptyArgsInstance() { return new selectKeyCclTimestr_args(); } protected boolean isOneway() { return false; } public selectKeyCclTimestr_result getResult(I iface, selectKeyCclTimestr_args args) throws org.apache.thrift.TException { selectKeyCclTimestr_result result = new selectKeyCclTimestr_result(); try { result.success = iface.selectKeyCclTimestr(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class selectKeysCriteria extends org.apache.thrift.ProcessFunction { public selectKeysCriteria() { super("selectKeysCriteria"); } public selectKeysCriteria_args getEmptyArgsInstance() { return new selectKeysCriteria_args(); } protected boolean isOneway() { return false; } public selectKeysCriteria_result getResult(I iface, selectKeysCriteria_args args) throws org.apache.thrift.TException { selectKeysCriteria_result result = new selectKeysCriteria_result(); try { result.success = iface.selectKeysCriteria(args.keys, args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeysCcl extends org.apache.thrift.ProcessFunction { public selectKeysCcl() { super("selectKeysCcl"); } public selectKeysCcl_args getEmptyArgsInstance() { return new selectKeysCcl_args(); } protected boolean isOneway() { return false; } public selectKeysCcl_result getResult(I iface, selectKeysCcl_args args) throws org.apache.thrift.TException { selectKeysCcl_result result = new selectKeysCcl_result(); try { result.success = iface.selectKeysCcl(args.keys, args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class selectKeysCriteriaTime extends org.apache.thrift.ProcessFunction { public selectKeysCriteriaTime() { super("selectKeysCriteriaTime"); } public selectKeysCriteriaTime_args getEmptyArgsInstance() { return new selectKeysCriteriaTime_args(); } protected boolean isOneway() { return false; } public selectKeysCriteriaTime_result getResult(I iface, selectKeysCriteriaTime_args args) throws org.apache.thrift.TException { selectKeysCriteriaTime_result result = new selectKeysCriteriaTime_result(); try { result.success = iface.selectKeysCriteriaTime(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeysCriteriaTimestr extends org.apache.thrift.ProcessFunction { public selectKeysCriteriaTimestr() { super("selectKeysCriteriaTimestr"); } public selectKeysCriteriaTimestr_args getEmptyArgsInstance() { return new selectKeysCriteriaTimestr_args(); } protected boolean isOneway() { return false; } public selectKeysCriteriaTimestr_result getResult(I iface, selectKeysCriteriaTimestr_args args) throws org.apache.thrift.TException { selectKeysCriteriaTimestr_result result = new selectKeysCriteriaTimestr_result(); try { result.success = iface.selectKeysCriteriaTimestr(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class selectKeysCclTime extends org.apache.thrift.ProcessFunction { public selectKeysCclTime() { super("selectKeysCclTime"); } public selectKeysCclTime_args getEmptyArgsInstance() { return new selectKeysCclTime_args(); } protected boolean isOneway() { return false; } public selectKeysCclTime_result getResult(I iface, selectKeysCclTime_args args) throws org.apache.thrift.TException { selectKeysCclTime_result result = new selectKeysCclTime_result(); try { result.success = iface.selectKeysCclTime(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class selectKeysCclTimestr extends org.apache.thrift.ProcessFunction { public selectKeysCclTimestr() { super("selectKeysCclTimestr"); } public selectKeysCclTimestr_args getEmptyArgsInstance() { return new selectKeysCclTimestr_args(); } protected boolean isOneway() { return false; } public selectKeysCclTimestr_result getResult(I iface, selectKeysCclTimestr_args args) throws org.apache.thrift.TException { selectKeysCclTimestr_result result = new selectKeysCclTimestr_result(); try { result.success = iface.selectKeysCclTimestr(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class getKeyRecord extends org.apache.thrift.ProcessFunction { public getKeyRecord() { super("getKeyRecord"); } public getKeyRecord_args getEmptyArgsInstance() { return new getKeyRecord_args(); } protected boolean isOneway() { return false; } public getKeyRecord_result getResult(I iface, getKeyRecord_args args) throws org.apache.thrift.TException { getKeyRecord_result result = new getKeyRecord_result(); try { result.success = iface.getKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class getKeyRecordTime extends org.apache.thrift.ProcessFunction { public getKeyRecordTime() { super("getKeyRecordTime"); } public getKeyRecordTime_args getEmptyArgsInstance() { return new getKeyRecordTime_args(); } protected boolean isOneway() { return false; } public getKeyRecordTime_result getResult(I iface, getKeyRecordTime_args args) throws org.apache.thrift.TException { getKeyRecordTime_result result = new getKeyRecordTime_result(); try { result.success = iface.getKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class getKeyRecordTimestr extends org.apache.thrift.ProcessFunction { public getKeyRecordTimestr() { super("getKeyRecordTimestr"); } public getKeyRecordTimestr_args getEmptyArgsInstance() { return new getKeyRecordTimestr_args(); } protected boolean isOneway() { return false; } public getKeyRecordTimestr_result getResult(I iface, getKeyRecordTimestr_args args) throws org.apache.thrift.TException { getKeyRecordTimestr_result result = new getKeyRecordTimestr_result(); try { result.success = iface.getKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class getKeysRecord extends org.apache.thrift.ProcessFunction { public getKeysRecord() { super("getKeysRecord"); } public getKeysRecord_args getEmptyArgsInstance() { return new getKeysRecord_args(); } protected boolean isOneway() { return false; } public getKeysRecord_result getResult(I iface, getKeysRecord_args args) throws org.apache.thrift.TException { getKeysRecord_result result = new getKeysRecord_result(); try { result.success = iface.getKeysRecord(args.keys, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class getKeysRecordTime extends org.apache.thrift.ProcessFunction { public getKeysRecordTime() { super("getKeysRecordTime"); } public getKeysRecordTime_args getEmptyArgsInstance() { return new getKeysRecordTime_args(); } protected boolean isOneway() { return false; } public getKeysRecordTime_result getResult(I iface, getKeysRecordTime_args args) throws org.apache.thrift.TException { getKeysRecordTime_result result = new getKeysRecordTime_result(); try { result.success = iface.getKeysRecordTime(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class getKeysRecordTimestr extends org.apache.thrift.ProcessFunction { public getKeysRecordTimestr() { super("getKeysRecordTimestr"); } public getKeysRecordTimestr_args getEmptyArgsInstance() { return new getKeysRecordTimestr_args(); } protected boolean isOneway() { return false; } public getKeysRecordTimestr_result getResult(I iface, getKeysRecordTimestr_args args) throws org.apache.thrift.TException { getKeysRecordTimestr_result result = new getKeysRecordTimestr_result(); try { result.success = iface.getKeysRecordTimestr(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class getKeysRecords extends org.apache.thrift.ProcessFunction { public getKeysRecords() { super("getKeysRecords"); } public getKeysRecords_args getEmptyArgsInstance() { return new getKeysRecords_args(); } protected boolean isOneway() { return false; } public getKeysRecords_result getResult(I iface, getKeysRecords_args args) throws org.apache.thrift.TException { getKeysRecords_result result = new getKeysRecords_result(); try { result.success = iface.getKeysRecords(args.keys, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class getKeyRecords extends org.apache.thrift.ProcessFunction { public getKeyRecords() { super("getKeyRecords"); } public getKeyRecords_args getEmptyArgsInstance() { return new getKeyRecords_args(); } protected boolean isOneway() { return false; } public getKeyRecords_result getResult(I iface, getKeyRecords_args args) throws org.apache.thrift.TException { getKeyRecords_result result = new getKeyRecords_result(); try { result.success = iface.getKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class getKeyRecordsTime extends org.apache.thrift.ProcessFunction { public getKeyRecordsTime() { super("getKeyRecordsTime"); } public getKeyRecordsTime_args getEmptyArgsInstance() { return new getKeyRecordsTime_args(); } protected boolean isOneway() { return false; } public getKeyRecordsTime_result getResult(I iface, getKeyRecordsTime_args args) throws org.apache.thrift.TException { getKeyRecordsTime_result result = new getKeyRecordsTime_result(); try { result.success = iface.getKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class getKeyRecordsTimestr extends org.apache.thrift.ProcessFunction { public getKeyRecordsTimestr() { super("getKeyRecordsTimestr"); } public getKeyRecordsTimestr_args getEmptyArgsInstance() { return new getKeyRecordsTimestr_args(); } protected boolean isOneway() { return false; } public getKeyRecordsTimestr_result getResult(I iface, getKeyRecordsTimestr_args args) throws org.apache.thrift.TException { getKeyRecordsTimestr_result result = new getKeyRecordsTimestr_result(); try { result.success = iface.getKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class getKeysRecordsTime extends org.apache.thrift.ProcessFunction { public getKeysRecordsTime() { super("getKeysRecordsTime"); } public getKeysRecordsTime_args getEmptyArgsInstance() { return new getKeysRecordsTime_args(); } protected boolean isOneway() { return false; } public getKeysRecordsTime_result getResult(I iface, getKeysRecordsTime_args args) throws org.apache.thrift.TException { getKeysRecordsTime_result result = new getKeysRecordsTime_result(); try { result.success = iface.getKeysRecordsTime(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class getKeysRecordsTimestr extends org.apache.thrift.ProcessFunction { public getKeysRecordsTimestr() { super("getKeysRecordsTimestr"); } public getKeysRecordsTimestr_args getEmptyArgsInstance() { return new getKeysRecordsTimestr_args(); } protected boolean isOneway() { return false; } public getKeysRecordsTimestr_result getResult(I iface, getKeysRecordsTimestr_args args) throws org.apache.thrift.TException { getKeysRecordsTimestr_result result = new getKeysRecordsTimestr_result(); try { result.success = iface.getKeysRecordsTimestr(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class getKeyCriteria extends org.apache.thrift.ProcessFunction { public getKeyCriteria() { super("getKeyCriteria"); } public getKeyCriteria_args getEmptyArgsInstance() { return new getKeyCriteria_args(); } protected boolean isOneway() { return false; } public getKeyCriteria_result getResult(I iface, getKeyCriteria_args args) throws org.apache.thrift.TException { getKeyCriteria_result result = new getKeyCriteria_result(); try { result.success = iface.getKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class getCriteria extends org.apache.thrift.ProcessFunction { public getCriteria() { super("getCriteria"); } public getCriteria_args getEmptyArgsInstance() { return new getCriteria_args(); } protected boolean isOneway() { return false; } public getCriteria_result getResult(I iface, getCriteria_args args) throws org.apache.thrift.TException { getCriteria_result result = new getCriteria_result(); try { result.success = iface.getCriteria(args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class getCcl extends org.apache.thrift.ProcessFunction { public getCcl() { super("getCcl"); } public getCcl_args getEmptyArgsInstance() { return new getCcl_args(); } protected boolean isOneway() { return false; } public getCcl_result getResult(I iface, getCcl_args args) throws org.apache.thrift.TException { getCcl_result result = new getCcl_result(); try { result.success = iface.getCcl(args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class getCriteriaTime extends org.apache.thrift.ProcessFunction { public getCriteriaTime() { super("getCriteriaTime"); } public getCriteriaTime_args getEmptyArgsInstance() { return new getCriteriaTime_args(); } protected boolean isOneway() { return false; } public getCriteriaTime_result getResult(I iface, getCriteriaTime_args args) throws org.apache.thrift.TException { getCriteriaTime_result result = new getCriteriaTime_result(); try { result.success = iface.getCriteriaTime(args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class getCriteriaTimestr extends org.apache.thrift.ProcessFunction { public getCriteriaTimestr() { super("getCriteriaTimestr"); } public getCriteriaTimestr_args getEmptyArgsInstance() { return new getCriteriaTimestr_args(); } protected boolean isOneway() { return false; } public getCriteriaTimestr_result getResult(I iface, getCriteriaTimestr_args args) throws org.apache.thrift.TException { getCriteriaTimestr_result result = new getCriteriaTimestr_result(); try { result.success = iface.getCriteriaTimestr(args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class getCclTime extends org.apache.thrift.ProcessFunction { public getCclTime() { super("getCclTime"); } public getCclTime_args getEmptyArgsInstance() { return new getCclTime_args(); } protected boolean isOneway() { return false; } public getCclTime_result getResult(I iface, getCclTime_args args) throws org.apache.thrift.TException { getCclTime_result result = new getCclTime_result(); try { result.success = iface.getCclTime(args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class getCclTimestr extends org.apache.thrift.ProcessFunction { public getCclTimestr() { super("getCclTimestr"); } public getCclTimestr_args getEmptyArgsInstance() { return new getCclTimestr_args(); } protected boolean isOneway() { return false; } public getCclTimestr_result getResult(I iface, getCclTimestr_args args) throws org.apache.thrift.TException { getCclTimestr_result result = new getCclTimestr_result(); try { result.success = iface.getCclTimestr(args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class getKeyCcl extends org.apache.thrift.ProcessFunction { public getKeyCcl() { super("getKeyCcl"); } public getKeyCcl_args getEmptyArgsInstance() { return new getKeyCcl_args(); } protected boolean isOneway() { return false; } public getKeyCcl_result getResult(I iface, getKeyCcl_args args) throws org.apache.thrift.TException { getKeyCcl_result result = new getKeyCcl_result(); try { result.success = iface.getKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class getKeyCriteriaTime extends org.apache.thrift.ProcessFunction { public getKeyCriteriaTime() { super("getKeyCriteriaTime"); } public getKeyCriteriaTime_args getEmptyArgsInstance() { return new getKeyCriteriaTime_args(); } protected boolean isOneway() { return false; } public getKeyCriteriaTime_result getResult(I iface, getKeyCriteriaTime_args args) throws org.apache.thrift.TException { getKeyCriteriaTime_result result = new getKeyCriteriaTime_result(); try { result.success = iface.getKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class getKeyCriteriaTimestr extends org.apache.thrift.ProcessFunction { public getKeyCriteriaTimestr() { super("getKeyCriteriaTimestr"); } public getKeyCriteriaTimestr_args getEmptyArgsInstance() { return new getKeyCriteriaTimestr_args(); } protected boolean isOneway() { return false; } public getKeyCriteriaTimestr_result getResult(I iface, getKeyCriteriaTimestr_args args) throws org.apache.thrift.TException { getKeyCriteriaTimestr_result result = new getKeyCriteriaTimestr_result(); try { result.success = iface.getKeyCriteriaTimestr(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class getKeyCclTime extends org.apache.thrift.ProcessFunction { public getKeyCclTime() { super("getKeyCclTime"); } public getKeyCclTime_args getEmptyArgsInstance() { return new getKeyCclTime_args(); } protected boolean isOneway() { return false; } public getKeyCclTime_result getResult(I iface, getKeyCclTime_args args) throws org.apache.thrift.TException { getKeyCclTime_result result = new getKeyCclTime_result(); try { result.success = iface.getKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class getKeyCclTimestr extends org.apache.thrift.ProcessFunction { public getKeyCclTimestr() { super("getKeyCclTimestr"); } public getKeyCclTimestr_args getEmptyArgsInstance() { return new getKeyCclTimestr_args(); } protected boolean isOneway() { return false; } public getKeyCclTimestr_result getResult(I iface, getKeyCclTimestr_args args) throws org.apache.thrift.TException { getKeyCclTimestr_result result = new getKeyCclTimestr_result(); try { result.success = iface.getKeyCclTimestr(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class getKeysCriteria extends org.apache.thrift.ProcessFunction { public getKeysCriteria() { super("getKeysCriteria"); } public getKeysCriteria_args getEmptyArgsInstance() { return new getKeysCriteria_args(); } protected boolean isOneway() { return false; } public getKeysCriteria_result getResult(I iface, getKeysCriteria_args args) throws org.apache.thrift.TException { getKeysCriteria_result result = new getKeysCriteria_result(); try { result.success = iface.getKeysCriteria(args.keys, args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class getKeysCcl extends org.apache.thrift.ProcessFunction { public getKeysCcl() { super("getKeysCcl"); } public getKeysCcl_args getEmptyArgsInstance() { return new getKeysCcl_args(); } protected boolean isOneway() { return false; } public getKeysCcl_result getResult(I iface, getKeysCcl_args args) throws org.apache.thrift.TException { getKeysCcl_result result = new getKeysCcl_result(); try { result.success = iface.getKeysCcl(args.keys, args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class getKeysCriteriaTime extends org.apache.thrift.ProcessFunction { public getKeysCriteriaTime() { super("getKeysCriteriaTime"); } public getKeysCriteriaTime_args getEmptyArgsInstance() { return new getKeysCriteriaTime_args(); } protected boolean isOneway() { return false; } public getKeysCriteriaTime_result getResult(I iface, getKeysCriteriaTime_args args) throws org.apache.thrift.TException { getKeysCriteriaTime_result result = new getKeysCriteriaTime_result(); try { result.success = iface.getKeysCriteriaTime(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class getKeysCriteriaTimestr extends org.apache.thrift.ProcessFunction { public getKeysCriteriaTimestr() { super("getKeysCriteriaTimestr"); } public getKeysCriteriaTimestr_args getEmptyArgsInstance() { return new getKeysCriteriaTimestr_args(); } protected boolean isOneway() { return false; } public getKeysCriteriaTimestr_result getResult(I iface, getKeysCriteriaTimestr_args args) throws org.apache.thrift.TException { getKeysCriteriaTimestr_result result = new getKeysCriteriaTimestr_result(); try { result.success = iface.getKeysCriteriaTimestr(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class getKeysCclTime extends org.apache.thrift.ProcessFunction { public getKeysCclTime() { super("getKeysCclTime"); } public getKeysCclTime_args getEmptyArgsInstance() { return new getKeysCclTime_args(); } protected boolean isOneway() { return false; } public getKeysCclTime_result getResult(I iface, getKeysCclTime_args args) throws org.apache.thrift.TException { getKeysCclTime_result result = new getKeysCclTime_result(); try { result.success = iface.getKeysCclTime(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class getKeysCclTimestr extends org.apache.thrift.ProcessFunction { public getKeysCclTimestr() { super("getKeysCclTimestr"); } public getKeysCclTimestr_args getEmptyArgsInstance() { return new getKeysCclTimestr_args(); } protected boolean isOneway() { return false; } public getKeysCclTimestr_result getResult(I iface, getKeysCclTimestr_args args) throws org.apache.thrift.TException { getKeysCclTimestr_result result = new getKeysCclTimestr_result(); try { result.success = iface.getKeysCclTimestr(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class verifyKeyValueRecord extends org.apache.thrift.ProcessFunction { public verifyKeyValueRecord() { super("verifyKeyValueRecord"); } public verifyKeyValueRecord_args getEmptyArgsInstance() { return new verifyKeyValueRecord_args(); } protected boolean isOneway() { return false; } public verifyKeyValueRecord_result getResult(I iface, verifyKeyValueRecord_args args) throws org.apache.thrift.TException { verifyKeyValueRecord_result result = new verifyKeyValueRecord_result(); try { result.success = iface.verifyKeyValueRecord(args.key, args.value, args.record, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class verifyKeyValueRecordTime extends org.apache.thrift.ProcessFunction { public verifyKeyValueRecordTime() { super("verifyKeyValueRecordTime"); } public verifyKeyValueRecordTime_args getEmptyArgsInstance() { return new verifyKeyValueRecordTime_args(); } protected boolean isOneway() { return false; } public verifyKeyValueRecordTime_result getResult(I iface, verifyKeyValueRecordTime_args args) throws org.apache.thrift.TException { verifyKeyValueRecordTime_result result = new verifyKeyValueRecordTime_result(); try { result.success = iface.verifyKeyValueRecordTime(args.key, args.value, args.record, args.timestamp, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class verifyKeyValueRecordTimestr extends org.apache.thrift.ProcessFunction { public verifyKeyValueRecordTimestr() { super("verifyKeyValueRecordTimestr"); } public verifyKeyValueRecordTimestr_args getEmptyArgsInstance() { return new verifyKeyValueRecordTimestr_args(); } protected boolean isOneway() { return false; } public verifyKeyValueRecordTimestr_result getResult(I iface, verifyKeyValueRecordTimestr_args args) throws org.apache.thrift.TException { verifyKeyValueRecordTimestr_result result = new verifyKeyValueRecordTimestr_result(); try { result.success = iface.verifyKeyValueRecordTimestr(args.key, args.value, args.record, args.timestamp, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class jsonifyRecords extends org.apache.thrift.ProcessFunction { public jsonifyRecords() { super("jsonifyRecords"); } public jsonifyRecords_args getEmptyArgsInstance() { return new jsonifyRecords_args(); } protected boolean isOneway() { return false; } public jsonifyRecords_result getResult(I iface, jsonifyRecords_args args) throws org.apache.thrift.TException { jsonifyRecords_result result = new jsonifyRecords_result(); try { result.success = iface.jsonifyRecords(args.records, args.identifier, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class jsonifyRecordsTime extends org.apache.thrift.ProcessFunction { public jsonifyRecordsTime() { super("jsonifyRecordsTime"); } public jsonifyRecordsTime_args getEmptyArgsInstance() { return new jsonifyRecordsTime_args(); } protected boolean isOneway() { return false; } public jsonifyRecordsTime_result getResult(I iface, jsonifyRecordsTime_args args) throws org.apache.thrift.TException { jsonifyRecordsTime_result result = new jsonifyRecordsTime_result(); try { result.success = iface.jsonifyRecordsTime(args.records, args.timestamp, args.identifier, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class jsonifyRecordsTimestr extends org.apache.thrift.ProcessFunction { public jsonifyRecordsTimestr() { super("jsonifyRecordsTimestr"); } public jsonifyRecordsTimestr_args getEmptyArgsInstance() { return new jsonifyRecordsTimestr_args(); } protected boolean isOneway() { return false; } public jsonifyRecordsTimestr_result getResult(I iface, jsonifyRecordsTimestr_args args) throws org.apache.thrift.TException { jsonifyRecordsTimestr_result result = new jsonifyRecordsTimestr_result(); try { result.success = iface.jsonifyRecordsTimestr(args.records, args.timestamp, args.identifier, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class findCriteria extends org.apache.thrift.ProcessFunction { public findCriteria() { super("findCriteria"); } public findCriteria_args getEmptyArgsInstance() { return new findCriteria_args(); } protected boolean isOneway() { return false; } public findCriteria_result getResult(I iface, findCriteria_args args) throws org.apache.thrift.TException { findCriteria_result result = new findCriteria_result(); try { result.success = iface.findCriteria(args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class findCcl extends org.apache.thrift.ProcessFunction { public findCcl() { super("findCcl"); } public findCcl_args getEmptyArgsInstance() { return new findCcl_args(); } protected boolean isOneway() { return false; } public findCcl_result getResult(I iface, findCcl_args args) throws org.apache.thrift.TException { findCcl_result result = new findCcl_result(); try { result.success = iface.findCcl(args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class findKeyOperatorValues extends org.apache.thrift.ProcessFunction { public findKeyOperatorValues() { super("findKeyOperatorValues"); } public findKeyOperatorValues_args getEmptyArgsInstance() { return new findKeyOperatorValues_args(); } protected boolean isOneway() { return false; } public findKeyOperatorValues_result getResult(I iface, findKeyOperatorValues_args args) throws org.apache.thrift.TException { findKeyOperatorValues_result result = new findKeyOperatorValues_result(); try { result.success = iface.findKeyOperatorValues(args.key, args.operator, args.values, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class findKeyOperatorValuesTime extends org.apache.thrift.ProcessFunction { public findKeyOperatorValuesTime() { super("findKeyOperatorValuesTime"); } public findKeyOperatorValuesTime_args getEmptyArgsInstance() { return new findKeyOperatorValuesTime_args(); } protected boolean isOneway() { return false; } public findKeyOperatorValuesTime_result getResult(I iface, findKeyOperatorValuesTime_args args) throws org.apache.thrift.TException { findKeyOperatorValuesTime_result result = new findKeyOperatorValuesTime_result(); try { result.success = iface.findKeyOperatorValuesTime(args.key, args.operator, args.values, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class findKeyOperatorValuesTimestr extends org.apache.thrift.ProcessFunction { public findKeyOperatorValuesTimestr() { super("findKeyOperatorValuesTimestr"); } public findKeyOperatorValuesTimestr_args getEmptyArgsInstance() { return new findKeyOperatorValuesTimestr_args(); } protected boolean isOneway() { return false; } public findKeyOperatorValuesTimestr_result getResult(I iface, findKeyOperatorValuesTimestr_args args) throws org.apache.thrift.TException { findKeyOperatorValuesTimestr_result result = new findKeyOperatorValuesTimestr_result(); try { result.success = iface.findKeyOperatorValuesTimestr( args.key, args.operator, args.values, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class findKeyOperatorstrValues extends org.apache.thrift.ProcessFunction { public findKeyOperatorstrValues() { super("findKeyOperatorstrValues"); } public findKeyOperatorstrValues_args getEmptyArgsInstance() { return new findKeyOperatorstrValues_args(); } protected boolean isOneway() { return false; } public findKeyOperatorstrValues_result getResult(I iface, findKeyOperatorstrValues_args args) throws org.apache.thrift.TException { findKeyOperatorstrValues_result result = new findKeyOperatorstrValues_result(); try { result.success = iface.findKeyOperatorstrValues(args.key, args.operator, args.values, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class findKeyOperatorstrValuesTime extends org.apache.thrift.ProcessFunction { public findKeyOperatorstrValuesTime() { super("findKeyOperatorstrValuesTime"); } public findKeyOperatorstrValuesTime_args getEmptyArgsInstance() { return new findKeyOperatorstrValuesTime_args(); } protected boolean isOneway() { return false; } public findKeyOperatorstrValuesTime_result getResult(I iface, findKeyOperatorstrValuesTime_args args) throws org.apache.thrift.TException { findKeyOperatorstrValuesTime_result result = new findKeyOperatorstrValuesTime_result(); try { result.success = iface.findKeyOperatorstrValuesTime( args.key, args.operator, args.values, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class findKeyOperatorstrValuesTimestr extends org.apache.thrift.ProcessFunction { public findKeyOperatorstrValuesTimestr() { super("findKeyOperatorstrValuesTimestr"); } public findKeyOperatorstrValuesTimestr_args getEmptyArgsInstance() { return new findKeyOperatorstrValuesTimestr_args(); } protected boolean isOneway() { return false; } public findKeyOperatorstrValuesTimestr_result getResult(I iface, findKeyOperatorstrValuesTimestr_args args) throws org.apache.thrift.TException { findKeyOperatorstrValuesTimestr_result result = new findKeyOperatorstrValuesTimestr_result(); try { result.success = iface.findKeyOperatorstrValuesTimestr( args.key, args.operator, args.values, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class search extends org.apache.thrift.ProcessFunction { public search() { super("search"); } public search_args getEmptyArgsInstance() { return new search_args(); } protected boolean isOneway() { return false; } public search_result getResult(I iface, search_args args) throws org.apache.thrift.TException { search_result result = new search_result(); try { result.success = iface.search(args.key, args.query, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class revertKeysRecordsTime extends org.apache.thrift.ProcessFunction { public revertKeysRecordsTime() { super("revertKeysRecordsTime"); } public revertKeysRecordsTime_args getEmptyArgsInstance() { return new revertKeysRecordsTime_args(); } protected boolean isOneway() { return false; } public revertKeysRecordsTime_result getResult(I iface, revertKeysRecordsTime_args args) throws org.apache.thrift.TException { revertKeysRecordsTime_result result = new revertKeysRecordsTime_result(); try { iface.revertKeysRecordsTime(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class revertKeysRecordsTimestr extends org.apache.thrift.ProcessFunction { public revertKeysRecordsTimestr() { super("revertKeysRecordsTimestr"); } public revertKeysRecordsTimestr_args getEmptyArgsInstance() { return new revertKeysRecordsTimestr_args(); } protected boolean isOneway() { return false; } public revertKeysRecordsTimestr_result getResult(I iface, revertKeysRecordsTimestr_args args) throws org.apache.thrift.TException { revertKeysRecordsTimestr_result result = new revertKeysRecordsTimestr_result(); try { iface.revertKeysRecordsTimestr(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class revertKeysRecordTime extends org.apache.thrift.ProcessFunction { public revertKeysRecordTime() { super("revertKeysRecordTime"); } public revertKeysRecordTime_args getEmptyArgsInstance() { return new revertKeysRecordTime_args(); } protected boolean isOneway() { return false; } public revertKeysRecordTime_result getResult(I iface, revertKeysRecordTime_args args) throws org.apache.thrift.TException { revertKeysRecordTime_result result = new revertKeysRecordTime_result(); try { iface.revertKeysRecordTime(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class revertKeysRecordTimestr extends org.apache.thrift.ProcessFunction { public revertKeysRecordTimestr() { super("revertKeysRecordTimestr"); } public revertKeysRecordTimestr_args getEmptyArgsInstance() { return new revertKeysRecordTimestr_args(); } protected boolean isOneway() { return false; } public revertKeysRecordTimestr_result getResult(I iface, revertKeysRecordTimestr_args args) throws org.apache.thrift.TException { revertKeysRecordTimestr_result result = new revertKeysRecordTimestr_result(); try { iface.revertKeysRecordTimestr(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class revertKeyRecordsTime extends org.apache.thrift.ProcessFunction { public revertKeyRecordsTime() { super("revertKeyRecordsTime"); } public revertKeyRecordsTime_args getEmptyArgsInstance() { return new revertKeyRecordsTime_args(); } protected boolean isOneway() { return false; } public revertKeyRecordsTime_result getResult(I iface, revertKeyRecordsTime_args args) throws org.apache.thrift.TException { revertKeyRecordsTime_result result = new revertKeyRecordsTime_result(); try { iface.revertKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class revertKeyRecordsTimestr extends org.apache.thrift.ProcessFunction { public revertKeyRecordsTimestr() { super("revertKeyRecordsTimestr"); } public revertKeyRecordsTimestr_args getEmptyArgsInstance() { return new revertKeyRecordsTimestr_args(); } protected boolean isOneway() { return false; } public revertKeyRecordsTimestr_result getResult(I iface, revertKeyRecordsTimestr_args args) throws org.apache.thrift.TException { revertKeyRecordsTimestr_result result = new revertKeyRecordsTimestr_result(); try { iface.revertKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class revertKeyRecordTime extends org.apache.thrift.ProcessFunction { public revertKeyRecordTime() { super("revertKeyRecordTime"); } public revertKeyRecordTime_args getEmptyArgsInstance() { return new revertKeyRecordTime_args(); } protected boolean isOneway() { return false; } public revertKeyRecordTime_result getResult(I iface, revertKeyRecordTime_args args) throws org.apache.thrift.TException { revertKeyRecordTime_result result = new revertKeyRecordTime_result(); try { iface.revertKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class revertKeyRecordTimestr extends org.apache.thrift.ProcessFunction { public revertKeyRecordTimestr() { super("revertKeyRecordTimestr"); } public revertKeyRecordTimestr_args getEmptyArgsInstance() { return new revertKeyRecordTimestr_args(); } protected boolean isOneway() { return false; } public revertKeyRecordTimestr_result getResult(I iface, revertKeyRecordTimestr_args args) throws org.apache.thrift.TException { revertKeyRecordTimestr_result result = new revertKeyRecordTimestr_result(); try { iface.revertKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class pingRecords extends org.apache.thrift.ProcessFunction { public pingRecords() { super("pingRecords"); } public pingRecords_args getEmptyArgsInstance() { return new pingRecords_args(); } protected boolean isOneway() { return false; } public pingRecords_result getResult(I iface, pingRecords_args args) throws org.apache.thrift.TException { pingRecords_result result = new pingRecords_result(); try { result.success = iface.pingRecords(args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class pingRecord extends org.apache.thrift.ProcessFunction { public pingRecord() { super("pingRecord"); } public pingRecord_args getEmptyArgsInstance() { return new pingRecord_args(); } protected boolean isOneway() { return false; } public pingRecord_result getResult(I iface, pingRecord_args args) throws org.apache.thrift.TException { pingRecord_result result = new pingRecord_result(); try { result.success = iface.pingRecord(args.record, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class verifyAndSwap extends org.apache.thrift.ProcessFunction { public verifyAndSwap() { super("verifyAndSwap"); } public verifyAndSwap_args getEmptyArgsInstance() { return new verifyAndSwap_args(); } protected boolean isOneway() { return false; } public verifyAndSwap_result getResult(I iface, verifyAndSwap_args args) throws org.apache.thrift.TException { verifyAndSwap_result result = new verifyAndSwap_result(); try { result.success = iface.verifyAndSwap(args.key, args.expected, args.record, args.replacement, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class verifyOrSet extends org.apache.thrift.ProcessFunction { public verifyOrSet() { super("verifyOrSet"); } public verifyOrSet_args getEmptyArgsInstance() { return new verifyOrSet_args(); } protected boolean isOneway() { return false; } public verifyOrSet_result getResult(I iface, verifyOrSet_args args) throws org.apache.thrift.TException { verifyOrSet_result result = new verifyOrSet_result(); try { iface.verifyOrSet(args.key, args.value, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class findOrAddKeyValue extends org.apache.thrift.ProcessFunction { public findOrAddKeyValue() { super("findOrAddKeyValue"); } public findOrAddKeyValue_args getEmptyArgsInstance() { return new findOrAddKeyValue_args(); } protected boolean isOneway() { return false; } public findOrAddKeyValue_result getResult(I iface, findOrAddKeyValue_args args) throws org.apache.thrift.TException { findOrAddKeyValue_result result = new findOrAddKeyValue_result(); try { result.success = iface.findOrAddKeyValue(args.key, args.value, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.DuplicateEntryException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex4) { result.ex4 = ex4; } catch (com.cinchapi.concourse.thrift.PermissionException ex5) { result.ex5 = ex5; } return result; } } public static class findOrInsertCriteriaJson extends org.apache.thrift.ProcessFunction { public findOrInsertCriteriaJson() { super("findOrInsertCriteriaJson"); } public findOrInsertCriteriaJson_args getEmptyArgsInstance() { return new findOrInsertCriteriaJson_args(); } protected boolean isOneway() { return false; } public findOrInsertCriteriaJson_result getResult(I iface, findOrInsertCriteriaJson_args args) throws org.apache.thrift.TException { findOrInsertCriteriaJson_result result = new findOrInsertCriteriaJson_result(); try { result.success = iface.findOrInsertCriteriaJson( args.criteria, args.json, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.DuplicateEntryException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class findOrInsertCclJson extends org.apache.thrift.ProcessFunction { public findOrInsertCclJson() { super("findOrInsertCclJson"); } public findOrInsertCclJson_args getEmptyArgsInstance() { return new findOrInsertCclJson_args(); } protected boolean isOneway() { return false; } public findOrInsertCclJson_result getResult(I iface, findOrInsertCclJson_args args) throws org.apache.thrift.TException { findOrInsertCclJson_result result = new findOrInsertCclJson_result(); try { result.success = iface.findOrInsertCclJson(args.ccl, args.json, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.DuplicateEntryException ex4) { result.ex4 = ex4; } catch (com.cinchapi.concourse.thrift.PermissionException ex5) { result.ex5 = ex5; } return result; } } public static class sumKeyRecord extends org.apache.thrift.ProcessFunction { public sumKeyRecord() { super("sumKeyRecord"); } public sumKeyRecord_args getEmptyArgsInstance() { return new sumKeyRecord_args(); } protected boolean isOneway() { return false; } public sumKeyRecord_result getResult(I iface, sumKeyRecord_args args) throws org.apache.thrift.TException { sumKeyRecord_result result = new sumKeyRecord_result(); try { result.success = iface.sumKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class sumKeyRecordTime extends org.apache.thrift.ProcessFunction { public sumKeyRecordTime() { super("sumKeyRecordTime"); } public sumKeyRecordTime_args getEmptyArgsInstance() { return new sumKeyRecordTime_args(); } protected boolean isOneway() { return false; } public sumKeyRecordTime_result getResult(I iface, sumKeyRecordTime_args args) throws org.apache.thrift.TException { sumKeyRecordTime_result result = new sumKeyRecordTime_result(); try { result.success = iface.sumKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class sumKeyRecordTimestr extends org.apache.thrift.ProcessFunction { public sumKeyRecordTimestr() { super("sumKeyRecordTimestr"); } public sumKeyRecordTimestr_args getEmptyArgsInstance() { return new sumKeyRecordTimestr_args(); } protected boolean isOneway() { return false; } public sumKeyRecordTimestr_result getResult(I iface, sumKeyRecordTimestr_args args) throws org.apache.thrift.TException { sumKeyRecordTimestr_result result = new sumKeyRecordTimestr_result(); try { result.success = iface.sumKeyRecordTimestr(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class sumKeyRecords extends org.apache.thrift.ProcessFunction { public sumKeyRecords() { super("sumKeyRecords"); } public sumKeyRecords_args getEmptyArgsInstance() { return new sumKeyRecords_args(); } protected boolean isOneway() { return false; } public sumKeyRecords_result getResult(I iface, sumKeyRecords_args args) throws org.apache.thrift.TException { sumKeyRecords_result result = new sumKeyRecords_result(); try { result.success = iface.sumKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class sumKeyRecordsTime extends org.apache.thrift.ProcessFunction { public sumKeyRecordsTime() { super("sumKeyRecordsTime"); } public sumKeyRecordsTime_args getEmptyArgsInstance() { return new sumKeyRecordsTime_args(); } protected boolean isOneway() { return false; } public sumKeyRecordsTime_result getResult(I iface, sumKeyRecordsTime_args args) throws org.apache.thrift.TException { sumKeyRecordsTime_result result = new sumKeyRecordsTime_result(); try { result.success = iface.sumKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class sumKeyRecordsTimestr extends org.apache.thrift.ProcessFunction { public sumKeyRecordsTimestr() { super("sumKeyRecordsTimestr"); } public sumKeyRecordsTimestr_args getEmptyArgsInstance() { return new sumKeyRecordsTimestr_args(); } protected boolean isOneway() { return false; } public sumKeyRecordsTimestr_result getResult(I iface, sumKeyRecordsTimestr_args args) throws org.apache.thrift.TException { sumKeyRecordsTimestr_result result = new sumKeyRecordsTimestr_result(); try { result.success = iface.sumKeyRecordsTimestr(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class sumKey extends org.apache.thrift.ProcessFunction { public sumKey() { super("sumKey"); } public sumKey_args getEmptyArgsInstance() { return new sumKey_args(); } protected boolean isOneway() { return false; } public sumKey_result getResult(I iface, sumKey_args args) throws org.apache.thrift.TException { sumKey_result result = new sumKey_result(); try { result.success = iface.sumKey(args.key, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class sumKeyTime extends org.apache.thrift.ProcessFunction { public sumKeyTime() { super("sumKeyTime"); } public sumKeyTime_args getEmptyArgsInstance() { return new sumKeyTime_args(); } protected boolean isOneway() { return false; } public sumKeyTime_result getResult(I iface, sumKeyTime_args args) throws org.apache.thrift.TException { sumKeyTime_result result = new sumKeyTime_result(); try { result.success = iface.sumKeyTime(args.key, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class sumKeyTimestr extends org.apache.thrift.ProcessFunction { public sumKeyTimestr() { super("sumKeyTimestr"); } public sumKeyTimestr_args getEmptyArgsInstance() { return new sumKeyTimestr_args(); } protected boolean isOneway() { return false; } public sumKeyTimestr_result getResult(I iface, sumKeyTimestr_args args) throws org.apache.thrift.TException { sumKeyTimestr_result result = new sumKeyTimestr_result(); try { result.success = iface.sumKeyTimestr(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class sumKeyCriteria extends org.apache.thrift.ProcessFunction { public sumKeyCriteria() { super("sumKeyCriteria"); } public sumKeyCriteria_args getEmptyArgsInstance() { return new sumKeyCriteria_args(); } protected boolean isOneway() { return false; } public sumKeyCriteria_result getResult(I iface, sumKeyCriteria_args args) throws org.apache.thrift.TException { sumKeyCriteria_result result = new sumKeyCriteria_result(); try { result.success = iface.sumKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class sumKeyCriteriaTime extends org.apache.thrift.ProcessFunction { public sumKeyCriteriaTime() { super("sumKeyCriteriaTime"); } public sumKeyCriteriaTime_args getEmptyArgsInstance() { return new sumKeyCriteriaTime_args(); } protected boolean isOneway() { return false; } public sumKeyCriteriaTime_result getResult(I iface, sumKeyCriteriaTime_args args) throws org.apache.thrift.TException { sumKeyCriteriaTime_result result = new sumKeyCriteriaTime_result(); try { result.success = iface.sumKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class sumKeyCriteriaTimestr extends org.apache.thrift.ProcessFunction { public sumKeyCriteriaTimestr() { super("sumKeyCriteriaTimestr"); } public sumKeyCriteriaTimestr_args getEmptyArgsInstance() { return new sumKeyCriteriaTimestr_args(); } protected boolean isOneway() { return false; } public sumKeyCriteriaTimestr_result getResult(I iface, sumKeyCriteriaTimestr_args args) throws org.apache.thrift.TException { sumKeyCriteriaTimestr_result result = new sumKeyCriteriaTimestr_result(); try { result.success = iface.sumKeyCriteriaTimestr(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class sumKeyCcl extends org.apache.thrift.ProcessFunction { public sumKeyCcl() { super("sumKeyCcl"); } public sumKeyCcl_args getEmptyArgsInstance() { return new sumKeyCcl_args(); } protected boolean isOneway() { return false; } public sumKeyCcl_result getResult(I iface, sumKeyCcl_args args) throws org.apache.thrift.TException { sumKeyCcl_result result = new sumKeyCcl_result(); try { result.success = iface.sumKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class sumKeyCclTime extends org.apache.thrift.ProcessFunction { public sumKeyCclTime() { super("sumKeyCclTime"); } public sumKeyCclTime_args getEmptyArgsInstance() { return new sumKeyCclTime_args(); } protected boolean isOneway() { return false; } public sumKeyCclTime_result getResult(I iface, sumKeyCclTime_args args) throws org.apache.thrift.TException { sumKeyCclTime_result result = new sumKeyCclTime_result(); try { result.success = iface.sumKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class sumKeyCclTimestr extends org.apache.thrift.ProcessFunction { public sumKeyCclTimestr() { super("sumKeyCclTimestr"); } public sumKeyCclTimestr_args getEmptyArgsInstance() { return new sumKeyCclTimestr_args(); } protected boolean isOneway() { return false; } public sumKeyCclTimestr_result getResult(I iface, sumKeyCclTimestr_args args) throws org.apache.thrift.TException { sumKeyCclTimestr_result result = new sumKeyCclTimestr_result(); try { result.success = iface.sumKeyCclTimestr(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class averageKeyRecord extends org.apache.thrift.ProcessFunction { public averageKeyRecord() { super("averageKeyRecord"); } public averageKeyRecord_args getEmptyArgsInstance() { return new averageKeyRecord_args(); } protected boolean isOneway() { return false; } public averageKeyRecord_result getResult(I iface, averageKeyRecord_args args) throws org.apache.thrift.TException { averageKeyRecord_result result = new averageKeyRecord_result(); try { result.success = iface.averageKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class averageKeyRecordTime extends org.apache.thrift.ProcessFunction { public averageKeyRecordTime() { super("averageKeyRecordTime"); } public averageKeyRecordTime_args getEmptyArgsInstance() { return new averageKeyRecordTime_args(); } protected boolean isOneway() { return false; } public averageKeyRecordTime_result getResult(I iface, averageKeyRecordTime_args args) throws org.apache.thrift.TException { averageKeyRecordTime_result result = new averageKeyRecordTime_result(); try { result.success = iface.averageKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class averageKeyRecordTimestr extends org.apache.thrift.ProcessFunction { public averageKeyRecordTimestr() { super("averageKeyRecordTimestr"); } public averageKeyRecordTimestr_args getEmptyArgsInstance() { return new averageKeyRecordTimestr_args(); } protected boolean isOneway() { return false; } public averageKeyRecordTimestr_result getResult(I iface, averageKeyRecordTimestr_args args) throws org.apache.thrift.TException { averageKeyRecordTimestr_result result = new averageKeyRecordTimestr_result(); try { result.success = iface.averageKeyRecordTimestr(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class averageKeyRecords extends org.apache.thrift.ProcessFunction { public averageKeyRecords() { super("averageKeyRecords"); } public averageKeyRecords_args getEmptyArgsInstance() { return new averageKeyRecords_args(); } protected boolean isOneway() { return false; } public averageKeyRecords_result getResult(I iface, averageKeyRecords_args args) throws org.apache.thrift.TException { averageKeyRecords_result result = new averageKeyRecords_result(); try { result.success = iface.averageKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class averageKeyRecordsTime extends org.apache.thrift.ProcessFunction { public averageKeyRecordsTime() { super("averageKeyRecordsTime"); } public averageKeyRecordsTime_args getEmptyArgsInstance() { return new averageKeyRecordsTime_args(); } protected boolean isOneway() { return false; } public averageKeyRecordsTime_result getResult(I iface, averageKeyRecordsTime_args args) throws org.apache.thrift.TException { averageKeyRecordsTime_result result = new averageKeyRecordsTime_result(); try { result.success = iface.averageKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class averageKeyRecordsTimestr extends org.apache.thrift.ProcessFunction { public averageKeyRecordsTimestr() { super("averageKeyRecordsTimestr"); } public averageKeyRecordsTimestr_args getEmptyArgsInstance() { return new averageKeyRecordsTimestr_args(); } protected boolean isOneway() { return false; } public averageKeyRecordsTimestr_result getResult(I iface, averageKeyRecordsTimestr_args args) throws org.apache.thrift.TException { averageKeyRecordsTimestr_result result = new averageKeyRecordsTimestr_result(); try { result.success = iface.averageKeyRecordsTimestr(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class averageKey extends org.apache.thrift.ProcessFunction { public averageKey() { super("averageKey"); } public averageKey_args getEmptyArgsInstance() { return new averageKey_args(); } protected boolean isOneway() { return false; } public averageKey_result getResult(I iface, averageKey_args args) throws org.apache.thrift.TException { averageKey_result result = new averageKey_result(); try { result.success = iface.averageKey(args.key, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class averageKeyTime extends org.apache.thrift.ProcessFunction { public averageKeyTime() { super("averageKeyTime"); } public averageKeyTime_args getEmptyArgsInstance() { return new averageKeyTime_args(); } protected boolean isOneway() { return false; } public averageKeyTime_result getResult(I iface, averageKeyTime_args args) throws org.apache.thrift.TException { averageKeyTime_result result = new averageKeyTime_result(); try { result.success = iface.averageKeyTime(args.key, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class averageKeyTimestr extends org.apache.thrift.ProcessFunction { public averageKeyTimestr() { super("averageKeyTimestr"); } public averageKeyTimestr_args getEmptyArgsInstance() { return new averageKeyTimestr_args(); } protected boolean isOneway() { return false; } public averageKeyTimestr_result getResult(I iface, averageKeyTimestr_args args) throws org.apache.thrift.TException { averageKeyTimestr_result result = new averageKeyTimestr_result(); try { result.success = iface.averageKeyTimestr(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class averageKeyCriteria extends org.apache.thrift.ProcessFunction { public averageKeyCriteria() { super("averageKeyCriteria"); } public averageKeyCriteria_args getEmptyArgsInstance() { return new averageKeyCriteria_args(); } protected boolean isOneway() { return false; } public averageKeyCriteria_result getResult(I iface, averageKeyCriteria_args args) throws org.apache.thrift.TException { averageKeyCriteria_result result = new averageKeyCriteria_result(); try { result.success = iface.averageKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class averageKeyCriteriaTime extends org.apache.thrift.ProcessFunction { public averageKeyCriteriaTime() { super("averageKeyCriteriaTime"); } public averageKeyCriteriaTime_args getEmptyArgsInstance() { return new averageKeyCriteriaTime_args(); } protected boolean isOneway() { return false; } public averageKeyCriteriaTime_result getResult(I iface, averageKeyCriteriaTime_args args) throws org.apache.thrift.TException { averageKeyCriteriaTime_result result = new averageKeyCriteriaTime_result(); try { result.success = iface.averageKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class averageKeyCriteriaTimestr extends org.apache.thrift.ProcessFunction { public averageKeyCriteriaTimestr() { super("averageKeyCriteriaTimestr"); } public averageKeyCriteriaTimestr_args getEmptyArgsInstance() { return new averageKeyCriteriaTimestr_args(); } protected boolean isOneway() { return false; } public averageKeyCriteriaTimestr_result getResult(I iface, averageKeyCriteriaTimestr_args args) throws org.apache.thrift.TException { averageKeyCriteriaTimestr_result result = new averageKeyCriteriaTimestr_result(); try { result.success = iface.averageKeyCriteriaTimestr(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class averageKeyCcl extends org.apache.thrift.ProcessFunction { public averageKeyCcl() { super("averageKeyCcl"); } public averageKeyCcl_args getEmptyArgsInstance() { return new averageKeyCcl_args(); } protected boolean isOneway() { return false; } public averageKeyCcl_result getResult(I iface, averageKeyCcl_args args) throws org.apache.thrift.TException { averageKeyCcl_result result = new averageKeyCcl_result(); try { result.success = iface.averageKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class averageKeyCclTime extends org.apache.thrift.ProcessFunction { public averageKeyCclTime() { super("averageKeyCclTime"); } public averageKeyCclTime_args getEmptyArgsInstance() { return new averageKeyCclTime_args(); } protected boolean isOneway() { return false; } public averageKeyCclTime_result getResult(I iface, averageKeyCclTime_args args) throws org.apache.thrift.TException { averageKeyCclTime_result result = new averageKeyCclTime_result(); try { result.success = iface.averageKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class averageKeyCclTimestr extends org.apache.thrift.ProcessFunction { public averageKeyCclTimestr() { super("averageKeyCclTimestr"); } public averageKeyCclTimestr_args getEmptyArgsInstance() { return new averageKeyCclTimestr_args(); } protected boolean isOneway() { return false; } public averageKeyCclTimestr_result getResult(I iface, averageKeyCclTimestr_args args) throws org.apache.thrift.TException { averageKeyCclTimestr_result result = new averageKeyCclTimestr_result(); try { result.success = iface.averageKeyCclTimestr(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class countKeyRecord extends org.apache.thrift.ProcessFunction { public countKeyRecord() { super("countKeyRecord"); } public countKeyRecord_args getEmptyArgsInstance() { return new countKeyRecord_args(); } protected boolean isOneway() { return false; } public countKeyRecord_result getResult(I iface, countKeyRecord_args args) throws org.apache.thrift.TException { countKeyRecord_result result = new countKeyRecord_result(); try { result.success = iface.countKeyRecord(args.key, 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.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class countKeyRecordTime extends org.apache.thrift.ProcessFunction { public countKeyRecordTime() { super("countKeyRecordTime"); } public countKeyRecordTime_args getEmptyArgsInstance() { return new countKeyRecordTime_args(); } protected boolean isOneway() { return false; } public countKeyRecordTime_result getResult(I iface, countKeyRecordTime_args args) throws org.apache.thrift.TException { countKeyRecordTime_result result = new countKeyRecordTime_result(); try { result.success = iface.countKeyRecordTime(args.key, 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.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class countKeyRecordTimestr extends org.apache.thrift.ProcessFunction { public countKeyRecordTimestr() { super("countKeyRecordTimestr"); } public countKeyRecordTimestr_args getEmptyArgsInstance() { return new countKeyRecordTimestr_args(); } protected boolean isOneway() { return false; } public countKeyRecordTimestr_result getResult(I iface, countKeyRecordTimestr_args args) throws org.apache.thrift.TException { countKeyRecordTimestr_result result = new countKeyRecordTimestr_result(); try { result.success = iface.countKeyRecordTimestr(args.key, 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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class countKeyRecords extends org.apache.thrift.ProcessFunction { public countKeyRecords() { super("countKeyRecords"); } public countKeyRecords_args getEmptyArgsInstance() { return new countKeyRecords_args(); } protected boolean isOneway() { return false; } public countKeyRecords_result getResult(I iface, countKeyRecords_args args) throws org.apache.thrift.TException { countKeyRecords_result result = new countKeyRecords_result(); try { result.success = iface.countKeyRecords(args.key, args.records, 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.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class countKeyRecordsTime extends org.apache.thrift.ProcessFunction { public countKeyRecordsTime() { super("countKeyRecordsTime"); } public countKeyRecordsTime_args getEmptyArgsInstance() { return new countKeyRecordsTime_args(); } protected boolean isOneway() { return false; } public countKeyRecordsTime_result getResult(I iface, countKeyRecordsTime_args args) throws org.apache.thrift.TException { countKeyRecordsTime_result result = new countKeyRecordsTime_result(); try { result.success = iface.countKeyRecordsTime(args.key, args.records, 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.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class countKeyRecordsTimestr extends org.apache.thrift.ProcessFunction { public countKeyRecordsTimestr() { super("countKeyRecordsTimestr"); } public countKeyRecordsTimestr_args getEmptyArgsInstance() { return new countKeyRecordsTimestr_args(); } protected boolean isOneway() { return false; } public countKeyRecordsTimestr_result getResult(I iface, countKeyRecordsTimestr_args args) throws org.apache.thrift.TException { countKeyRecordsTimestr_result result = new countKeyRecordsTimestr_result(); try { result.success = iface.countKeyRecordsTimestr(args.key, args.records, 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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class countKey extends org.apache.thrift.ProcessFunction { public countKey() { super("countKey"); } public countKey_args getEmptyArgsInstance() { return new countKey_args(); } protected boolean isOneway() { return false; } public countKey_result getResult(I iface, countKey_args args) throws org.apache.thrift.TException { countKey_result result = new countKey_result(); try { result.success = iface.countKey(args.key, 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.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class countKeyTime extends org.apache.thrift.ProcessFunction { public countKeyTime() { super("countKeyTime"); } public countKeyTime_args getEmptyArgsInstance() { return new countKeyTime_args(); } protected boolean isOneway() { return false; } public countKeyTime_result getResult(I iface, countKeyTime_args args) throws org.apache.thrift.TException { countKeyTime_result result = new countKeyTime_result(); try { result.success = iface.countKeyTime(args.key, 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.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class countKeyTimestr extends org.apache.thrift.ProcessFunction { public countKeyTimestr() { super("countKeyTimestr"); } public countKeyTimestr_args getEmptyArgsInstance() { return new countKeyTimestr_args(); } protected boolean isOneway() { return false; } public countKeyTimestr_result getResult(I iface, countKeyTimestr_args args) throws org.apache.thrift.TException { countKeyTimestr_result result = new countKeyTimestr_result(); try { result.success = iface.countKeyTimestr(args.key, 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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class countKeyCriteria extends org.apache.thrift.ProcessFunction { public countKeyCriteria() { super("countKeyCriteria"); } public countKeyCriteria_args getEmptyArgsInstance() { return new countKeyCriteria_args(); } protected boolean isOneway() { return false; } public countKeyCriteria_result getResult(I iface, countKeyCriteria_args args) throws org.apache.thrift.TException { countKeyCriteria_result result = new countKeyCriteria_result(); try { result.success = iface.countKeyCriteria(args.key, args.criteria, 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.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class countKeyCriteriaTime extends org.apache.thrift.ProcessFunction { public countKeyCriteriaTime() { super("countKeyCriteriaTime"); } public countKeyCriteriaTime_args getEmptyArgsInstance() { return new countKeyCriteriaTime_args(); } protected boolean isOneway() { return false; } public countKeyCriteriaTime_result getResult(I iface, countKeyCriteriaTime_args args) throws org.apache.thrift.TException { countKeyCriteriaTime_result result = new countKeyCriteriaTime_result(); try { result.success = iface.countKeyCriteriaTime(args.key, args.criteria, 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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class countKeyCriteriaTimestr extends org.apache.thrift.ProcessFunction { public countKeyCriteriaTimestr() { super("countKeyCriteriaTimestr"); } public countKeyCriteriaTimestr_args getEmptyArgsInstance() { return new countKeyCriteriaTimestr_args(); } protected boolean isOneway() { return false; } public countKeyCriteriaTimestr_result getResult(I iface, countKeyCriteriaTimestr_args args) throws org.apache.thrift.TException { countKeyCriteriaTimestr_result result = new countKeyCriteriaTimestr_result(); try { result.success = iface.countKeyCriteriaTimestr(args.key, args.criteria, 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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class countKeyCcl extends org.apache.thrift.ProcessFunction { public countKeyCcl() { super("countKeyCcl"); } public countKeyCcl_args getEmptyArgsInstance() { return new countKeyCcl_args(); } protected boolean isOneway() { return false; } public countKeyCcl_result getResult(I iface, countKeyCcl_args args) throws org.apache.thrift.TException { countKeyCcl_result result = new countKeyCcl_result(); try { result.success = iface.countKeyCcl(args.key, args.ccl, 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.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class countKeyCclTime extends org.apache.thrift.ProcessFunction { public countKeyCclTime() { super("countKeyCclTime"); } public countKeyCclTime_args getEmptyArgsInstance() { return new countKeyCclTime_args(); } protected boolean isOneway() { return false; } public countKeyCclTime_result getResult(I iface, countKeyCclTime_args args) throws org.apache.thrift.TException { countKeyCclTime_result result = new countKeyCclTime_result(); try { result.success = iface.countKeyCclTime(args.key, args.ccl, 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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class countKeyCclTimestr extends org.apache.thrift.ProcessFunction { public countKeyCclTimestr() { super("countKeyCclTimestr"); } public countKeyCclTimestr_args getEmptyArgsInstance() { return new countKeyCclTimestr_args(); } protected boolean isOneway() { return false; } public countKeyCclTimestr_result getResult(I iface, countKeyCclTimestr_args args) throws org.apache.thrift.TException { countKeyCclTimestr_result result = new countKeyCclTimestr_result(); try { result.success = iface.countKeyCclTimestr(args.key, args.ccl, 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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class maxKeyRecord extends org.apache.thrift.ProcessFunction { public maxKeyRecord() { super("maxKeyRecord"); } public maxKeyRecord_args getEmptyArgsInstance() { return new maxKeyRecord_args(); } protected boolean isOneway() { return false; } public maxKeyRecord_result getResult(I iface, maxKeyRecord_args args) throws org.apache.thrift.TException { maxKeyRecord_result result = new maxKeyRecord_result(); try { result.success = iface.maxKeyRecord(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class maxKeyRecordTime extends org.apache.thrift.ProcessFunction { public maxKeyRecordTime() { super("maxKeyRecordTime"); } public maxKeyRecordTime_args getEmptyArgsInstance() { return new maxKeyRecordTime_args(); } protected boolean isOneway() { return false; } public maxKeyRecordTime_result getResult(I iface, maxKeyRecordTime_args args) throws org.apache.thrift.TException { maxKeyRecordTime_result result = new maxKeyRecordTime_result(); try { result.success = iface.maxKeyRecordTime(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.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class maxKeyRecordTimestr extends org.apache.thrift.ProcessFunction { public maxKeyRecordTimestr() { super("maxKeyRecordTimestr"); } public maxKeyRecordTimestr_args getEmptyArgsInstance() { return new maxKeyRecordTimestr_args(); } protected boolean isOneway() { return false; } public maxKeyRecordTimestr_result getResult(I iface, maxKeyRecordTimestr_args args) throws org.apache.thrift.TException { maxKeyRecordTimestr_result result = new maxKeyRecordTimestr_result(); try { result.success = iface.maxKeyRecordTimestr(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class maxKeyRecords extends org.apache.thrift.ProcessFunction { public maxKeyRecords() { super("maxKeyRecords"); } public maxKeyRecords_args getEmptyArgsInstance() { return new maxKeyRecords_args(); } protected boolean isOneway() { return false; } public maxKeyRecords_result getResult(I iface, maxKeyRecords_args args) throws org.apache.thrift.TException { maxKeyRecords_result result = new maxKeyRecords_result(); try { result.success = iface.maxKeyRecords(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class maxKeyRecordsTime extends org.apache.thrift.ProcessFunction { public maxKeyRecordsTime() { super("maxKeyRecordsTime"); } public maxKeyRecordsTime_args getEmptyArgsInstance() { return new maxKeyRecordsTime_args(); } protected boolean isOneway() { return false; } public maxKeyRecordsTime_result getResult(I iface, maxKeyRecordsTime_args args) throws org.apache.thrift.TException { maxKeyRecordsTime_result result = new maxKeyRecordsTime_result(); try { result.success = iface.maxKeyRecordsTime(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.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class maxKeyRecordsTimestr extends org.apache.thrift.ProcessFunction { public maxKeyRecordsTimestr() { super("maxKeyRecordsTimestr"); } public maxKeyRecordsTimestr_args getEmptyArgsInstance() { return new maxKeyRecordsTimestr_args(); } protected boolean isOneway() { return false; } public maxKeyRecordsTimestr_result getResult(I iface, maxKeyRecordsTimestr_args args) throws org.apache.thrift.TException { maxKeyRecordsTimestr_result result = new maxKeyRecordsTimestr_result(); try { result.success = iface.maxKeyRecordsTimestr(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class maxKeyCriteria extends org.apache.thrift.ProcessFunction { public maxKeyCriteria() { super("maxKeyCriteria"); } public maxKeyCriteria_args getEmptyArgsInstance() { return new maxKeyCriteria_args(); } protected boolean isOneway() { return false; } public maxKeyCriteria_result getResult(I iface, maxKeyCriteria_args args) throws org.apache.thrift.TException { maxKeyCriteria_result result = new maxKeyCriteria_result(); try { result.success = iface.maxKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class maxKeyCriteriaTime extends org.apache.thrift.ProcessFunction { public maxKeyCriteriaTime() { super("maxKeyCriteriaTime"); } public maxKeyCriteriaTime_args getEmptyArgsInstance() { return new maxKeyCriteriaTime_args(); } protected boolean isOneway() { return false; } public maxKeyCriteriaTime_result getResult(I iface, maxKeyCriteriaTime_args args) throws org.apache.thrift.TException { maxKeyCriteriaTime_result result = new maxKeyCriteriaTime_result(); try { result.success = iface.maxKeyCriteriaTime(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.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class maxKeyCriteriaTimestr extends org.apache.thrift.ProcessFunction { public maxKeyCriteriaTimestr() { super("maxKeyCriteriaTimestr"); } public maxKeyCriteriaTimestr_args getEmptyArgsInstance() { return new maxKeyCriteriaTimestr_args(); } protected boolean isOneway() { return false; } public maxKeyCriteriaTimestr_result getResult(I iface, maxKeyCriteriaTimestr_args args) throws org.apache.thrift.TException { maxKeyCriteriaTimestr_result result = new maxKeyCriteriaTimestr_result(); try { result.success = iface.maxKeyCriteriaTimestr(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class maxKeyCcl extends org.apache.thrift.ProcessFunction { public maxKeyCcl() { super("maxKeyCcl"); } public maxKeyCcl_args getEmptyArgsInstance() { return new maxKeyCcl_args(); } protected boolean isOneway() { return false; } public maxKeyCcl_result getResult(I iface, maxKeyCcl_args args) throws org.apache.thrift.TException { maxKeyCcl_result result = new maxKeyCcl_result(); try { result.success = iface.maxKeyCcl(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class maxKeyCclTime extends org.apache.thrift.ProcessFunction { public maxKeyCclTime() { super("maxKeyCclTime"); } public maxKeyCclTime_args getEmptyArgsInstance() { return new maxKeyCclTime_args(); } protected boolean isOneway() { return false; } public maxKeyCclTime_result getResult(I iface, maxKeyCclTime_args args) throws org.apache.thrift.TException { maxKeyCclTime_result result = new maxKeyCclTime_result(); try { result.success = iface.maxKeyCclTime(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class maxKeyCclTimestr extends org.apache.thrift.ProcessFunction { public maxKeyCclTimestr() { super("maxKeyCclTimestr"); } public maxKeyCclTimestr_args getEmptyArgsInstance() { return new maxKeyCclTimestr_args(); } protected boolean isOneway() { return false; } public maxKeyCclTimestr_result getResult(I iface, maxKeyCclTimestr_args args) throws org.apache.thrift.TException { maxKeyCclTimestr_result result = new maxKeyCclTimestr_result(); try { result.success = iface.maxKeyCclTimestr(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class maxKey extends org.apache.thrift.ProcessFunction { public maxKey() { super("maxKey"); } public maxKey_args getEmptyArgsInstance() { return new maxKey_args(); } protected boolean isOneway() { return false; } public maxKey_result getResult(I iface, maxKey_args args) throws org.apache.thrift.TException { maxKey_result result = new maxKey_result(); try { result.success = iface.maxKey(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class maxKeyTime extends org.apache.thrift.ProcessFunction { public maxKeyTime() { super("maxKeyTime"); } public maxKeyTime_args getEmptyArgsInstance() { return new maxKeyTime_args(); } protected boolean isOneway() { return false; } public maxKeyTime_result getResult(I iface, maxKeyTime_args args) throws org.apache.thrift.TException { maxKeyTime_result result = new maxKeyTime_result(); try { result.success = iface.maxKeyTime(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.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class maxKeyTimestr extends org.apache.thrift.ProcessFunction { public maxKeyTimestr() { super("maxKeyTimestr"); } public maxKeyTimestr_args getEmptyArgsInstance() { return new maxKeyTimestr_args(); } protected boolean isOneway() { return false; } public maxKeyTimestr_result getResult(I iface, maxKeyTimestr_args args) throws org.apache.thrift.TException { maxKeyTimestr_result result = new maxKeyTimestr_result(); try { result.success = iface.maxKeyTimestr(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class minKeyRecord extends org.apache.thrift.ProcessFunction { public minKeyRecord() { super("minKeyRecord"); } public minKeyRecord_args getEmptyArgsInstance() { return new minKeyRecord_args(); } protected boolean isOneway() { return false; } public minKeyRecord_result getResult(I iface, minKeyRecord_args args) throws org.apache.thrift.TException { minKeyRecord_result result = new minKeyRecord_result(); try { result.success = iface.minKeyRecord(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class minKeyRecordTime extends org.apache.thrift.ProcessFunction { public minKeyRecordTime() { super("minKeyRecordTime"); } public minKeyRecordTime_args getEmptyArgsInstance() { return new minKeyRecordTime_args(); } protected boolean isOneway() { return false; } public minKeyRecordTime_result getResult(I iface, minKeyRecordTime_args args) throws org.apache.thrift.TException { minKeyRecordTime_result result = new minKeyRecordTime_result(); try { result.success = iface.minKeyRecordTime(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.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class minKeyRecordTimestr extends org.apache.thrift.ProcessFunction { public minKeyRecordTimestr() { super("minKeyRecordTimestr"); } public minKeyRecordTimestr_args getEmptyArgsInstance() { return new minKeyRecordTimestr_args(); } protected boolean isOneway() { return false; } public minKeyRecordTimestr_result getResult(I iface, minKeyRecordTimestr_args args) throws org.apache.thrift.TException { minKeyRecordTimestr_result result = new minKeyRecordTimestr_result(); try { result.success = iface.minKeyRecordTimestr(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class minKey extends org.apache.thrift.ProcessFunction { public minKey() { super("minKey"); } public minKey_args getEmptyArgsInstance() { return new minKey_args(); } protected boolean isOneway() { return false; } public minKey_result getResult(I iface, minKey_args args) throws org.apache.thrift.TException { minKey_result result = new minKey_result(); try { result.success = iface.minKey(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class minKeyRecordsTime extends org.apache.thrift.ProcessFunction { public minKeyRecordsTime() { super("minKeyRecordsTime"); } public minKeyRecordsTime_args getEmptyArgsInstance() { return new minKeyRecordsTime_args(); } protected boolean isOneway() { return false; } public minKeyRecordsTime_result getResult(I iface, minKeyRecordsTime_args args) throws org.apache.thrift.TException { minKeyRecordsTime_result result = new minKeyRecordsTime_result(); try { result.success = iface.minKeyRecordsTime(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.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class minKeyRecordsTimestr extends org.apache.thrift.ProcessFunction { public minKeyRecordsTimestr() { super("minKeyRecordsTimestr"); } public minKeyRecordsTimestr_args getEmptyArgsInstance() { return new minKeyRecordsTimestr_args(); } protected boolean isOneway() { return false; } public minKeyRecordsTimestr_result getResult(I iface, minKeyRecordsTimestr_args args) throws org.apache.thrift.TException { minKeyRecordsTimestr_result result = new minKeyRecordsTimestr_result(); try { result.success = iface.minKeyRecordsTimestr(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class minKeyCriteria extends org.apache.thrift.ProcessFunction { public minKeyCriteria() { super("minKeyCriteria"); } public minKeyCriteria_args getEmptyArgsInstance() { return new minKeyCriteria_args(); } protected boolean isOneway() { return false; } public minKeyCriteria_result getResult(I iface, minKeyCriteria_args args) throws org.apache.thrift.TException { minKeyCriteria_result result = new minKeyCriteria_result(); try { result.success = iface.minKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class minKeyCriteriaTime extends org.apache.thrift.ProcessFunction { public minKeyCriteriaTime() { super("minKeyCriteriaTime"); } public minKeyCriteriaTime_args getEmptyArgsInstance() { return new minKeyCriteriaTime_args(); } protected boolean isOneway() { return false; } public minKeyCriteriaTime_result getResult(I iface, minKeyCriteriaTime_args args) throws org.apache.thrift.TException { minKeyCriteriaTime_result result = new minKeyCriteriaTime_result(); try { result.success = iface.minKeyCriteriaTime(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.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class minKeyCriteriaTimestr extends org.apache.thrift.ProcessFunction { public minKeyCriteriaTimestr() { super("minKeyCriteriaTimestr"); } public minKeyCriteriaTimestr_args getEmptyArgsInstance() { return new minKeyCriteriaTimestr_args(); } protected boolean isOneway() { return false; } public minKeyCriteriaTimestr_result getResult(I iface, minKeyCriteriaTimestr_args args) throws org.apache.thrift.TException { minKeyCriteriaTimestr_result result = new minKeyCriteriaTimestr_result(); try { result.success = iface.minKeyCriteriaTimestr(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class minKeyCcl extends org.apache.thrift.ProcessFunction { public minKeyCcl() { super("minKeyCcl"); } public minKeyCcl_args getEmptyArgsInstance() { return new minKeyCcl_args(); } protected boolean isOneway() { return false; } public minKeyCcl_result getResult(I iface, minKeyCcl_args args) throws org.apache.thrift.TException { minKeyCcl_result result = new minKeyCcl_result(); try { result.success = iface.minKeyCcl(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class minKeyCclTime extends org.apache.thrift.ProcessFunction { public minKeyCclTime() { super("minKeyCclTime"); } public minKeyCclTime_args getEmptyArgsInstance() { return new minKeyCclTime_args(); } protected boolean isOneway() { return false; } public minKeyCclTime_result getResult(I iface, minKeyCclTime_args args) throws org.apache.thrift.TException { minKeyCclTime_result result = new minKeyCclTime_result(); try { result.success = iface.minKeyCclTime(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class minKeyCclTimestr extends org.apache.thrift.ProcessFunction { public minKeyCclTimestr() { super("minKeyCclTimestr"); } public minKeyCclTimestr_args getEmptyArgsInstance() { return new minKeyCclTimestr_args(); } protected boolean isOneway() { return false; } public minKeyCclTimestr_result getResult(I iface, minKeyCclTimestr_args args) throws org.apache.thrift.TException { minKeyCclTimestr_result result = new minKeyCclTimestr_result(); try { result.success = iface.minKeyCclTimestr(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class minKeyTime extends org.apache.thrift.ProcessFunction { public minKeyTime() { super("minKeyTime"); } public minKeyTime_args getEmptyArgsInstance() { return new minKeyTime_args(); } protected boolean isOneway() { return false; } public minKeyTime_result getResult(I iface, minKeyTime_args args) throws org.apache.thrift.TException { minKeyTime_result result = new minKeyTime_result(); try { result.success = iface.minKeyTime(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.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class minKeyTimestr extends org.apache.thrift.ProcessFunction { public minKeyTimestr() { super("minKeyTimestr"); } public minKeyTimestr_args getEmptyArgsInstance() { return new minKeyTimestr_args(); } protected boolean isOneway() { return false; } public minKeyTimestr_result getResult(I iface, minKeyTimestr_args args) throws org.apache.thrift.TException { minKeyTimestr_result result = new minKeyTimestr_result(); try { result.success = iface.minKeyTimestr(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class minKeyRecords extends org.apache.thrift.ProcessFunction { public minKeyRecords() { super("minKeyRecords"); } public minKeyRecords_args getEmptyArgsInstance() { return new minKeyRecords_args(); } protected boolean isOneway() { return false; } public minKeyRecords_result getResult(I iface, minKeyRecords_args args) throws org.apache.thrift.TException { minKeyRecords_result result = new minKeyRecords_result(); try { result.success = iface.minKeyRecords(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; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class navigateKeyRecord extends org.apache.thrift.ProcessFunction { public navigateKeyRecord() { super("navigateKeyRecord"); } public navigateKeyRecord_args getEmptyArgsInstance() { return new navigateKeyRecord_args(); } protected boolean isOneway() { return false; } public navigateKeyRecord_result getResult(I iface, navigateKeyRecord_args args) throws org.apache.thrift.TException { navigateKeyRecord_result result = new navigateKeyRecord_result(); try { result.success = iface.navigateKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class navigateKeyRecordTime extends org.apache.thrift.ProcessFunction { public navigateKeyRecordTime() { super("navigateKeyRecordTime"); } public navigateKeyRecordTime_args getEmptyArgsInstance() { return new navigateKeyRecordTime_args(); } protected boolean isOneway() { return false; } public navigateKeyRecordTime_result getResult(I iface, navigateKeyRecordTime_args args) throws org.apache.thrift.TException { navigateKeyRecordTime_result result = new navigateKeyRecordTime_result(); try { result.success = iface.navigateKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class navigateKeyRecordTimestr extends org.apache.thrift.ProcessFunction { public navigateKeyRecordTimestr() { super("navigateKeyRecordTimestr"); } public navigateKeyRecordTimestr_args getEmptyArgsInstance() { return new navigateKeyRecordTimestr_args(); } protected boolean isOneway() { return false; } public navigateKeyRecordTimestr_result getResult(I iface, navigateKeyRecordTimestr_args args) throws org.apache.thrift.TException { navigateKeyRecordTimestr_result result = new navigateKeyRecordTimestr_result(); try { result.success = iface.navigateKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class navigateKeysRecord extends org.apache.thrift.ProcessFunction { public navigateKeysRecord() { super("navigateKeysRecord"); } public navigateKeysRecord_args getEmptyArgsInstance() { return new navigateKeysRecord_args(); } protected boolean isOneway() { return false; } public navigateKeysRecord_result getResult(I iface, navigateKeysRecord_args args) throws org.apache.thrift.TException { navigateKeysRecord_result result = new navigateKeysRecord_result(); try { result.success = iface.navigateKeysRecord(args.keys, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class navigateKeysRecordTime extends org.apache.thrift.ProcessFunction { public navigateKeysRecordTime() { super("navigateKeysRecordTime"); } public navigateKeysRecordTime_args getEmptyArgsInstance() { return new navigateKeysRecordTime_args(); } protected boolean isOneway() { return false; } public navigateKeysRecordTime_result getResult(I iface, navigateKeysRecordTime_args args) throws org.apache.thrift.TException { navigateKeysRecordTime_result result = new navigateKeysRecordTime_result(); try { result.success = iface.navigateKeysRecordTime(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class navigateKeysRecordTimestr extends org.apache.thrift.ProcessFunction { public navigateKeysRecordTimestr() { super("navigateKeysRecordTimestr"); } public navigateKeysRecordTimestr_args getEmptyArgsInstance() { return new navigateKeysRecordTimestr_args(); } protected boolean isOneway() { return false; } public navigateKeysRecordTimestr_result getResult(I iface, navigateKeysRecordTimestr_args args) throws org.apache.thrift.TException { navigateKeysRecordTimestr_result result = new navigateKeysRecordTimestr_result(); try { result.success = iface.navigateKeysRecordTimestr(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class navigateKeysRecords extends org.apache.thrift.ProcessFunction { public navigateKeysRecords() { super("navigateKeysRecords"); } public navigateKeysRecords_args getEmptyArgsInstance() { return new navigateKeysRecords_args(); } protected boolean isOneway() { return false; } public navigateKeysRecords_result getResult(I iface, navigateKeysRecords_args args) throws org.apache.thrift.TException { navigateKeysRecords_result result = new navigateKeysRecords_result(); try { result.success = iface.navigateKeysRecords(args.keys, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class navigateKeyRecords extends org.apache.thrift.ProcessFunction { public navigateKeyRecords() { super("navigateKeyRecords"); } public navigateKeyRecords_args getEmptyArgsInstance() { return new navigateKeyRecords_args(); } protected boolean isOneway() { return false; } public navigateKeyRecords_result getResult(I iface, navigateKeyRecords_args args) throws org.apache.thrift.TException { navigateKeyRecords_result result = new navigateKeyRecords_result(); try { result.success = iface.navigateKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class navigateKeyRecordsTime extends org.apache.thrift.ProcessFunction { public navigateKeyRecordsTime() { super("navigateKeyRecordsTime"); } public navigateKeyRecordsTime_args getEmptyArgsInstance() { return new navigateKeyRecordsTime_args(); } protected boolean isOneway() { return false; } public navigateKeyRecordsTime_result getResult(I iface, navigateKeyRecordsTime_args args) throws org.apache.thrift.TException { navigateKeyRecordsTime_result result = new navigateKeyRecordsTime_result(); try { result.success = iface.navigateKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class navigateKeyRecordsTimestr extends org.apache.thrift.ProcessFunction { public navigateKeyRecordsTimestr() { super("navigateKeyRecordsTimestr"); } public navigateKeyRecordsTimestr_args getEmptyArgsInstance() { return new navigateKeyRecordsTimestr_args(); } protected boolean isOneway() { return false; } public navigateKeyRecordsTimestr_result getResult(I iface, navigateKeyRecordsTimestr_args args) throws org.apache.thrift.TException { navigateKeyRecordsTimestr_result result = new navigateKeyRecordsTimestr_result(); try { result.success = iface.navigateKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class navigateKeysRecordsTime extends org.apache.thrift.ProcessFunction { public navigateKeysRecordsTime() { super("navigateKeysRecordsTime"); } public navigateKeysRecordsTime_args getEmptyArgsInstance() { return new navigateKeysRecordsTime_args(); } protected boolean isOneway() { return false; } public navigateKeysRecordsTime_result getResult(I iface, navigateKeysRecordsTime_args args) throws org.apache.thrift.TException { navigateKeysRecordsTime_result result = new navigateKeysRecordsTime_result(); try { result.success = iface.navigateKeysRecordsTime(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class navigateKeysRecordsTimestr extends org.apache.thrift.ProcessFunction { public navigateKeysRecordsTimestr() { super("navigateKeysRecordsTimestr"); } public navigateKeysRecordsTimestr_args getEmptyArgsInstance() { return new navigateKeysRecordsTimestr_args(); } protected boolean isOneway() { return false; } public navigateKeysRecordsTimestr_result getResult(I iface, navigateKeysRecordsTimestr_args args) throws org.apache.thrift.TException { navigateKeysRecordsTimestr_result result = new navigateKeysRecordsTimestr_result(); try { result.success = iface.navigateKeysRecordsTimestr(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class navigateKeyCcl extends org.apache.thrift.ProcessFunction { public navigateKeyCcl() { super("navigateKeyCcl"); } public navigateKeyCcl_args getEmptyArgsInstance() { return new navigateKeyCcl_args(); } protected boolean isOneway() { return false; } public navigateKeyCcl_result getResult(I iface, navigateKeyCcl_args args) throws org.apache.thrift.TException { navigateKeyCcl_result result = new navigateKeyCcl_result(); try { result.success = iface.navigateKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class navigateKeyCclTime extends org.apache.thrift.ProcessFunction { public navigateKeyCclTime() { super("navigateKeyCclTime"); } public navigateKeyCclTime_args getEmptyArgsInstance() { return new navigateKeyCclTime_args(); } protected boolean isOneway() { return false; } public navigateKeyCclTime_result getResult(I iface, navigateKeyCclTime_args args) throws org.apache.thrift.TException { navigateKeyCclTime_result result = new navigateKeyCclTime_result(); try { result.success = iface.navigateKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class navigateKeyCclTimestr extends org.apache.thrift.ProcessFunction { public navigateKeyCclTimestr() { super("navigateKeyCclTimestr"); } public navigateKeyCclTimestr_args getEmptyArgsInstance() { return new navigateKeyCclTimestr_args(); } protected boolean isOneway() { return false; } public navigateKeyCclTimestr_result getResult(I iface, navigateKeyCclTimestr_args args) throws org.apache.thrift.TException { navigateKeyCclTimestr_result result = new navigateKeyCclTimestr_result(); try { result.success = iface.navigateKeyCclTimestr(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class navigateKeysCcl extends org.apache.thrift.ProcessFunction { public navigateKeysCcl() { super("navigateKeysCcl"); } public navigateKeysCcl_args getEmptyArgsInstance() { return new navigateKeysCcl_args(); } protected boolean isOneway() { return false; } public navigateKeysCcl_result getResult(I iface, navigateKeysCcl_args args) throws org.apache.thrift.TException { navigateKeysCcl_result result = new navigateKeysCcl_result(); try { result.success = iface.navigateKeysCcl(args.keys, args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class navigateKeysCclTime extends org.apache.thrift.ProcessFunction { public navigateKeysCclTime() { super("navigateKeysCclTime"); } public navigateKeysCclTime_args getEmptyArgsInstance() { return new navigateKeysCclTime_args(); } protected boolean isOneway() { return false; } public navigateKeysCclTime_result getResult(I iface, navigateKeysCclTime_args args) throws org.apache.thrift.TException { navigateKeysCclTime_result result = new navigateKeysCclTime_result(); try { result.success = iface.navigateKeysCclTime(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class navigateKeysCclTimestr extends org.apache.thrift.ProcessFunction { public navigateKeysCclTimestr() { super("navigateKeysCclTimestr"); } public navigateKeysCclTimestr_args getEmptyArgsInstance() { return new navigateKeysCclTimestr_args(); } protected boolean isOneway() { return false; } public navigateKeysCclTimestr_result getResult(I iface, navigateKeysCclTimestr_args args) throws org.apache.thrift.TException { navigateKeysCclTimestr_result result = new navigateKeysCclTimestr_result(); try { result.success = iface.navigateKeysCclTimestr(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class navigateKeyCriteria extends org.apache.thrift.ProcessFunction { public navigateKeyCriteria() { super("navigateKeyCriteria"); } public navigateKeyCriteria_args getEmptyArgsInstance() { return new navigateKeyCriteria_args(); } protected boolean isOneway() { return false; } public navigateKeyCriteria_result getResult(I iface, navigateKeyCriteria_args args) throws org.apache.thrift.TException { navigateKeyCriteria_result result = new navigateKeyCriteria_result(); try { result.success = iface.navigateKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class navigateKeyCriteriaTime extends org.apache.thrift.ProcessFunction { public navigateKeyCriteriaTime() { super("navigateKeyCriteriaTime"); } public navigateKeyCriteriaTime_args getEmptyArgsInstance() { return new navigateKeyCriteriaTime_args(); } protected boolean isOneway() { return false; } public navigateKeyCriteriaTime_result getResult(I iface, navigateKeyCriteriaTime_args args) throws org.apache.thrift.TException { navigateKeyCriteriaTime_result result = new navigateKeyCriteriaTime_result(); try { result.success = iface.navigateKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class navigateKeyCriteriaTimestr extends org.apache.thrift.ProcessFunction { public navigateKeyCriteriaTimestr() { super("navigateKeyCriteriaTimestr"); } public navigateKeyCriteriaTimestr_args getEmptyArgsInstance() { return new navigateKeyCriteriaTimestr_args(); } protected boolean isOneway() { return false; } public navigateKeyCriteriaTimestr_result getResult(I iface, navigateKeyCriteriaTimestr_args args) throws org.apache.thrift.TException { navigateKeyCriteriaTimestr_result result = new navigateKeyCriteriaTimestr_result(); try { result.success = iface.navigateKeyCriteriaTimestr(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class navigateKeysCriteria extends org.apache.thrift.ProcessFunction { public navigateKeysCriteria() { super("navigateKeysCriteria"); } public navigateKeysCriteria_args getEmptyArgsInstance() { return new navigateKeysCriteria_args(); } protected boolean isOneway() { return false; } public navigateKeysCriteria_result getResult(I iface, navigateKeysCriteria_args args) throws org.apache.thrift.TException { navigateKeysCriteria_result result = new navigateKeysCriteria_result(); try { result.success = iface.navigateKeysCriteria(args.keys, args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class navigateKeysCriteriaTime extends org.apache.thrift.ProcessFunction { public navigateKeysCriteriaTime() { super("navigateKeysCriteriaTime"); } public navigateKeysCriteriaTime_args getEmptyArgsInstance() { return new navigateKeysCriteriaTime_args(); } protected boolean isOneway() { return false; } public navigateKeysCriteriaTime_result getResult(I iface, navigateKeysCriteriaTime_args args) throws org.apache.thrift.TException { navigateKeysCriteriaTime_result result = new navigateKeysCriteriaTime_result(); try { result.success = iface.navigateKeysCriteriaTime(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class navigateKeysCriteriaTimestr extends org.apache.thrift.ProcessFunction { public navigateKeysCriteriaTimestr() { super("navigateKeysCriteriaTimestr"); } public navigateKeysCriteriaTimestr_args getEmptyArgsInstance() { return new navigateKeysCriteriaTimestr_args(); } protected boolean isOneway() { return false; } public navigateKeysCriteriaTimestr_result getResult(I iface, navigateKeysCriteriaTimestr_args args) throws org.apache.thrift.TException { navigateKeysCriteriaTimestr_result result = new navigateKeysCriteriaTimestr_result(); try { result.success = iface.navigateKeysCriteriaTimestr( args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class getServerEnvironment extends org.apache.thrift.ProcessFunction { public getServerEnvironment() { super("getServerEnvironment"); } public getServerEnvironment_args getEmptyArgsInstance() { return new getServerEnvironment_args(); } protected boolean isOneway() { return false; } public getServerEnvironment_result getResult(I iface, getServerEnvironment_args args) throws org.apache.thrift.TException { getServerEnvironment_result result = new getServerEnvironment_result(); try { result.success = iface.getServerEnvironment(args.creds, args.token, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class getServerVersion extends org.apache.thrift.ProcessFunction { public getServerVersion() { super("getServerVersion"); } public getServerVersion_args getEmptyArgsInstance() { return new getServerVersion_args(); } protected boolean isOneway() { return false; } public getServerVersion_result getResult(I iface, getServerVersion_args args) throws org.apache.thrift.TException { getServerVersion_result result = new getServerVersion_result(); try { result.success = iface.getServerVersion(); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class time extends org.apache.thrift.ProcessFunction { public time() { super("time"); } public time_args getEmptyArgsInstance() { return new time_args(); } protected boolean isOneway() { return false; } public time_result getResult(I iface, time_args args) throws org.apache.thrift.TException { time_result result = new time_result(); try { result.success = iface.time(args.creds, args.token, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.PermissionException ex3) { result.ex3 = ex3; } return result; } } public static class timePhrase extends org.apache.thrift.ProcessFunction { public timePhrase() { super("timePhrase"); } public timePhrase_args getEmptyArgsInstance() { return new timePhrase_args(); } protected boolean isOneway() { return false; } public timePhrase_result getResult(I iface, timePhrase_args args) throws org.apache.thrift.TException { timePhrase_result result = new timePhrase_result(); try { result.success = iface.timePhrase(args.phrase, args.creds, args.token, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.PermissionException ex4) { result.ex4 = ex4; } return result; } } public static class invokeManagement extends org.apache.thrift.ProcessFunction { public invokeManagement() { super("invokeManagement"); } public invokeManagement_args getEmptyArgsInstance() { return new invokeManagement_args(); } protected boolean isOneway() { return false; } public invokeManagement_result getResult(I iface, invokeManagement_args args) throws org.apache.thrift.TException { invokeManagement_result result = new invokeManagement_result(); try { result.success = iface.invokeManagement(args.method, args.params, args.creds); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.ManagementException ex2) { result.ex2 = ex2; } return result; } } } public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { private static final Logger LOGGER = LoggerFactory .getLogger(AsyncProcessor.class.getName()); public AsyncProcessor(I iface) { super(iface, getProcessMap( new LinkedHashMap>())); } protected AsyncProcessor(I iface, Map> processMap) { super(iface, getProcessMap(processMap)); } private static Map> getProcessMap( Map> processMap) { processMap.put("abort", new abort()); processMap.put("addKeyValue", new addKeyValue()); processMap.put("addKeyValueRecord", new addKeyValueRecord()); processMap.put("addKeyValueRecords", new addKeyValueRecords()); processMap.put("auditRecord", new auditRecord()); processMap.put("auditRecordStart", new auditRecordStart()); processMap.put("auditRecordStartstr", new auditRecordStartstr()); processMap.put("auditRecordStartEnd", new auditRecordStartEnd()); processMap.put("auditRecordStartstrEndstr", new auditRecordStartstrEndstr()); processMap.put("auditKeyRecord", new auditKeyRecord()); processMap.put("auditKeyRecordStart", new auditKeyRecordStart()); processMap.put("auditKeyRecordStartstr", new auditKeyRecordStartstr()); processMap.put("auditKeyRecordStartEnd", new auditKeyRecordStartEnd()); processMap.put("auditKeyRecordStartstrEndstr", new auditKeyRecordStartstrEndstr()); processMap.put("browseKey", new browseKey()); processMap.put("browseKeys", new browseKeys()); processMap.put("browseKeyTime", new browseKeyTime()); processMap.put("browseKeyTimestr", new browseKeyTimestr()); processMap.put("browseKeysTime", new browseKeysTime()); processMap.put("browseKeysTimestr", new browseKeysTimestr()); processMap.put("chronologizeKeyRecord", new chronologizeKeyRecord()); processMap.put("chronologizeKeyRecordStart", new chronologizeKeyRecordStart()); processMap.put("chronologizeKeyRecordStartstr", new chronologizeKeyRecordStartstr()); processMap.put("chronologizeKeyRecordStartEnd", new chronologizeKeyRecordStartEnd()); processMap.put("chronologizeKeyRecordStartstrEndstr", new chronologizeKeyRecordStartstrEndstr()); processMap.put("clearRecord", new clearRecord()); processMap.put("clearRecords", new clearRecords()); processMap.put("clearKeyRecord", new clearKeyRecord()); processMap.put("clearKeysRecord", new clearKeysRecord()); processMap.put("clearKeyRecords", new clearKeyRecords()); processMap.put("clearKeysRecords", new clearKeysRecords()); processMap.put("commit", new commit()); processMap.put("describe", new describe()); processMap.put("describeTime", new describeTime()); processMap.put("describeTimestr", new describeTimestr()); processMap.put("describeRecord", new describeRecord()); processMap.put("describeRecordTime", new describeRecordTime()); processMap.put("describeRecordTimestr", new describeRecordTimestr()); processMap.put("describeRecords", new describeRecords()); processMap.put("describeRecordsTime", new describeRecordsTime()); processMap.put("describeRecordsTimestr", new describeRecordsTimestr()); processMap.put("diffRecordStart", new diffRecordStart()); processMap.put("diffRecordStartstr", new diffRecordStartstr()); processMap.put("diffRecordStartEnd", new diffRecordStartEnd()); processMap.put("diffRecordStartstrEndstr", new diffRecordStartstrEndstr()); processMap.put("diffKeyRecordStart", new diffKeyRecordStart()); processMap.put("diffKeyRecordStartstr", new diffKeyRecordStartstr()); processMap.put("diffKeyRecordStartEnd", new diffKeyRecordStartEnd()); processMap.put("diffKeyRecordStartstrEndstr", new diffKeyRecordStartstrEndstr()); processMap.put("diffKeyStart", new diffKeyStart()); processMap.put("diffKeyStartstr", new diffKeyStartstr()); processMap.put("diffKeyStartEnd", new diffKeyStartEnd()); processMap.put("diffKeyStartstrEndstr", new diffKeyStartstrEndstr()); processMap.put("invokePlugin", new invokePlugin()); processMap.put("login", new login()); processMap.put("logout", new logout()); processMap.put("stage", new stage()); processMap.put("insertJson", new insertJson()); processMap.put("insertJsonRecord", new insertJsonRecord()); processMap.put("insertJsonRecords", new insertJsonRecords()); processMap.put("removeKeyValueRecord", new removeKeyValueRecord()); processMap.put("removeKeyValueRecords", new removeKeyValueRecords()); processMap.put("setKeyValueRecord", new setKeyValueRecord()); processMap.put("setKeyValue", new setKeyValue()); processMap.put("setKeyValueRecords", new setKeyValueRecords()); processMap.put("reconcileKeyRecordValues", new reconcileKeyRecordValues()); processMap.put("inventory", new inventory()); processMap.put("selectRecord", new selectRecord()); processMap.put("selectRecords", new selectRecords()); processMap.put("selectRecordTime", new selectRecordTime()); processMap.put("selectRecordTimestr", new selectRecordTimestr()); processMap.put("selectRecordsTime", new selectRecordsTime()); processMap.put("selectRecordsTimestr", new selectRecordsTimestr()); processMap.put("selectKeyRecord", new selectKeyRecord()); processMap.put("selectKeyRecordTime", new selectKeyRecordTime()); processMap.put("selectKeyRecordTimestr", new selectKeyRecordTimestr()); processMap.put("selectKeysRecord", new selectKeysRecord()); processMap.put("selectKeysRecordTime", new selectKeysRecordTime()); processMap.put("selectKeysRecordTimestr", new selectKeysRecordTimestr()); processMap.put("selectKeysRecords", new selectKeysRecords()); processMap.put("selectKeyRecords", new selectKeyRecords()); processMap.put("selectKeyRecordsTime", new selectKeyRecordsTime()); processMap.put("selectKeyRecordsTimestr", new selectKeyRecordsTimestr()); processMap.put("selectKeysRecordsTime", new selectKeysRecordsTime()); processMap.put("selectKeysRecordsTimestr", new selectKeysRecordsTimestr()); processMap.put("selectCriteria", new selectCriteria()); processMap.put("selectCcl", new selectCcl()); processMap.put("selectCriteriaTime", new selectCriteriaTime()); processMap.put("selectCriteriaTimestr", new selectCriteriaTimestr()); processMap.put("selectCclTime", new selectCclTime()); processMap.put("selectCclTimestr", new selectCclTimestr()); processMap.put("selectKeyCriteria", new selectKeyCriteria()); processMap.put("selectKeyCcl", new selectKeyCcl()); processMap.put("selectKeyCriteriaTime", new selectKeyCriteriaTime()); processMap.put("selectKeyCriteriaTimestr", new selectKeyCriteriaTimestr()); processMap.put("selectKeyCclTime", new selectKeyCclTime()); processMap.put("selectKeyCclTimestr", new selectKeyCclTimestr()); processMap.put("selectKeysCriteria", new selectKeysCriteria()); processMap.put("selectKeysCcl", new selectKeysCcl()); processMap.put("selectKeysCriteriaTime", new selectKeysCriteriaTime()); processMap.put("selectKeysCriteriaTimestr", new selectKeysCriteriaTimestr()); processMap.put("selectKeysCclTime", new selectKeysCclTime()); processMap.put("selectKeysCclTimestr", new selectKeysCclTimestr()); processMap.put("getKeyRecord", new getKeyRecord()); processMap.put("getKeyRecordTime", new getKeyRecordTime()); processMap.put("getKeyRecordTimestr", new getKeyRecordTimestr()); processMap.put("getKeysRecord", new getKeysRecord()); processMap.put("getKeysRecordTime", new getKeysRecordTime()); processMap.put("getKeysRecordTimestr", new getKeysRecordTimestr()); processMap.put("getKeysRecords", new getKeysRecords()); processMap.put("getKeyRecords", new getKeyRecords()); processMap.put("getKeyRecordsTime", new getKeyRecordsTime()); processMap.put("getKeyRecordsTimestr", new getKeyRecordsTimestr()); processMap.put("getKeysRecordsTime", new getKeysRecordsTime()); processMap.put("getKeysRecordsTimestr", new getKeysRecordsTimestr()); processMap.put("getKeyCriteria", new getKeyCriteria()); processMap.put("getCriteria", new getCriteria()); processMap.put("getCcl", new getCcl()); processMap.put("getCriteriaTime", new getCriteriaTime()); processMap.put("getCriteriaTimestr", new getCriteriaTimestr()); processMap.put("getCclTime", new getCclTime()); processMap.put("getCclTimestr", new getCclTimestr()); processMap.put("getKeyCcl", new getKeyCcl()); processMap.put("getKeyCriteriaTime", new getKeyCriteriaTime()); processMap.put("getKeyCriteriaTimestr", new getKeyCriteriaTimestr()); processMap.put("getKeyCclTime", new getKeyCclTime()); processMap.put("getKeyCclTimestr", new getKeyCclTimestr()); processMap.put("getKeysCriteria", new getKeysCriteria()); processMap.put("getKeysCcl", new getKeysCcl()); processMap.put("getKeysCriteriaTime", new getKeysCriteriaTime()); processMap.put("getKeysCriteriaTimestr", new getKeysCriteriaTimestr()); processMap.put("getKeysCclTime", new getKeysCclTime()); processMap.put("getKeysCclTimestr", new getKeysCclTimestr()); processMap.put("verifyKeyValueRecord", new verifyKeyValueRecord()); processMap.put("verifyKeyValueRecordTime", new verifyKeyValueRecordTime()); processMap.put("verifyKeyValueRecordTimestr", new verifyKeyValueRecordTimestr()); processMap.put("jsonifyRecords", new jsonifyRecords()); processMap.put("jsonifyRecordsTime", new jsonifyRecordsTime()); processMap.put("jsonifyRecordsTimestr", new jsonifyRecordsTimestr()); processMap.put("findCriteria", new findCriteria()); processMap.put("findCcl", new findCcl()); processMap.put("findKeyOperatorValues", new findKeyOperatorValues()); processMap.put("findKeyOperatorValuesTime", new findKeyOperatorValuesTime()); processMap.put("findKeyOperatorValuesTimestr", new findKeyOperatorValuesTimestr()); processMap.put("findKeyOperatorstrValues", new findKeyOperatorstrValues()); processMap.put("findKeyOperatorstrValuesTime", new findKeyOperatorstrValuesTime()); processMap.put("findKeyOperatorstrValuesTimestr", new findKeyOperatorstrValuesTimestr()); processMap.put("search", new search()); processMap.put("revertKeysRecordsTime", new revertKeysRecordsTime()); processMap.put("revertKeysRecordsTimestr", new revertKeysRecordsTimestr()); processMap.put("revertKeysRecordTime", new revertKeysRecordTime()); processMap.put("revertKeysRecordTimestr", new revertKeysRecordTimestr()); processMap.put("revertKeyRecordsTime", new revertKeyRecordsTime()); processMap.put("revertKeyRecordsTimestr", new revertKeyRecordsTimestr()); processMap.put("revertKeyRecordTime", new revertKeyRecordTime()); processMap.put("revertKeyRecordTimestr", new revertKeyRecordTimestr()); processMap.put("pingRecords", new pingRecords()); processMap.put("pingRecord", new pingRecord()); processMap.put("verifyAndSwap", new verifyAndSwap()); processMap.put("verifyOrSet", new verifyOrSet()); processMap.put("findOrAddKeyValue", new findOrAddKeyValue()); processMap.put("findOrInsertCriteriaJson", new findOrInsertCriteriaJson()); processMap.put("findOrInsertCclJson", new findOrInsertCclJson()); processMap.put("sumKeyRecord", new sumKeyRecord()); processMap.put("sumKeyRecordTime", new sumKeyRecordTime()); processMap.put("sumKeyRecordTimestr", new sumKeyRecordTimestr()); processMap.put("sumKeyRecords", new sumKeyRecords()); processMap.put("sumKeyRecordsTime", new sumKeyRecordsTime()); processMap.put("sumKeyRecordsTimestr", new sumKeyRecordsTimestr()); processMap.put("sumKey", new sumKey()); processMap.put("sumKeyTime", new sumKeyTime()); processMap.put("sumKeyTimestr", new sumKeyTimestr()); processMap.put("sumKeyCriteria", new sumKeyCriteria()); processMap.put("sumKeyCriteriaTime", new sumKeyCriteriaTime()); processMap.put("sumKeyCriteriaTimestr", new sumKeyCriteriaTimestr()); processMap.put("sumKeyCcl", new sumKeyCcl()); processMap.put("sumKeyCclTime", new sumKeyCclTime()); processMap.put("sumKeyCclTimestr", new sumKeyCclTimestr()); processMap.put("averageKeyRecord", new averageKeyRecord()); processMap.put("averageKeyRecordTime", new averageKeyRecordTime()); processMap.put("averageKeyRecordTimestr", new averageKeyRecordTimestr()); processMap.put("averageKeyRecords", new averageKeyRecords()); processMap.put("averageKeyRecordsTime", new averageKeyRecordsTime()); processMap.put("averageKeyRecordsTimestr", new averageKeyRecordsTimestr()); processMap.put("averageKey", new averageKey()); processMap.put("averageKeyTime", new averageKeyTime()); processMap.put("averageKeyTimestr", new averageKeyTimestr()); processMap.put("averageKeyCriteria", new averageKeyCriteria()); processMap.put("averageKeyCriteriaTime", new averageKeyCriteriaTime()); processMap.put("averageKeyCriteriaTimestr", new averageKeyCriteriaTimestr()); processMap.put("averageKeyCcl", new averageKeyCcl()); processMap.put("averageKeyCclTime", new averageKeyCclTime()); processMap.put("averageKeyCclTimestr", new averageKeyCclTimestr()); processMap.put("countKeyRecord", new countKeyRecord()); processMap.put("countKeyRecordTime", new countKeyRecordTime()); processMap.put("countKeyRecordTimestr", new countKeyRecordTimestr()); processMap.put("countKeyRecords", new countKeyRecords()); processMap.put("countKeyRecordsTime", new countKeyRecordsTime()); processMap.put("countKeyRecordsTimestr", new countKeyRecordsTimestr()); processMap.put("countKey", new countKey()); processMap.put("countKeyTime", new countKeyTime()); processMap.put("countKeyTimestr", new countKeyTimestr()); processMap.put("countKeyCriteria", new countKeyCriteria()); processMap.put("countKeyCriteriaTime", new countKeyCriteriaTime()); processMap.put("countKeyCriteriaTimestr", new countKeyCriteriaTimestr()); processMap.put("countKeyCcl", new countKeyCcl()); processMap.put("countKeyCclTime", new countKeyCclTime()); processMap.put("countKeyCclTimestr", new countKeyCclTimestr()); processMap.put("maxKeyRecord", new maxKeyRecord()); processMap.put("maxKeyRecordTime", new maxKeyRecordTime()); processMap.put("maxKeyRecordTimestr", new maxKeyRecordTimestr()); processMap.put("maxKeyRecords", new maxKeyRecords()); processMap.put("maxKeyRecordsTime", new maxKeyRecordsTime()); processMap.put("maxKeyRecordsTimestr", new maxKeyRecordsTimestr()); processMap.put("maxKeyCriteria", new maxKeyCriteria()); processMap.put("maxKeyCriteriaTime", new maxKeyCriteriaTime()); processMap.put("maxKeyCriteriaTimestr", new maxKeyCriteriaTimestr()); processMap.put("maxKeyCcl", new maxKeyCcl()); processMap.put("maxKeyCclTime", new maxKeyCclTime()); processMap.put("maxKeyCclTimestr", new maxKeyCclTimestr()); processMap.put("maxKey", new maxKey()); processMap.put("maxKeyTime", new maxKeyTime()); processMap.put("maxKeyTimestr", new maxKeyTimestr()); processMap.put("minKeyRecord", new minKeyRecord()); processMap.put("minKeyRecordTime", new minKeyRecordTime()); processMap.put("minKeyRecordTimestr", new minKeyRecordTimestr()); processMap.put("minKey", new minKey()); processMap.put("minKeyRecordsTime", new minKeyRecordsTime()); processMap.put("minKeyRecordsTimestr", new minKeyRecordsTimestr()); processMap.put("minKeyCriteria", new minKeyCriteria()); processMap.put("minKeyCriteriaTime", new minKeyCriteriaTime()); processMap.put("minKeyCriteriaTimestr", new minKeyCriteriaTimestr()); processMap.put("minKeyCcl", new minKeyCcl()); processMap.put("minKeyCclTime", new minKeyCclTime()); processMap.put("minKeyCclTimestr", new minKeyCclTimestr()); processMap.put("minKeyTime", new minKeyTime()); processMap.put("minKeyTimestr", new minKeyTimestr()); processMap.put("minKeyRecords", new minKeyRecords()); processMap.put("navigateKeyRecord", new navigateKeyRecord()); processMap.put("navigateKeyRecordTime", new navigateKeyRecordTime()); processMap.put("navigateKeyRecordTimestr", new navigateKeyRecordTimestr()); processMap.put("navigateKeysRecord", new navigateKeysRecord()); processMap.put("navigateKeysRecordTime", new navigateKeysRecordTime()); processMap.put("navigateKeysRecordTimestr", new navigateKeysRecordTimestr()); processMap.put("navigateKeysRecords", new navigateKeysRecords()); processMap.put("navigateKeyRecords", new navigateKeyRecords()); processMap.put("navigateKeyRecordsTime", new navigateKeyRecordsTime()); processMap.put("navigateKeyRecordsTimestr", new navigateKeyRecordsTimestr()); processMap.put("navigateKeysRecordsTime", new navigateKeysRecordsTime()); processMap.put("navigateKeysRecordsTimestr", new navigateKeysRecordsTimestr()); processMap.put("navigateKeyCcl", new navigateKeyCcl()); processMap.put("navigateKeyCclTime", new navigateKeyCclTime()); processMap.put("navigateKeyCclTimestr", new navigateKeyCclTimestr()); processMap.put("navigateKeysCcl", new navigateKeysCcl()); processMap.put("navigateKeysCclTime", new navigateKeysCclTime()); processMap.put("navigateKeysCclTimestr", new navigateKeysCclTimestr()); processMap.put("navigateKeyCriteria", new navigateKeyCriteria()); processMap.put("navigateKeyCriteriaTime", new navigateKeyCriteriaTime()); processMap.put("navigateKeyCriteriaTimestr", new navigateKeyCriteriaTimestr()); processMap.put("navigateKeysCriteria", new navigateKeysCriteria()); processMap.put("navigateKeysCriteriaTime", new navigateKeysCriteriaTime()); processMap.put("navigateKeysCriteriaTimestr", new navigateKeysCriteriaTimestr()); processMap.put("getServerEnvironment", new getServerEnvironment()); processMap.put("getServerVersion", new getServerVersion()); processMap.put("time", new time()); processMap.put("timePhrase", new timePhrase()); processMap.put("invokeManagement", new invokeManagement()); return processMap; } public static class abort extends org.apache.thrift.AsyncProcessFunction { public abort() { super("abort"); } public abort_args getEmptyArgsInstance() { return new abort_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { abort_result result = new abort_result(); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; abort_result result = new abort_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase) new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb, msg, msgType, seqid); return; } catch (Exception ex) { LOGGER.error( "Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, abort_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.abort(args.creds, args.transaction, args.environment, resultHandler); } } public static class addKeyValue extends org.apache.thrift.AsyncProcessFunction { public addKeyValue() { super("addKeyValue"); } public addKeyValue_args getEmptyArgsInstance() { return new addKeyValue_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { addKeyValue_result result = new addKeyValue_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; addKeyValue_result result = new addKeyValue_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, addKeyValue_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.addKeyValue(args.key, args.value, args.creds, args.transaction, args.environment, resultHandler); } } public static class addKeyValueRecord extends org.apache.thrift.AsyncProcessFunction { public addKeyValueRecord() { super("addKeyValueRecord"); } public addKeyValueRecord_args getEmptyArgsInstance() { return new addKeyValueRecord_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { addKeyValueRecord_result result = new addKeyValueRecord_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; addKeyValueRecord_result result = new addKeyValueRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, addKeyValueRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.addKeyValueRecord(args.key, args.value, args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class addKeyValueRecords extends org.apache.thrift.AsyncProcessFunction> { public addKeyValueRecords() { super("addKeyValueRecords"); } public addKeyValueRecords_args getEmptyArgsInstance() { return new addKeyValueRecords_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { addKeyValueRecords_result result = new addKeyValueRecords_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; addKeyValueRecords_result result = new addKeyValueRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, addKeyValueRecords_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.addKeyValueRecords(args.key, args.value, args.records, args.creds, args.transaction, args.environment, resultHandler); } } public static class auditRecord extends org.apache.thrift.AsyncProcessFunction> { public auditRecord() { super("auditRecord"); } public auditRecord_args getEmptyArgsInstance() { return new auditRecord_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { auditRecord_result result = new auditRecord_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; auditRecord_result result = new auditRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, auditRecord_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.auditRecord(args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class auditRecordStart extends org.apache.thrift.AsyncProcessFunction> { public auditRecordStart() { super("auditRecordStart"); } public auditRecordStart_args getEmptyArgsInstance() { return new auditRecordStart_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { auditRecordStart_result result = new auditRecordStart_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; auditRecordStart_result result = new auditRecordStart_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, auditRecordStart_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.auditRecordStart(args.record, args.start, args.creds, args.transaction, args.environment, resultHandler); } } public static class auditRecordStartstr extends org.apache.thrift.AsyncProcessFunction> { public auditRecordStartstr() { super("auditRecordStartstr"); } public auditRecordStartstr_args getEmptyArgsInstance() { return new auditRecordStartstr_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { auditRecordStartstr_result result = new auditRecordStartstr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; auditRecordStartstr_result result = new auditRecordStartstr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, auditRecordStartstr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.auditRecordStartstr(args.record, args.start, args.creds, args.transaction, args.environment, resultHandler); } } public static class auditRecordStartEnd extends org.apache.thrift.AsyncProcessFunction> { public auditRecordStartEnd() { super("auditRecordStartEnd"); } public auditRecordStartEnd_args getEmptyArgsInstance() { return new auditRecordStartEnd_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { auditRecordStartEnd_result result = new auditRecordStartEnd_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; auditRecordStartEnd_result result = new auditRecordStartEnd_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, auditRecordStartEnd_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.auditRecordStartEnd(args.record, args.start, args.tend, args.creds, args.transaction, args.environment, resultHandler); } } public static class auditRecordStartstrEndstr extends org.apache.thrift.AsyncProcessFunction> { public auditRecordStartstrEndstr() { super("auditRecordStartstrEndstr"); } public auditRecordStartstrEndstr_args getEmptyArgsInstance() { return new auditRecordStartstrEndstr_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { auditRecordStartstrEndstr_result result = new auditRecordStartstrEndstr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; auditRecordStartstrEndstr_result result = new auditRecordStartstrEndstr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, auditRecordStartstrEndstr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.auditRecordStartstrEndstr(args.record, args.start, args.tend, args.creds, args.transaction, args.environment, resultHandler); } } public static class auditKeyRecord extends org.apache.thrift.AsyncProcessFunction> { public auditKeyRecord() { super("auditKeyRecord"); } public auditKeyRecord_args getEmptyArgsInstance() { return new auditKeyRecord_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { auditKeyRecord_result result = new auditKeyRecord_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; auditKeyRecord_result result = new auditKeyRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, auditKeyRecord_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.auditKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class auditKeyRecordStart extends org.apache.thrift.AsyncProcessFunction> { public auditKeyRecordStart() { super("auditKeyRecordStart"); } public auditKeyRecordStart_args getEmptyArgsInstance() { return new auditKeyRecordStart_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { auditKeyRecordStart_result result = new auditKeyRecordStart_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; auditKeyRecordStart_result result = new auditKeyRecordStart_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, auditKeyRecordStart_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.auditKeyRecordStart(args.key, args.record, args.start, args.creds, args.transaction, args.environment, resultHandler); } } public static class auditKeyRecordStartstr extends org.apache.thrift.AsyncProcessFunction> { public auditKeyRecordStartstr() { super("auditKeyRecordStartstr"); } public auditKeyRecordStartstr_args getEmptyArgsInstance() { return new auditKeyRecordStartstr_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { auditKeyRecordStartstr_result result = new auditKeyRecordStartstr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; auditKeyRecordStartstr_result result = new auditKeyRecordStartstr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, auditKeyRecordStartstr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.auditKeyRecordStartstr(args.key, args.record, args.start, args.creds, args.transaction, args.environment, resultHandler); } } public static class auditKeyRecordStartEnd extends org.apache.thrift.AsyncProcessFunction> { public auditKeyRecordStartEnd() { super("auditKeyRecordStartEnd"); } public auditKeyRecordStartEnd_args getEmptyArgsInstance() { return new auditKeyRecordStartEnd_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { auditKeyRecordStartEnd_result result = new auditKeyRecordStartEnd_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; auditKeyRecordStartEnd_result result = new auditKeyRecordStartEnd_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, auditKeyRecordStartEnd_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.auditKeyRecordStartEnd(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment, resultHandler); } } public static class auditKeyRecordStartstrEndstr extends org.apache.thrift.AsyncProcessFunction> { public auditKeyRecordStartstrEndstr() { super("auditKeyRecordStartstrEndstr"); } public auditKeyRecordStartstrEndstr_args getEmptyArgsInstance() { return new auditKeyRecordStartstrEndstr_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { auditKeyRecordStartstrEndstr_result result = new auditKeyRecordStartstrEndstr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; auditKeyRecordStartstrEndstr_result result = new auditKeyRecordStartstrEndstr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, auditKeyRecordStartstrEndstr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.auditKeyRecordStartstrEndstr(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment, resultHandler); } } public static class browseKey extends org.apache.thrift.AsyncProcessFunction>> { public browseKey() { super("browseKey"); } public browseKey_args getEmptyArgsInstance() { return new browseKey_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { browseKey_result result = new browseKey_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; browseKey_result result = new browseKey_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, browseKey_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.browseKey(args.key, args.creds, args.transaction, args.environment, resultHandler); } } public static class browseKeys extends org.apache.thrift.AsyncProcessFunction>>> { public browseKeys() { super("browseKeys"); } public browseKeys_args getEmptyArgsInstance() { return new browseKeys_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { browseKeys_result result = new browseKeys_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; browseKeys_result result = new browseKeys_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, browseKeys_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.browseKeys(args.keys, args.creds, args.transaction, args.environment, resultHandler); } } public static class browseKeyTime extends org.apache.thrift.AsyncProcessFunction>> { public browseKeyTime() { super("browseKeyTime"); } public browseKeyTime_args getEmptyArgsInstance() { return new browseKeyTime_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { browseKeyTime_result result = new browseKeyTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; browseKeyTime_result result = new browseKeyTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, browseKeyTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.browseKeyTime(args.key, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class browseKeyTimestr extends org.apache.thrift.AsyncProcessFunction>> { public browseKeyTimestr() { super("browseKeyTimestr"); } public browseKeyTimestr_args getEmptyArgsInstance() { return new browseKeyTimestr_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { browseKeyTimestr_result result = new browseKeyTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; browseKeyTimestr_result result = new browseKeyTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, browseKeyTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.browseKeyTimestr(args.key, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class browseKeysTime extends org.apache.thrift.AsyncProcessFunction>>> { public browseKeysTime() { super("browseKeysTime"); } public browseKeysTime_args getEmptyArgsInstance() { return new browseKeysTime_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { browseKeysTime_result result = new browseKeysTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; browseKeysTime_result result = new browseKeysTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, browseKeysTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.browseKeysTime(args.keys, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class browseKeysTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public browseKeysTimestr() { super("browseKeysTimestr"); } public browseKeysTimestr_args getEmptyArgsInstance() { return new browseKeysTimestr_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { browseKeysTimestr_result result = new browseKeysTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; browseKeysTimestr_result result = new browseKeysTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, browseKeysTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.browseKeysTimestr(args.keys, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class chronologizeKeyRecord extends org.apache.thrift.AsyncProcessFunction>> { public chronologizeKeyRecord() { super("chronologizeKeyRecord"); } public chronologizeKeyRecord_args getEmptyArgsInstance() { return new chronologizeKeyRecord_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { chronologizeKeyRecord_result result = new chronologizeKeyRecord_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; chronologizeKeyRecord_result result = new chronologizeKeyRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, chronologizeKeyRecord_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.chronologizeKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class chronologizeKeyRecordStart extends org.apache.thrift.AsyncProcessFunction>> { public chronologizeKeyRecordStart() { super("chronologizeKeyRecordStart"); } public chronologizeKeyRecordStart_args getEmptyArgsInstance() { return new chronologizeKeyRecordStart_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { chronologizeKeyRecordStart_result result = new chronologizeKeyRecordStart_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; chronologizeKeyRecordStart_result result = new chronologizeKeyRecordStart_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, chronologizeKeyRecordStart_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.chronologizeKeyRecordStart(args.key, args.record, args.start, args.creds, args.transaction, args.environment, resultHandler); } } public static class chronologizeKeyRecordStartstr extends org.apache.thrift.AsyncProcessFunction>> { public chronologizeKeyRecordStartstr() { super("chronologizeKeyRecordStartstr"); } public chronologizeKeyRecordStartstr_args getEmptyArgsInstance() { return new chronologizeKeyRecordStartstr_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { chronologizeKeyRecordStartstr_result result = new chronologizeKeyRecordStartstr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; chronologizeKeyRecordStartstr_result result = new chronologizeKeyRecordStartstr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, chronologizeKeyRecordStartstr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.chronologizeKeyRecordStartstr(args.key, args.record, args.start, args.creds, args.transaction, args.environment, resultHandler); } } public static class chronologizeKeyRecordStartEnd extends org.apache.thrift.AsyncProcessFunction>> { public chronologizeKeyRecordStartEnd() { super("chronologizeKeyRecordStartEnd"); } public chronologizeKeyRecordStartEnd_args getEmptyArgsInstance() { return new chronologizeKeyRecordStartEnd_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { chronologizeKeyRecordStartEnd_result result = new chronologizeKeyRecordStartEnd_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; chronologizeKeyRecordStartEnd_result result = new chronologizeKeyRecordStartEnd_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, chronologizeKeyRecordStartEnd_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.chronologizeKeyRecordStartEnd(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment, resultHandler); } } public static class chronologizeKeyRecordStartstrEndstr extends org.apache.thrift.AsyncProcessFunction>> { public chronologizeKeyRecordStartstrEndstr() { super("chronologizeKeyRecordStartstrEndstr"); } public chronologizeKeyRecordStartstrEndstr_args getEmptyArgsInstance() { return new chronologizeKeyRecordStartstrEndstr_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { chronologizeKeyRecordStartstrEndstr_result result = new chronologizeKeyRecordStartstrEndstr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; chronologizeKeyRecordStartstrEndstr_result result = new chronologizeKeyRecordStartstrEndstr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, chronologizeKeyRecordStartstrEndstr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.chronologizeKeyRecordStartstrEndstr(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment, resultHandler); } } public static class clearRecord extends org.apache.thrift.AsyncProcessFunction { public clearRecord() { super("clearRecord"); } public clearRecord_args getEmptyArgsInstance() { return new clearRecord_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { clearRecord_result result = new clearRecord_result(); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; clearRecord_result result = new clearRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, clearRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.clearRecord(args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class clearRecords extends org.apache.thrift.AsyncProcessFunction { public clearRecords() { super("clearRecords"); } public clearRecords_args getEmptyArgsInstance() { return new clearRecords_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { clearRecords_result result = new clearRecords_result(); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; clearRecords_result result = new clearRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, clearRecords_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.clearRecords(args.records, args.creds, args.transaction, args.environment, resultHandler); } } public static class clearKeyRecord extends org.apache.thrift.AsyncProcessFunction { public clearKeyRecord() { super("clearKeyRecord"); } public clearKeyRecord_args getEmptyArgsInstance() { return new clearKeyRecord_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { clearKeyRecord_result result = new clearKeyRecord_result(); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; clearKeyRecord_result result = new clearKeyRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, clearKeyRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.clearKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class clearKeysRecord extends org.apache.thrift.AsyncProcessFunction { public clearKeysRecord() { super("clearKeysRecord"); } public clearKeysRecord_args getEmptyArgsInstance() { return new clearKeysRecord_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { clearKeysRecord_result result = new clearKeysRecord_result(); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; clearKeysRecord_result result = new clearKeysRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, clearKeysRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.clearKeysRecord(args.keys, args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class clearKeyRecords extends org.apache.thrift.AsyncProcessFunction { public clearKeyRecords() { super("clearKeyRecords"); } public clearKeyRecords_args getEmptyArgsInstance() { return new clearKeyRecords_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { clearKeyRecords_result result = new clearKeyRecords_result(); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; clearKeyRecords_result result = new clearKeyRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, clearKeyRecords_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.clearKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment, resultHandler); } } public static class clearKeysRecords extends org.apache.thrift.AsyncProcessFunction { public clearKeysRecords() { super("clearKeysRecords"); } public clearKeysRecords_args getEmptyArgsInstance() { return new clearKeysRecords_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { clearKeysRecords_result result = new clearKeysRecords_result(); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; clearKeysRecords_result result = new clearKeysRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, clearKeysRecords_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.clearKeysRecords(args.keys, args.records, args.creds, args.transaction, args.environment, resultHandler); } } public static class commit extends org.apache.thrift.AsyncProcessFunction { public commit() { super("commit"); } public commit_args getEmptyArgsInstance() { return new commit_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { commit_result result = new commit_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; commit_result result = new commit_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, commit_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.commit(args.creds, args.transaction, args.environment, resultHandler); } } public static class describe extends org.apache.thrift.AsyncProcessFunction> { public describe() { super("describe"); } public describe_args getEmptyArgsInstance() { return new describe_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Set o) { describe_result result = new describe_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; describe_result result = new describe_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, describe_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.describe(args.creds, args.transaction, args.environment, resultHandler); } } public static class describeTime extends org.apache.thrift.AsyncProcessFunction> { public describeTime() { super("describeTime"); } public describeTime_args getEmptyArgsInstance() { return new describeTime_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Set o) { describeTime_result result = new describeTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; describeTime_result result = new describeTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, describeTime_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.describeTime(args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class describeTimestr extends org.apache.thrift.AsyncProcessFunction> { public describeTimestr() { super("describeTimestr"); } public describeTimestr_args getEmptyArgsInstance() { return new describeTimestr_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Set o) { describeTimestr_result result = new describeTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; describeTimestr_result result = new describeTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, describeTimestr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.describeTimestr(args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class describeRecord extends org.apache.thrift.AsyncProcessFunction> { public describeRecord() { super("describeRecord"); } public describeRecord_args getEmptyArgsInstance() { return new describeRecord_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Set o) { describeRecord_result result = new describeRecord_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; describeRecord_result result = new describeRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, describeRecord_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.describeRecord(args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class describeRecordTime extends org.apache.thrift.AsyncProcessFunction> { public describeRecordTime() { super("describeRecordTime"); } public describeRecordTime_args getEmptyArgsInstance() { return new describeRecordTime_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Set o) { describeRecordTime_result result = new describeRecordTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; describeRecordTime_result result = new describeRecordTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, describeRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.describeRecordTime(args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class describeRecordTimestr extends org.apache.thrift.AsyncProcessFunction> { public describeRecordTimestr() { super("describeRecordTimestr"); } public describeRecordTimestr_args getEmptyArgsInstance() { return new describeRecordTimestr_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Set o) { describeRecordTimestr_result result = new describeRecordTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; describeRecordTimestr_result result = new describeRecordTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, describeRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.describeRecordTimestr(args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class describeRecords extends org.apache.thrift.AsyncProcessFunction>> { public describeRecords() { super("describeRecords"); } public describeRecords_args getEmptyArgsInstance() { return new describeRecords_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { describeRecords_result result = new describeRecords_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; describeRecords_result result = new describeRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, describeRecords_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.describeRecords(args.records, args.creds, args.transaction, args.environment, resultHandler); } } public static class describeRecordsTime extends org.apache.thrift.AsyncProcessFunction>> { public describeRecordsTime() { super("describeRecordsTime"); } public describeRecordsTime_args getEmptyArgsInstance() { return new describeRecordsTime_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { describeRecordsTime_result result = new describeRecordsTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; describeRecordsTime_result result = new describeRecordsTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, describeRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.describeRecordsTime(args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class describeRecordsTimestr extends org.apache.thrift.AsyncProcessFunction>> { public describeRecordsTimestr() { super("describeRecordsTimestr"); } public describeRecordsTimestr_args getEmptyArgsInstance() { return new describeRecordsTimestr_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { describeRecordsTimestr_result result = new describeRecordsTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; describeRecordsTimestr_result result = new describeRecordsTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, describeRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.describeRecordsTimestr(args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class diffRecordStart extends org.apache.thrift.AsyncProcessFunction>>> { public diffRecordStart() { super("diffRecordStart"); } public diffRecordStart_args getEmptyArgsInstance() { return new diffRecordStart_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { diffRecordStart_result result = new diffRecordStart_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; diffRecordStart_result result = new diffRecordStart_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, diffRecordStart_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.diffRecordStart(args.record, args.start, args.creds, args.transaction, args.environment, resultHandler); } } public static class diffRecordStartstr extends org.apache.thrift.AsyncProcessFunction>>> { public diffRecordStartstr() { super("diffRecordStartstr"); } public diffRecordStartstr_args getEmptyArgsInstance() { return new diffRecordStartstr_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { diffRecordStartstr_result result = new diffRecordStartstr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; diffRecordStartstr_result result = new diffRecordStartstr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, diffRecordStartstr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.diffRecordStartstr(args.record, args.start, args.creds, args.transaction, args.environment, resultHandler); } } public static class diffRecordStartEnd extends org.apache.thrift.AsyncProcessFunction>>> { public diffRecordStartEnd() { super("diffRecordStartEnd"); } public diffRecordStartEnd_args getEmptyArgsInstance() { return new diffRecordStartEnd_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { diffRecordStartEnd_result result = new diffRecordStartEnd_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; diffRecordStartEnd_result result = new diffRecordStartEnd_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, diffRecordStartEnd_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.diffRecordStartEnd(args.record, args.start, args.tend, args.creds, args.transaction, args.environment, resultHandler); } } public static class diffRecordStartstrEndstr extends org.apache.thrift.AsyncProcessFunction>>> { public diffRecordStartstrEndstr() { super("diffRecordStartstrEndstr"); } public diffRecordStartstrEndstr_args getEmptyArgsInstance() { return new diffRecordStartstrEndstr_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { diffRecordStartstrEndstr_result result = new diffRecordStartstrEndstr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; diffRecordStartstrEndstr_result result = new diffRecordStartstrEndstr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, diffRecordStartstrEndstr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.diffRecordStartstrEndstr(args.record, args.start, args.tend, args.creds, args.transaction, args.environment, resultHandler); } } public static class diffKeyRecordStart extends org.apache.thrift.AsyncProcessFunction>> { public diffKeyRecordStart() { super("diffKeyRecordStart"); } public diffKeyRecordStart_args getEmptyArgsInstance() { return new diffKeyRecordStart_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { diffKeyRecordStart_result result = new diffKeyRecordStart_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; diffKeyRecordStart_result result = new diffKeyRecordStart_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, diffKeyRecordStart_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.diffKeyRecordStart(args.key, args.record, args.start, args.creds, args.transaction, args.environment, resultHandler); } } public static class diffKeyRecordStartstr extends org.apache.thrift.AsyncProcessFunction>> { public diffKeyRecordStartstr() { super("diffKeyRecordStartstr"); } public diffKeyRecordStartstr_args getEmptyArgsInstance() { return new diffKeyRecordStartstr_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { diffKeyRecordStartstr_result result = new diffKeyRecordStartstr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; diffKeyRecordStartstr_result result = new diffKeyRecordStartstr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, diffKeyRecordStartstr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.diffKeyRecordStartstr(args.key, args.record, args.start, args.creds, args.transaction, args.environment, resultHandler); } } public static class diffKeyRecordStartEnd extends org.apache.thrift.AsyncProcessFunction>> { public diffKeyRecordStartEnd() { super("diffKeyRecordStartEnd"); } public diffKeyRecordStartEnd_args getEmptyArgsInstance() { return new diffKeyRecordStartEnd_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { diffKeyRecordStartEnd_result result = new diffKeyRecordStartEnd_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; diffKeyRecordStartEnd_result result = new diffKeyRecordStartEnd_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, diffKeyRecordStartEnd_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.diffKeyRecordStartEnd(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment, resultHandler); } } public static class diffKeyRecordStartstrEndstr extends org.apache.thrift.AsyncProcessFunction>> { public diffKeyRecordStartstrEndstr() { super("diffKeyRecordStartstrEndstr"); } public diffKeyRecordStartstrEndstr_args getEmptyArgsInstance() { return new diffKeyRecordStartstrEndstr_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { diffKeyRecordStartstrEndstr_result result = new diffKeyRecordStartstrEndstr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; diffKeyRecordStartstrEndstr_result result = new diffKeyRecordStartstrEndstr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, diffKeyRecordStartstrEndstr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.diffKeyRecordStartstrEndstr(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment, resultHandler); } } public static class diffKeyStart extends org.apache.thrift.AsyncProcessFunction>>> { public diffKeyStart() { super("diffKeyStart"); } public diffKeyStart_args getEmptyArgsInstance() { return new diffKeyStart_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { diffKeyStart_result result = new diffKeyStart_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; diffKeyStart_result result = new diffKeyStart_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, diffKeyStart_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.diffKeyStart(args.key, args.start, args.creds, args.transaction, args.environment, resultHandler); } } public static class diffKeyStartstr extends org.apache.thrift.AsyncProcessFunction>>> { public diffKeyStartstr() { super("diffKeyStartstr"); } public diffKeyStartstr_args getEmptyArgsInstance() { return new diffKeyStartstr_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { diffKeyStartstr_result result = new diffKeyStartstr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; diffKeyStartstr_result result = new diffKeyStartstr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, diffKeyStartstr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.diffKeyStartstr(args.key, args.start, args.creds, args.transaction, args.environment, resultHandler); } } public static class diffKeyStartEnd extends org.apache.thrift.AsyncProcessFunction>>> { public diffKeyStartEnd() { super("diffKeyStartEnd"); } public diffKeyStartEnd_args getEmptyArgsInstance() { return new diffKeyStartEnd_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { diffKeyStartEnd_result result = new diffKeyStartEnd_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; diffKeyStartEnd_result result = new diffKeyStartEnd_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, diffKeyStartEnd_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.diffKeyStartEnd(args.key, args.start, args.tend, args.creds, args.transaction, args.environment, resultHandler); } } public static class diffKeyStartstrEndstr extends org.apache.thrift.AsyncProcessFunction>>> { public diffKeyStartstrEndstr() { super("diffKeyStartstrEndstr"); } public diffKeyStartstrEndstr_args getEmptyArgsInstance() { return new diffKeyStartstrEndstr_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { diffKeyStartstrEndstr_result result = new diffKeyStartstrEndstr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; diffKeyStartstrEndstr_result result = new diffKeyStartstrEndstr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, diffKeyStartstrEndstr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.diffKeyStartstrEndstr(args.key, args.start, args.tend, args.creds, args.transaction, args.environment, resultHandler); } } public static class invokePlugin extends org.apache.thrift.AsyncProcessFunction { public invokePlugin() { super("invokePlugin"); } public invokePlugin_args getEmptyArgsInstance() { return new invokePlugin_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.ComplexTObject o) { invokePlugin_result result = new invokePlugin_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; invokePlugin_result result = new invokePlugin_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, invokePlugin_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.invokePlugin(args.id, args.method, args.params, args.creds, args.transaction, args.environment, resultHandler); } } public static class login extends org.apache.thrift.AsyncProcessFunction { public login() { super("login"); } public login_args getEmptyArgsInstance() { return new login_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.AccessToken o) { login_result result = new login_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; login_result result = new login_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex2 = (com.cinchapi.concourse.thrift.PermissionException) 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, login_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.login(args.username, args.password, args.environment, resultHandler); } } public static class logout extends org.apache.thrift.AsyncProcessFunction { public logout() { super("logout"); } public logout_args getEmptyArgsInstance() { return new logout_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { logout_result result = new logout_result(); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; logout_result result = new logout_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex2 = (com.cinchapi.concourse.thrift.PermissionException) 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, logout_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.logout(args.token, args.environment, resultHandler); } } public static class stage extends org.apache.thrift.AsyncProcessFunction { public stage() { super("stage"); } public stage_args getEmptyArgsInstance() { return new stage_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TransactionToken o) { stage_result result = new stage_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; stage_result result = new stage_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex2 = (com.cinchapi.concourse.thrift.PermissionException) 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, stage_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.stage(args.token, args.environment, resultHandler); } } public static class insertJson extends org.apache.thrift.AsyncProcessFunction> { public insertJson() { super("insertJson"); } public insertJson_args getEmptyArgsInstance() { return new insertJson_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Set o) { insertJson_result result = new insertJson_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; insertJson_result result = new insertJson_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex4 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx4IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex5 = (com.cinchapi.concourse.thrift.PermissionException) e; result.setEx5IsSet(true); msg = result; } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase) new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb, msg, msgType, seqid); return; } catch (Exception ex) { LOGGER.error( "Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, insertJson_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.insertJson(args.json, args.creds, args.transaction, args.environment, resultHandler); } } public static class insertJsonRecord extends org.apache.thrift.AsyncProcessFunction { public insertJsonRecord() { super("insertJsonRecord"); } public insertJsonRecord_args getEmptyArgsInstance() { return new insertJsonRecord_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { insertJsonRecord_result result = new insertJsonRecord_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; insertJsonRecord_result result = new insertJsonRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex4 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx4IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex5 = (com.cinchapi.concourse.thrift.PermissionException) e; result.setEx5IsSet(true); msg = result; } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase) new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb, msg, msgType, seqid); return; } catch (Exception ex) { LOGGER.error( "Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, insertJsonRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.insertJsonRecord(args.json, args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class insertJsonRecords extends org.apache.thrift.AsyncProcessFunction> { public insertJsonRecords() { super("insertJsonRecords"); } public insertJsonRecords_args getEmptyArgsInstance() { return new insertJsonRecords_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { insertJsonRecords_result result = new insertJsonRecords_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; insertJsonRecords_result result = new insertJsonRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex4 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx4IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex5 = (com.cinchapi.concourse.thrift.PermissionException) e; result.setEx5IsSet(true); msg = result; } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase) new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb, msg, msgType, seqid); return; } catch (Exception ex) { LOGGER.error( "Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, insertJsonRecords_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.insertJsonRecords(args.json, args.records, args.creds, args.transaction, args.environment, resultHandler); } } public static class removeKeyValueRecord extends org.apache.thrift.AsyncProcessFunction { public removeKeyValueRecord() { super("removeKeyValueRecord"); } public removeKeyValueRecord_args getEmptyArgsInstance() { return new removeKeyValueRecord_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { removeKeyValueRecord_result result = new removeKeyValueRecord_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; removeKeyValueRecord_result result = new removeKeyValueRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, removeKeyValueRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.removeKeyValueRecord(args.key, args.value, args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class removeKeyValueRecords extends org.apache.thrift.AsyncProcessFunction> { public removeKeyValueRecords() { super("removeKeyValueRecords"); } public removeKeyValueRecords_args getEmptyArgsInstance() { return new removeKeyValueRecords_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { removeKeyValueRecords_result result = new removeKeyValueRecords_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; removeKeyValueRecords_result result = new removeKeyValueRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, removeKeyValueRecords_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.removeKeyValueRecords(args.key, args.value, args.records, args.creds, args.transaction, args.environment, resultHandler); } } public static class setKeyValueRecord extends org.apache.thrift.AsyncProcessFunction { public setKeyValueRecord() { super("setKeyValueRecord"); } public setKeyValueRecord_args getEmptyArgsInstance() { return new setKeyValueRecord_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { setKeyValueRecord_result result = new setKeyValueRecord_result(); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; setKeyValueRecord_result result = new setKeyValueRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, setKeyValueRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.setKeyValueRecord(args.key, args.value, args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class setKeyValue extends org.apache.thrift.AsyncProcessFunction { public setKeyValue() { super("setKeyValue"); } public setKeyValue_args getEmptyArgsInstance() { return new setKeyValue_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { setKeyValue_result result = new setKeyValue_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; setKeyValue_result result = new setKeyValue_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, setKeyValue_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.setKeyValue(args.key, args.value, args.creds, args.transaction, args.environment, resultHandler); } } public static class setKeyValueRecords extends org.apache.thrift.AsyncProcessFunction { public setKeyValueRecords() { super("setKeyValueRecords"); } public setKeyValueRecords_args getEmptyArgsInstance() { return new setKeyValueRecords_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { setKeyValueRecords_result result = new setKeyValueRecords_result(); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; setKeyValueRecords_result result = new setKeyValueRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, setKeyValueRecords_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.setKeyValueRecords(args.key, args.value, args.records, args.creds, args.transaction, args.environment, resultHandler); } } public static class reconcileKeyRecordValues extends org.apache.thrift.AsyncProcessFunction { public reconcileKeyRecordValues() { super("reconcileKeyRecordValues"); } public reconcileKeyRecordValues_args getEmptyArgsInstance() { return new reconcileKeyRecordValues_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { reconcileKeyRecordValues_result result = new reconcileKeyRecordValues_result(); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; reconcileKeyRecordValues_result result = new reconcileKeyRecordValues_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, reconcileKeyRecordValues_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.reconcileKeyRecordValues(args.key, args.record, args.values, args.creds, args.transaction, args.environment, resultHandler); } } public static class inventory extends org.apache.thrift.AsyncProcessFunction> { public inventory() { super("inventory"); } public inventory_args getEmptyArgsInstance() { return new inventory_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Set o) { inventory_result result = new inventory_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; inventory_result result = new inventory_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, inventory_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.inventory(args.creds, args.transaction, args.environment, resultHandler); } } public static class selectRecord extends org.apache.thrift.AsyncProcessFunction>> { public selectRecord() { super("selectRecord"); } public selectRecord_args getEmptyArgsInstance() { return new selectRecord_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { selectRecord_result result = new selectRecord_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectRecord_result result = new selectRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectRecord_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectRecord(args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectRecords extends org.apache.thrift.AsyncProcessFunction>>> { public selectRecords() { super("selectRecords"); } public selectRecords_args getEmptyArgsInstance() { return new selectRecords_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { selectRecords_result result = new selectRecords_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectRecords_result result = new selectRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectRecords_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectRecords(args.records, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectRecordTime extends org.apache.thrift.AsyncProcessFunction>> { public selectRecordTime() { super("selectRecordTime"); } public selectRecordTime_args getEmptyArgsInstance() { return new selectRecordTime_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { selectRecordTime_result result = new selectRecordTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectRecordTime_result result = new selectRecordTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectRecordTime(args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectRecordTimestr extends org.apache.thrift.AsyncProcessFunction>> { public selectRecordTimestr() { super("selectRecordTimestr"); } public selectRecordTimestr_args getEmptyArgsInstance() { return new selectRecordTimestr_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { selectRecordTimestr_result result = new selectRecordTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectRecordTimestr_result result = new selectRecordTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectRecordTimestr(args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectRecordsTime extends org.apache.thrift.AsyncProcessFunction>>> { public selectRecordsTime() { super("selectRecordsTime"); } public selectRecordsTime_args getEmptyArgsInstance() { return new selectRecordsTime_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { selectRecordsTime_result result = new selectRecordsTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectRecordsTime_result result = new selectRecordsTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectRecordsTime(args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectRecordsTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public selectRecordsTimestr() { super("selectRecordsTimestr"); } public selectRecordsTimestr_args getEmptyArgsInstance() { return new selectRecordsTimestr_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { selectRecordsTimestr_result result = new selectRecordsTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectRecordsTimestr_result result = new selectRecordsTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectRecordsTimestr(args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeyRecord extends org.apache.thrift.AsyncProcessFunction> { public selectKeyRecord() { super("selectKeyRecord"); } public selectKeyRecord_args getEmptyArgsInstance() { return new selectKeyRecord_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete( Set o) { selectKeyRecord_result result = new selectKeyRecord_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeyRecord_result result = new selectKeyRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeyRecord_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.selectKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeyRecordTime extends org.apache.thrift.AsyncProcessFunction> { public selectKeyRecordTime() { super("selectKeyRecordTime"); } public selectKeyRecordTime_args getEmptyArgsInstance() { return new selectKeyRecordTime_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete( Set o) { selectKeyRecordTime_result result = new selectKeyRecordTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeyRecordTime_result result = new selectKeyRecordTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeyRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.selectKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeyRecordTimestr extends org.apache.thrift.AsyncProcessFunction> { public selectKeyRecordTimestr() { super("selectKeyRecordTimestr"); } public selectKeyRecordTimestr_args getEmptyArgsInstance() { return new selectKeyRecordTimestr_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete( Set o) { selectKeyRecordTimestr_result result = new selectKeyRecordTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeyRecordTimestr_result result = new selectKeyRecordTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeyRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.selectKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeysRecord extends org.apache.thrift.AsyncProcessFunction>> { public selectKeysRecord() { super("selectKeysRecord"); } public selectKeysRecord_args getEmptyArgsInstance() { return new selectKeysRecord_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { selectKeysRecord_result result = new selectKeysRecord_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeysRecord_result result = new selectKeysRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeysRecord_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeysRecord(args.keys, args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeysRecordTime extends org.apache.thrift.AsyncProcessFunction>> { public selectKeysRecordTime() { super("selectKeysRecordTime"); } public selectKeysRecordTime_args getEmptyArgsInstance() { return new selectKeysRecordTime_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { selectKeysRecordTime_result result = new selectKeysRecordTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeysRecordTime_result result = new selectKeysRecordTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeysRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeysRecordTime(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeysRecordTimestr extends org.apache.thrift.AsyncProcessFunction>> { public selectKeysRecordTimestr() { super("selectKeysRecordTimestr"); } public selectKeysRecordTimestr_args getEmptyArgsInstance() { return new selectKeysRecordTimestr_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { selectKeysRecordTimestr_result result = new selectKeysRecordTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeysRecordTimestr_result result = new selectKeysRecordTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeysRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeysRecordTimestr(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeysRecords extends org.apache.thrift.AsyncProcessFunction>>> { public selectKeysRecords() { super("selectKeysRecords"); } public selectKeysRecords_args getEmptyArgsInstance() { return new selectKeysRecords_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { selectKeysRecords_result result = new selectKeysRecords_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeysRecords_result result = new selectKeysRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeysRecords_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectKeysRecords(args.keys, args.records, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeyRecords extends org.apache.thrift.AsyncProcessFunction>> { public selectKeyRecords() { super("selectKeyRecords"); } public selectKeyRecords_args getEmptyArgsInstance() { return new selectKeyRecords_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { selectKeyRecords_result result = new selectKeyRecords_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeyRecords_result result = new selectKeyRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeyRecords_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeyRecordsTime extends org.apache.thrift.AsyncProcessFunction>> { public selectKeyRecordsTime() { super("selectKeyRecordsTime"); } public selectKeyRecordsTime_args getEmptyArgsInstance() { return new selectKeyRecordsTime_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { selectKeyRecordsTime_result result = new selectKeyRecordsTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeyRecordsTime_result result = new selectKeyRecordsTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeyRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeyRecordsTimestr extends org.apache.thrift.AsyncProcessFunction>> { public selectKeyRecordsTimestr() { super("selectKeyRecordsTimestr"); } public selectKeyRecordsTimestr_args getEmptyArgsInstance() { return new selectKeyRecordsTimestr_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { selectKeyRecordsTimestr_result result = new selectKeyRecordsTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeyRecordsTimestr_result result = new selectKeyRecordsTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeyRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeysRecordsTime extends org.apache.thrift.AsyncProcessFunction>>> { public selectKeysRecordsTime() { super("selectKeysRecordsTime"); } public selectKeysRecordsTime_args getEmptyArgsInstance() { return new selectKeysRecordsTime_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { selectKeysRecordsTime_result result = new selectKeysRecordsTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeysRecordsTime_result result = new selectKeysRecordsTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeysRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectKeysRecordsTime(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeysRecordsTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public selectKeysRecordsTimestr() { super("selectKeysRecordsTimestr"); } public selectKeysRecordsTimestr_args getEmptyArgsInstance() { return new selectKeysRecordsTimestr_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { selectKeysRecordsTimestr_result result = new selectKeysRecordsTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeysRecordsTimestr_result result = new selectKeysRecordsTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeysRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectKeysRecordsTimestr(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectCriteria extends org.apache.thrift.AsyncProcessFunction>>> { public selectCriteria() { super("selectCriteria"); } public selectCriteria_args getEmptyArgsInstance() { return new selectCriteria_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { selectCriteria_result result = new selectCriteria_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectCriteria_result result = new selectCriteria_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectCriteria_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectCriteria(args.criteria, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectCcl extends org.apache.thrift.AsyncProcessFunction>>> { public selectCcl() { super("selectCcl"); } public selectCcl_args getEmptyArgsInstance() { return new selectCcl_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { selectCcl_result result = new selectCcl_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectCcl_result result = new selectCcl_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectCcl_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectCcl(args.ccl, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectCriteriaTime extends org.apache.thrift.AsyncProcessFunction>>> { public selectCriteriaTime() { super("selectCriteriaTime"); } public selectCriteriaTime_args getEmptyArgsInstance() { return new selectCriteriaTime_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { selectCriteriaTime_result result = new selectCriteriaTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectCriteriaTime_result result = new selectCriteriaTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectCriteriaTime(args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectCriteriaTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public selectCriteriaTimestr() { super("selectCriteriaTimestr"); } public selectCriteriaTimestr_args getEmptyArgsInstance() { return new selectCriteriaTimestr_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { selectCriteriaTimestr_result result = new selectCriteriaTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectCriteriaTimestr_result result = new selectCriteriaTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectCriteriaTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectCriteriaTimestr(args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectCclTime extends org.apache.thrift.AsyncProcessFunction>>> { public selectCclTime() { super("selectCclTime"); } public selectCclTime_args getEmptyArgsInstance() { return new selectCclTime_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { selectCclTime_result result = new selectCclTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectCclTime_result result = new selectCclTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectCclTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectCclTime(args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectCclTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public selectCclTimestr() { super("selectCclTimestr"); } public selectCclTimestr_args getEmptyArgsInstance() { return new selectCclTimestr_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { selectCclTimestr_result result = new selectCclTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectCclTimestr_result result = new selectCclTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectCclTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectCclTimestr(args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeyCriteria extends org.apache.thrift.AsyncProcessFunction>> { public selectKeyCriteria() { super("selectKeyCriteria"); } public selectKeyCriteria_args getEmptyArgsInstance() { return new selectKeyCriteria_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { selectKeyCriteria_result result = new selectKeyCriteria_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeyCriteria_result result = new selectKeyCriteria_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeyCriteria_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeyCcl extends org.apache.thrift.AsyncProcessFunction>> { public selectKeyCcl() { super("selectKeyCcl"); } public selectKeyCcl_args getEmptyArgsInstance() { return new selectKeyCcl_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { selectKeyCcl_result result = new selectKeyCcl_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeyCcl_result result = new selectKeyCcl_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeyCcl_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeyCriteriaTime extends org.apache.thrift.AsyncProcessFunction>> { public selectKeyCriteriaTime() { super("selectKeyCriteriaTime"); } public selectKeyCriteriaTime_args getEmptyArgsInstance() { return new selectKeyCriteriaTime_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { selectKeyCriteriaTime_result result = new selectKeyCriteriaTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeyCriteriaTime_result result = new selectKeyCriteriaTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeyCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeyCriteriaTimestr extends org.apache.thrift.AsyncProcessFunction>> { public selectKeyCriteriaTimestr() { super("selectKeyCriteriaTimestr"); } public selectKeyCriteriaTimestr_args getEmptyArgsInstance() { return new selectKeyCriteriaTimestr_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { selectKeyCriteriaTimestr_result result = new selectKeyCriteriaTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeyCriteriaTimestr_result result = new selectKeyCriteriaTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeyCriteriaTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeyCriteriaTimestr(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeyCclTime extends org.apache.thrift.AsyncProcessFunction>> { public selectKeyCclTime() { super("selectKeyCclTime"); } public selectKeyCclTime_args getEmptyArgsInstance() { return new selectKeyCclTime_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { selectKeyCclTime_result result = new selectKeyCclTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeyCclTime_result result = new selectKeyCclTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeyCclTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeyCclTimestr extends org.apache.thrift.AsyncProcessFunction>> { public selectKeyCclTimestr() { super("selectKeyCclTimestr"); } public selectKeyCclTimestr_args getEmptyArgsInstance() { return new selectKeyCclTimestr_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { selectKeyCclTimestr_result result = new selectKeyCclTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeyCclTimestr_result result = new selectKeyCclTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeyCclTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeyCclTimestr(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeysCriteria extends org.apache.thrift.AsyncProcessFunction>>> { public selectKeysCriteria() { super("selectKeysCriteria"); } public selectKeysCriteria_args getEmptyArgsInstance() { return new selectKeysCriteria_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { selectKeysCriteria_result result = new selectKeysCriteria_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeysCriteria_result result = new selectKeysCriteria_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeysCriteria_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectKeysCriteria(args.keys, args.criteria, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeysCcl extends org.apache.thrift.AsyncProcessFunction>>> { public selectKeysCcl() { super("selectKeysCcl"); } public selectKeysCcl_args getEmptyArgsInstance() { return new selectKeysCcl_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { selectKeysCcl_result result = new selectKeysCcl_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeysCcl_result result = new selectKeysCcl_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeysCcl_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectKeysCcl(args.keys, args.ccl, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeysCriteriaTime extends org.apache.thrift.AsyncProcessFunction>>> { public selectKeysCriteriaTime() { super("selectKeysCriteriaTime"); } public selectKeysCriteriaTime_args getEmptyArgsInstance() { return new selectKeysCriteriaTime_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { selectKeysCriteriaTime_result result = new selectKeysCriteriaTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeysCriteriaTime_result result = new selectKeysCriteriaTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeysCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectKeysCriteriaTime(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeysCriteriaTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public selectKeysCriteriaTimestr() { super("selectKeysCriteriaTimestr"); } public selectKeysCriteriaTimestr_args getEmptyArgsInstance() { return new selectKeysCriteriaTimestr_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { selectKeysCriteriaTimestr_result result = new selectKeysCriteriaTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeysCriteriaTimestr_result result = new selectKeysCriteriaTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeysCriteriaTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectKeysCriteriaTimestr(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeysCclTime extends org.apache.thrift.AsyncProcessFunction>>> { public selectKeysCclTime() { super("selectKeysCclTime"); } public selectKeysCclTime_args getEmptyArgsInstance() { return new selectKeysCclTime_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { selectKeysCclTime_result result = new selectKeysCclTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeysCclTime_result result = new selectKeysCclTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeysCclTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectKeysCclTime(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class selectKeysCclTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public selectKeysCclTimestr() { super("selectKeysCclTimestr"); } public selectKeysCclTimestr_args getEmptyArgsInstance() { return new selectKeysCclTimestr_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { selectKeysCclTimestr_result result = new selectKeysCclTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; selectKeysCclTimestr_result result = new selectKeysCclTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, selectKeysCclTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectKeysCclTimestr(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeyRecord extends org.apache.thrift.AsyncProcessFunction { public getKeyRecord() { super("getKeyRecord"); } public getKeyRecord_args getEmptyArgsInstance() { return new getKeyRecord_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { getKeyRecord_result result = new getKeyRecord_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeyRecord_result result = new getKeyRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeyRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.getKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeyRecordTime extends org.apache.thrift.AsyncProcessFunction { public getKeyRecordTime() { super("getKeyRecordTime"); } public getKeyRecordTime_args getEmptyArgsInstance() { return new getKeyRecordTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { getKeyRecordTime_result result = new getKeyRecordTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeyRecordTime_result result = new getKeyRecordTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeyRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.getKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeyRecordTimestr extends org.apache.thrift.AsyncProcessFunction { public getKeyRecordTimestr() { super("getKeyRecordTimestr"); } public getKeyRecordTimestr_args getEmptyArgsInstance() { return new getKeyRecordTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { getKeyRecordTimestr_result result = new getKeyRecordTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeyRecordTimestr_result result = new getKeyRecordTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeyRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.getKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeysRecord extends org.apache.thrift.AsyncProcessFunction> { public getKeysRecord() { super("getKeysRecord"); } public getKeysRecord_args getEmptyArgsInstance() { return new getKeysRecord_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete( Map o) { getKeysRecord_result result = new getKeysRecord_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeysRecord_result result = new getKeysRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeysRecord_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeysRecord(args.keys, args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeysRecordTime extends org.apache.thrift.AsyncProcessFunction> { public getKeysRecordTime() { super("getKeysRecordTime"); } public getKeysRecordTime_args getEmptyArgsInstance() { return new getKeysRecordTime_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete( Map o) { getKeysRecordTime_result result = new getKeysRecordTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeysRecordTime_result result = new getKeysRecordTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeysRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeysRecordTime(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeysRecordTimestr extends org.apache.thrift.AsyncProcessFunction> { public getKeysRecordTimestr() { super("getKeysRecordTimestr"); } public getKeysRecordTimestr_args getEmptyArgsInstance() { return new getKeysRecordTimestr_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete( Map o) { getKeysRecordTimestr_result result = new getKeysRecordTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeysRecordTimestr_result result = new getKeysRecordTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeysRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeysRecordTimestr(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeysRecords extends org.apache.thrift.AsyncProcessFunction>> { public getKeysRecords() { super("getKeysRecords"); } public getKeysRecords_args getEmptyArgsInstance() { return new getKeysRecords_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { getKeysRecords_result result = new getKeysRecords_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeysRecords_result result = new getKeysRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeysRecords_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getKeysRecords(args.keys, args.records, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeyRecords extends org.apache.thrift.AsyncProcessFunction> { public getKeyRecords() { super("getKeyRecords"); } public getKeyRecords_args getEmptyArgsInstance() { return new getKeyRecords_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete( Map o) { getKeyRecords_result result = new getKeyRecords_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeyRecords_result result = new getKeyRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeyRecords_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeyRecordsTime extends org.apache.thrift.AsyncProcessFunction> { public getKeyRecordsTime() { super("getKeyRecordsTime"); } public getKeyRecordsTime_args getEmptyArgsInstance() { return new getKeyRecordsTime_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete( Map o) { getKeyRecordsTime_result result = new getKeyRecordsTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeyRecordsTime_result result = new getKeyRecordsTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeyRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeyRecordsTimestr extends org.apache.thrift.AsyncProcessFunction> { public getKeyRecordsTimestr() { super("getKeyRecordsTimestr"); } public getKeyRecordsTimestr_args getEmptyArgsInstance() { return new getKeyRecordsTimestr_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete( Map o) { getKeyRecordsTimestr_result result = new getKeyRecordsTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeyRecordsTimestr_result result = new getKeyRecordsTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeyRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeysRecordsTime extends org.apache.thrift.AsyncProcessFunction>> { public getKeysRecordsTime() { super("getKeysRecordsTime"); } public getKeysRecordsTime_args getEmptyArgsInstance() { return new getKeysRecordsTime_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { getKeysRecordsTime_result result = new getKeysRecordsTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeysRecordsTime_result result = new getKeysRecordsTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeysRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getKeysRecordsTime(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeysRecordsTimestr extends org.apache.thrift.AsyncProcessFunction>> { public getKeysRecordsTimestr() { super("getKeysRecordsTimestr"); } public getKeysRecordsTimestr_args getEmptyArgsInstance() { return new getKeysRecordsTimestr_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { getKeysRecordsTimestr_result result = new getKeysRecordsTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeysRecordsTimestr_result result = new getKeysRecordsTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeysRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getKeysRecordsTimestr(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeyCriteria extends org.apache.thrift.AsyncProcessFunction> { public getKeyCriteria() { super("getKeyCriteria"); } public getKeyCriteria_args getEmptyArgsInstance() { return new getKeyCriteria_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete( Map o) { getKeyCriteria_result result = new getKeyCriteria_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeyCriteria_result result = new getKeyCriteria_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeyCriteria_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment, resultHandler); } } public static class getCriteria extends org.apache.thrift.AsyncProcessFunction>> { public getCriteria() { super("getCriteria"); } public getCriteria_args getEmptyArgsInstance() { return new getCriteria_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { getCriteria_result result = new getCriteria_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getCriteria_result result = new getCriteria_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, getCriteria_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getCriteria(args.criteria, args.creds, args.transaction, args.environment, resultHandler); } } public static class getCcl extends org.apache.thrift.AsyncProcessFunction>> { public getCcl() { super("getCcl"); } public getCcl_args getEmptyArgsInstance() { return new getCcl_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { getCcl_result result = new getCcl_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getCcl_result result = new getCcl_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, getCcl_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getCcl(args.ccl, args.creds, args.transaction, args.environment, resultHandler); } } public static class getCriteriaTime extends org.apache.thrift.AsyncProcessFunction>> { public getCriteriaTime() { super("getCriteriaTime"); } public getCriteriaTime_args getEmptyArgsInstance() { return new getCriteriaTime_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { getCriteriaTime_result result = new getCriteriaTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getCriteriaTime_result result = new getCriteriaTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, getCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getCriteriaTime(args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class getCriteriaTimestr extends org.apache.thrift.AsyncProcessFunction>> { public getCriteriaTimestr() { super("getCriteriaTimestr"); } public getCriteriaTimestr_args getEmptyArgsInstance() { return new getCriteriaTimestr_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { getCriteriaTimestr_result result = new getCriteriaTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getCriteriaTimestr_result result = new getCriteriaTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, getCriteriaTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getCriteriaTimestr(args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class getCclTime extends org.apache.thrift.AsyncProcessFunction>> { public getCclTime() { super("getCclTime"); } public getCclTime_args getEmptyArgsInstance() { return new getCclTime_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { getCclTime_result result = new getCclTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getCclTime_result result = new getCclTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, getCclTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getCclTime(args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class getCclTimestr extends org.apache.thrift.AsyncProcessFunction>> { public getCclTimestr() { super("getCclTimestr"); } public getCclTimestr_args getEmptyArgsInstance() { return new getCclTimestr_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { getCclTimestr_result result = new getCclTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getCclTimestr_result result = new getCclTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, getCclTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getCclTimestr(args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeyCcl extends org.apache.thrift.AsyncProcessFunction> { public getKeyCcl() { super("getKeyCcl"); } public getKeyCcl_args getEmptyArgsInstance() { return new getKeyCcl_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete( Map o) { getKeyCcl_result result = new getKeyCcl_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeyCcl_result result = new getKeyCcl_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeyCcl_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeyCriteriaTime extends org.apache.thrift.AsyncProcessFunction> { public getKeyCriteriaTime() { super("getKeyCriteriaTime"); } public getKeyCriteriaTime_args getEmptyArgsInstance() { return new getKeyCriteriaTime_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete( Map o) { getKeyCriteriaTime_result result = new getKeyCriteriaTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeyCriteriaTime_result result = new getKeyCriteriaTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeyCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeyCriteriaTimestr extends org.apache.thrift.AsyncProcessFunction> { public getKeyCriteriaTimestr() { super("getKeyCriteriaTimestr"); } public getKeyCriteriaTimestr_args getEmptyArgsInstance() { return new getKeyCriteriaTimestr_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete( Map o) { getKeyCriteriaTimestr_result result = new getKeyCriteriaTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeyCriteriaTimestr_result result = new getKeyCriteriaTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeyCriteriaTimestr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeyCriteriaTimestr(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeyCclTime extends org.apache.thrift.AsyncProcessFunction> { public getKeyCclTime() { super("getKeyCclTime"); } public getKeyCclTime_args getEmptyArgsInstance() { return new getKeyCclTime_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete( Map o) { getKeyCclTime_result result = new getKeyCclTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeyCclTime_result result = new getKeyCclTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeyCclTime_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeyCclTimestr extends org.apache.thrift.AsyncProcessFunction> { public getKeyCclTimestr() { super("getKeyCclTimestr"); } public getKeyCclTimestr_args getEmptyArgsInstance() { return new getKeyCclTimestr_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete( Map o) { getKeyCclTimestr_result result = new getKeyCclTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeyCclTimestr_result result = new getKeyCclTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeyCclTimestr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeyCclTimestr(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeysCriteria extends org.apache.thrift.AsyncProcessFunction>> { public getKeysCriteria() { super("getKeysCriteria"); } public getKeysCriteria_args getEmptyArgsInstance() { return new getKeysCriteria_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { getKeysCriteria_result result = new getKeysCriteria_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeysCriteria_result result = new getKeysCriteria_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeysCriteria_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getKeysCriteria(args.keys, args.criteria, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeysCcl extends org.apache.thrift.AsyncProcessFunction>> { public getKeysCcl() { super("getKeysCcl"); } public getKeysCcl_args getEmptyArgsInstance() { return new getKeysCcl_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { getKeysCcl_result result = new getKeysCcl_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeysCcl_result result = new getKeysCcl_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeysCcl_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getKeysCcl(args.keys, args.ccl, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeysCriteriaTime extends org.apache.thrift.AsyncProcessFunction>> { public getKeysCriteriaTime() { super("getKeysCriteriaTime"); } public getKeysCriteriaTime_args getEmptyArgsInstance() { return new getKeysCriteriaTime_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { getKeysCriteriaTime_result result = new getKeysCriteriaTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeysCriteriaTime_result result = new getKeysCriteriaTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeysCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getKeysCriteriaTime(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeysCriteriaTimestr extends org.apache.thrift.AsyncProcessFunction>> { public getKeysCriteriaTimestr() { super("getKeysCriteriaTimestr"); } public getKeysCriteriaTimestr_args getEmptyArgsInstance() { return new getKeysCriteriaTimestr_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { getKeysCriteriaTimestr_result result = new getKeysCriteriaTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeysCriteriaTimestr_result result = new getKeysCriteriaTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeysCriteriaTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getKeysCriteriaTimestr(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeysCclTime extends org.apache.thrift.AsyncProcessFunction>> { public getKeysCclTime() { super("getKeysCclTime"); } public getKeysCclTime_args getEmptyArgsInstance() { return new getKeysCclTime_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { getKeysCclTime_result result = new getKeysCclTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeysCclTime_result result = new getKeysCclTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeysCclTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getKeysCclTime(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class getKeysCclTimestr extends org.apache.thrift.AsyncProcessFunction>> { public getKeysCclTimestr() { super("getKeysCclTimestr"); } public getKeysCclTimestr_args getEmptyArgsInstance() { return new getKeysCclTimestr_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { getKeysCclTimestr_result result = new getKeysCclTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getKeysCclTimestr_result result = new getKeysCclTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, getKeysCclTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getKeysCclTimestr(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class verifyKeyValueRecord extends org.apache.thrift.AsyncProcessFunction { public verifyKeyValueRecord() { super("verifyKeyValueRecord"); } public verifyKeyValueRecord_args getEmptyArgsInstance() { return new verifyKeyValueRecord_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { verifyKeyValueRecord_result result = new verifyKeyValueRecord_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; verifyKeyValueRecord_result result = new verifyKeyValueRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, verifyKeyValueRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.verifyKeyValueRecord(args.key, args.value, args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class verifyKeyValueRecordTime extends org.apache.thrift.AsyncProcessFunction { public verifyKeyValueRecordTime() { super("verifyKeyValueRecordTime"); } public verifyKeyValueRecordTime_args getEmptyArgsInstance() { return new verifyKeyValueRecordTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { verifyKeyValueRecordTime_result result = new verifyKeyValueRecordTime_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; verifyKeyValueRecordTime_result result = new verifyKeyValueRecordTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, verifyKeyValueRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.verifyKeyValueRecordTime(args.key, args.value, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class verifyKeyValueRecordTimestr extends org.apache.thrift.AsyncProcessFunction { public verifyKeyValueRecordTimestr() { super("verifyKeyValueRecordTimestr"); } public verifyKeyValueRecordTimestr_args getEmptyArgsInstance() { return new verifyKeyValueRecordTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { verifyKeyValueRecordTimestr_result result = new verifyKeyValueRecordTimestr_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; verifyKeyValueRecordTimestr_result result = new verifyKeyValueRecordTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, verifyKeyValueRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.verifyKeyValueRecordTimestr(args.key, args.value, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class jsonifyRecords extends org.apache.thrift.AsyncProcessFunction { public jsonifyRecords() { super("jsonifyRecords"); } public jsonifyRecords_args getEmptyArgsInstance() { return new jsonifyRecords_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(String o) { jsonifyRecords_result result = new jsonifyRecords_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; jsonifyRecords_result result = new jsonifyRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, jsonifyRecords_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.jsonifyRecords(args.records, args.identifier, args.creds, args.transaction, args.environment, resultHandler); } } public static class jsonifyRecordsTime extends org.apache.thrift.AsyncProcessFunction { public jsonifyRecordsTime() { super("jsonifyRecordsTime"); } public jsonifyRecordsTime_args getEmptyArgsInstance() { return new jsonifyRecordsTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(String o) { jsonifyRecordsTime_result result = new jsonifyRecordsTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; jsonifyRecordsTime_result result = new jsonifyRecordsTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, jsonifyRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.jsonifyRecordsTime(args.records, args.timestamp, args.identifier, args.creds, args.transaction, args.environment, resultHandler); } } public static class jsonifyRecordsTimestr extends org.apache.thrift.AsyncProcessFunction { public jsonifyRecordsTimestr() { super("jsonifyRecordsTimestr"); } public jsonifyRecordsTimestr_args getEmptyArgsInstance() { return new jsonifyRecordsTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(String o) { jsonifyRecordsTimestr_result result = new jsonifyRecordsTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; jsonifyRecordsTimestr_result result = new jsonifyRecordsTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, jsonifyRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.jsonifyRecordsTimestr(args.records, args.timestamp, args.identifier, args.creds, args.transaction, args.environment, resultHandler); } } public static class findCriteria extends org.apache.thrift.AsyncProcessFunction> { public findCriteria() { super("findCriteria"); } public findCriteria_args getEmptyArgsInstance() { return new findCriteria_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Set o) { findCriteria_result result = new findCriteria_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; findCriteria_result result = new findCriteria_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, findCriteria_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.findCriteria(args.criteria, args.creds, args.transaction, args.environment, resultHandler); } } public static class findCcl extends org.apache.thrift.AsyncProcessFunction> { public findCcl() { super("findCcl"); } public findCcl_args getEmptyArgsInstance() { return new findCcl_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Set o) { findCcl_result result = new findCcl_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; findCcl_result result = new findCcl_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, findCcl_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.findCcl(args.ccl, args.creds, args.transaction, args.environment, resultHandler); } } public static class findKeyOperatorValues extends org.apache.thrift.AsyncProcessFunction> { public findKeyOperatorValues() { super("findKeyOperatorValues"); } public findKeyOperatorValues_args getEmptyArgsInstance() { return new findKeyOperatorValues_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Set o) { findKeyOperatorValues_result result = new findKeyOperatorValues_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; findKeyOperatorValues_result result = new findKeyOperatorValues_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, findKeyOperatorValues_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.findKeyOperatorValues(args.key, args.operator, args.values, args.creds, args.transaction, args.environment, resultHandler); } } public static class findKeyOperatorValuesTime extends org.apache.thrift.AsyncProcessFunction> { public findKeyOperatorValuesTime() { super("findKeyOperatorValuesTime"); } public findKeyOperatorValuesTime_args getEmptyArgsInstance() { return new findKeyOperatorValuesTime_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Set o) { findKeyOperatorValuesTime_result result = new findKeyOperatorValuesTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; findKeyOperatorValuesTime_result result = new findKeyOperatorValuesTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, findKeyOperatorValuesTime_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.findKeyOperatorValuesTime(args.key, args.operator, args.values, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class findKeyOperatorValuesTimestr extends org.apache.thrift.AsyncProcessFunction> { public findKeyOperatorValuesTimestr() { super("findKeyOperatorValuesTimestr"); } public findKeyOperatorValuesTimestr_args getEmptyArgsInstance() { return new findKeyOperatorValuesTimestr_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Set o) { findKeyOperatorValuesTimestr_result result = new findKeyOperatorValuesTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; findKeyOperatorValuesTimestr_result result = new findKeyOperatorValuesTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, findKeyOperatorValuesTimestr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.findKeyOperatorValuesTimestr(args.key, args.operator, args.values, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class findKeyOperatorstrValues extends org.apache.thrift.AsyncProcessFunction> { public findKeyOperatorstrValues() { super("findKeyOperatorstrValues"); } public findKeyOperatorstrValues_args getEmptyArgsInstance() { return new findKeyOperatorstrValues_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Set o) { findKeyOperatorstrValues_result result = new findKeyOperatorstrValues_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; findKeyOperatorstrValues_result result = new findKeyOperatorstrValues_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, findKeyOperatorstrValues_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.findKeyOperatorstrValues(args.key, args.operator, args.values, args.creds, args.transaction, args.environment, resultHandler); } } public static class findKeyOperatorstrValuesTime extends org.apache.thrift.AsyncProcessFunction> { public findKeyOperatorstrValuesTime() { super("findKeyOperatorstrValuesTime"); } public findKeyOperatorstrValuesTime_args getEmptyArgsInstance() { return new findKeyOperatorstrValuesTime_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Set o) { findKeyOperatorstrValuesTime_result result = new findKeyOperatorstrValuesTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; findKeyOperatorstrValuesTime_result result = new findKeyOperatorstrValuesTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, findKeyOperatorstrValuesTime_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.findKeyOperatorstrValuesTime(args.key, args.operator, args.values, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class findKeyOperatorstrValuesTimestr extends org.apache.thrift.AsyncProcessFunction> { public findKeyOperatorstrValuesTimestr() { super("findKeyOperatorstrValuesTimestr"); } public findKeyOperatorstrValuesTimestr_args getEmptyArgsInstance() { return new findKeyOperatorstrValuesTimestr_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Set o) { findKeyOperatorstrValuesTimestr_result result = new findKeyOperatorstrValuesTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; findKeyOperatorstrValuesTimestr_result result = new findKeyOperatorstrValuesTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, findKeyOperatorstrValuesTimestr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.findKeyOperatorstrValuesTimestr(args.key, args.operator, args.values, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class search extends org.apache.thrift.AsyncProcessFunction> { public search() { super("search"); } public search_args getEmptyArgsInstance() { return new search_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Set o) { search_result result = new search_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; search_result result = new search_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, search_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.search(args.key, args.query, args.creds, args.transaction, args.environment, resultHandler); } } public static class revertKeysRecordsTime extends org.apache.thrift.AsyncProcessFunction { public revertKeysRecordsTime() { super("revertKeysRecordsTime"); } public revertKeysRecordsTime_args getEmptyArgsInstance() { return new revertKeysRecordsTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { revertKeysRecordsTime_result result = new revertKeysRecordsTime_result(); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; revertKeysRecordsTime_result result = new revertKeysRecordsTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, revertKeysRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.revertKeysRecordsTime(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class revertKeysRecordsTimestr extends org.apache.thrift.AsyncProcessFunction { public revertKeysRecordsTimestr() { super("revertKeysRecordsTimestr"); } public revertKeysRecordsTimestr_args getEmptyArgsInstance() { return new revertKeysRecordsTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { revertKeysRecordsTimestr_result result = new revertKeysRecordsTimestr_result(); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; revertKeysRecordsTimestr_result result = new revertKeysRecordsTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, revertKeysRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.revertKeysRecordsTimestr(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class revertKeysRecordTime extends org.apache.thrift.AsyncProcessFunction { public revertKeysRecordTime() { super("revertKeysRecordTime"); } public revertKeysRecordTime_args getEmptyArgsInstance() { return new revertKeysRecordTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { revertKeysRecordTime_result result = new revertKeysRecordTime_result(); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; revertKeysRecordTime_result result = new revertKeysRecordTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, revertKeysRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.revertKeysRecordTime(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class revertKeysRecordTimestr extends org.apache.thrift.AsyncProcessFunction { public revertKeysRecordTimestr() { super("revertKeysRecordTimestr"); } public revertKeysRecordTimestr_args getEmptyArgsInstance() { return new revertKeysRecordTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { revertKeysRecordTimestr_result result = new revertKeysRecordTimestr_result(); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; revertKeysRecordTimestr_result result = new revertKeysRecordTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, revertKeysRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.revertKeysRecordTimestr(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class revertKeyRecordsTime extends org.apache.thrift.AsyncProcessFunction { public revertKeyRecordsTime() { super("revertKeyRecordsTime"); } public revertKeyRecordsTime_args getEmptyArgsInstance() { return new revertKeyRecordsTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { revertKeyRecordsTime_result result = new revertKeyRecordsTime_result(); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; revertKeyRecordsTime_result result = new revertKeyRecordsTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, revertKeyRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.revertKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class revertKeyRecordsTimestr extends org.apache.thrift.AsyncProcessFunction { public revertKeyRecordsTimestr() { super("revertKeyRecordsTimestr"); } public revertKeyRecordsTimestr_args getEmptyArgsInstance() { return new revertKeyRecordsTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { revertKeyRecordsTimestr_result result = new revertKeyRecordsTimestr_result(); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; revertKeyRecordsTimestr_result result = new revertKeyRecordsTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, revertKeyRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.revertKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class revertKeyRecordTime extends org.apache.thrift.AsyncProcessFunction { public revertKeyRecordTime() { super("revertKeyRecordTime"); } public revertKeyRecordTime_args getEmptyArgsInstance() { return new revertKeyRecordTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { revertKeyRecordTime_result result = new revertKeyRecordTime_result(); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; revertKeyRecordTime_result result = new revertKeyRecordTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, revertKeyRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.revertKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class revertKeyRecordTimestr extends org.apache.thrift.AsyncProcessFunction { public revertKeyRecordTimestr() { super("revertKeyRecordTimestr"); } public revertKeyRecordTimestr_args getEmptyArgsInstance() { return new revertKeyRecordTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { revertKeyRecordTimestr_result result = new revertKeyRecordTimestr_result(); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; revertKeyRecordTimestr_result result = new revertKeyRecordTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, revertKeyRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.revertKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class pingRecords extends org.apache.thrift.AsyncProcessFunction> { public pingRecords() { super("pingRecords"); } public pingRecords_args getEmptyArgsInstance() { return new pingRecords_args(); } public AsyncMethodCallback> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { pingRecords_result result = new pingRecords_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; pingRecords_result result = new pingRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, pingRecords_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.pingRecords(args.records, args.creds, args.transaction, args.environment, resultHandler); } } public static class pingRecord extends org.apache.thrift.AsyncProcessFunction { public pingRecord() { super("pingRecord"); } public pingRecord_args getEmptyArgsInstance() { return new pingRecord_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { pingRecord_result result = new pingRecord_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; pingRecord_result result = new pingRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, pingRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.pingRecord(args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class verifyAndSwap extends org.apache.thrift.AsyncProcessFunction { public verifyAndSwap() { super("verifyAndSwap"); } public verifyAndSwap_args getEmptyArgsInstance() { return new verifyAndSwap_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { verifyAndSwap_result result = new verifyAndSwap_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; verifyAndSwap_result result = new verifyAndSwap_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, verifyAndSwap_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.verifyAndSwap(args.key, args.expected, args.record, args.replacement, args.creds, args.transaction, args.environment, resultHandler); } } public static class verifyOrSet extends org.apache.thrift.AsyncProcessFunction { public verifyOrSet() { super("verifyOrSet"); } public verifyOrSet_args getEmptyArgsInstance() { return new verifyOrSet_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { verifyOrSet_result result = new verifyOrSet_result(); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; verifyOrSet_result result = new verifyOrSet_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, verifyOrSet_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.verifyOrSet(args.key, args.value, args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class findOrAddKeyValue extends org.apache.thrift.AsyncProcessFunction { public findOrAddKeyValue() { super("findOrAddKeyValue"); } public findOrAddKeyValue_args getEmptyArgsInstance() { return new findOrAddKeyValue_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { findOrAddKeyValue_result result = new findOrAddKeyValue_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; findOrAddKeyValue_result result = new findOrAddKeyValue_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.DuplicateEntryException) { result.ex3 = (com.cinchapi.concourse.thrift.DuplicateEntryException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex4 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx4IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex5 = (com.cinchapi.concourse.thrift.PermissionException) e; result.setEx5IsSet(true); msg = result; } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase) new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb, msg, msgType, seqid); return; } catch (Exception ex) { LOGGER.error( "Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, findOrAddKeyValue_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.findOrAddKeyValue(args.key, args.value, args.creds, args.transaction, args.environment, resultHandler); } } public static class findOrInsertCriteriaJson extends org.apache.thrift.AsyncProcessFunction { public findOrInsertCriteriaJson() { super("findOrInsertCriteriaJson"); } public findOrInsertCriteriaJson_args getEmptyArgsInstance() { return new findOrInsertCriteriaJson_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { findOrInsertCriteriaJson_result result = new findOrInsertCriteriaJson_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; findOrInsertCriteriaJson_result result = new findOrInsertCriteriaJson_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.DuplicateEntryException) { result.ex3 = (com.cinchapi.concourse.thrift.DuplicateEntryException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, findOrInsertCriteriaJson_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.findOrInsertCriteriaJson(args.criteria, args.json, args.creds, args.transaction, args.environment, resultHandler); } } public static class findOrInsertCclJson extends org.apache.thrift.AsyncProcessFunction { public findOrInsertCclJson() { super("findOrInsertCclJson"); } public findOrInsertCclJson_args getEmptyArgsInstance() { return new findOrInsertCclJson_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { findOrInsertCclJson_result result = new findOrInsertCclJson_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; findOrInsertCclJson_result result = new findOrInsertCclJson_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.DuplicateEntryException) { result.ex4 = (com.cinchapi.concourse.thrift.DuplicateEntryException) e; result.setEx4IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex5 = (com.cinchapi.concourse.thrift.PermissionException) e; result.setEx5IsSet(true); msg = result; } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase) new org.apache.thrift.TApplicationException( org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb, msg, msgType, seqid); return; } catch (Exception ex) { LOGGER.error( "Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, findOrInsertCclJson_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.findOrInsertCclJson(args.ccl, args.json, args.creds, args.transaction, args.environment, resultHandler); } } public static class sumKeyRecord extends org.apache.thrift.AsyncProcessFunction { public sumKeyRecord() { super("sumKeyRecord"); } public sumKeyRecord_args getEmptyArgsInstance() { return new sumKeyRecord_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { sumKeyRecord_result result = new sumKeyRecord_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; sumKeyRecord_result result = new sumKeyRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, sumKeyRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class sumKeyRecordTime extends org.apache.thrift.AsyncProcessFunction { public sumKeyRecordTime() { super("sumKeyRecordTime"); } public sumKeyRecordTime_args getEmptyArgsInstance() { return new sumKeyRecordTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { sumKeyRecordTime_result result = new sumKeyRecordTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; sumKeyRecordTime_result result = new sumKeyRecordTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, sumKeyRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class sumKeyRecordTimestr extends org.apache.thrift.AsyncProcessFunction { public sumKeyRecordTimestr() { super("sumKeyRecordTimestr"); } public sumKeyRecordTimestr_args getEmptyArgsInstance() { return new sumKeyRecordTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { sumKeyRecordTimestr_result result = new sumKeyRecordTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; sumKeyRecordTimestr_result result = new sumKeyRecordTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, sumKeyRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class sumKeyRecords extends org.apache.thrift.AsyncProcessFunction { public sumKeyRecords() { super("sumKeyRecords"); } public sumKeyRecords_args getEmptyArgsInstance() { return new sumKeyRecords_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { sumKeyRecords_result result = new sumKeyRecords_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; sumKeyRecords_result result = new sumKeyRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, sumKeyRecords_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment, resultHandler); } } public static class sumKeyRecordsTime extends org.apache.thrift.AsyncProcessFunction { public sumKeyRecordsTime() { super("sumKeyRecordsTime"); } public sumKeyRecordsTime_args getEmptyArgsInstance() { return new sumKeyRecordsTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { sumKeyRecordsTime_result result = new sumKeyRecordsTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; sumKeyRecordsTime_result result = new sumKeyRecordsTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, sumKeyRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class sumKeyRecordsTimestr extends org.apache.thrift.AsyncProcessFunction { public sumKeyRecordsTimestr() { super("sumKeyRecordsTimestr"); } public sumKeyRecordsTimestr_args getEmptyArgsInstance() { return new sumKeyRecordsTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { sumKeyRecordsTimestr_result result = new sumKeyRecordsTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; sumKeyRecordsTimestr_result result = new sumKeyRecordsTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, sumKeyRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class sumKey extends org.apache.thrift.AsyncProcessFunction { public sumKey() { super("sumKey"); } public sumKey_args getEmptyArgsInstance() { return new sumKey_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { sumKey_result result = new sumKey_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; sumKey_result result = new sumKey_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, sumKey_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKey(args.key, args.creds, args.transaction, args.environment, resultHandler); } } public static class sumKeyTime extends org.apache.thrift.AsyncProcessFunction { public sumKeyTime() { super("sumKeyTime"); } public sumKeyTime_args getEmptyArgsInstance() { return new sumKeyTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { sumKeyTime_result result = new sumKeyTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; sumKeyTime_result result = new sumKeyTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, sumKeyTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyTime(args.key, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class sumKeyTimestr extends org.apache.thrift.AsyncProcessFunction { public sumKeyTimestr() { super("sumKeyTimestr"); } public sumKeyTimestr_args getEmptyArgsInstance() { return new sumKeyTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { sumKeyTimestr_result result = new sumKeyTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; sumKeyTimestr_result result = new sumKeyTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, sumKeyTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyTimestr(args.key, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class sumKeyCriteria extends org.apache.thrift.AsyncProcessFunction { public sumKeyCriteria() { super("sumKeyCriteria"); } public sumKeyCriteria_args getEmptyArgsInstance() { return new sumKeyCriteria_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { sumKeyCriteria_result result = new sumKeyCriteria_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; sumKeyCriteria_result result = new sumKeyCriteria_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, sumKeyCriteria_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment, resultHandler); } } public static class sumKeyCriteriaTime extends org.apache.thrift.AsyncProcessFunction { public sumKeyCriteriaTime() { super("sumKeyCriteriaTime"); } public sumKeyCriteriaTime_args getEmptyArgsInstance() { return new sumKeyCriteriaTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { sumKeyCriteriaTime_result result = new sumKeyCriteriaTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; sumKeyCriteriaTime_result result = new sumKeyCriteriaTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, sumKeyCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class sumKeyCriteriaTimestr extends org.apache.thrift.AsyncProcessFunction { public sumKeyCriteriaTimestr() { super("sumKeyCriteriaTimestr"); } public sumKeyCriteriaTimestr_args getEmptyArgsInstance() { return new sumKeyCriteriaTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { sumKeyCriteriaTimestr_result result = new sumKeyCriteriaTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; sumKeyCriteriaTimestr_result result = new sumKeyCriteriaTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, sumKeyCriteriaTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyCriteriaTimestr(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class sumKeyCcl extends org.apache.thrift.AsyncProcessFunction { public sumKeyCcl() { super("sumKeyCcl"); } public sumKeyCcl_args getEmptyArgsInstance() { return new sumKeyCcl_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { sumKeyCcl_result result = new sumKeyCcl_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; sumKeyCcl_result result = new sumKeyCcl_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, sumKeyCcl_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment, resultHandler); } } public static class sumKeyCclTime extends org.apache.thrift.AsyncProcessFunction { public sumKeyCclTime() { super("sumKeyCclTime"); } public sumKeyCclTime_args getEmptyArgsInstance() { return new sumKeyCclTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { sumKeyCclTime_result result = new sumKeyCclTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; sumKeyCclTime_result result = new sumKeyCclTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, sumKeyCclTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class sumKeyCclTimestr extends org.apache.thrift.AsyncProcessFunction { public sumKeyCclTimestr() { super("sumKeyCclTimestr"); } public sumKeyCclTimestr_args getEmptyArgsInstance() { return new sumKeyCclTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { sumKeyCclTimestr_result result = new sumKeyCclTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; sumKeyCclTimestr_result result = new sumKeyCclTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, sumKeyCclTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyCclTimestr(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class averageKeyRecord extends org.apache.thrift.AsyncProcessFunction { public averageKeyRecord() { super("averageKeyRecord"); } public averageKeyRecord_args getEmptyArgsInstance() { return new averageKeyRecord_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { averageKeyRecord_result result = new averageKeyRecord_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; averageKeyRecord_result result = new averageKeyRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, averageKeyRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class averageKeyRecordTime extends org.apache.thrift.AsyncProcessFunction { public averageKeyRecordTime() { super("averageKeyRecordTime"); } public averageKeyRecordTime_args getEmptyArgsInstance() { return new averageKeyRecordTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { averageKeyRecordTime_result result = new averageKeyRecordTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; averageKeyRecordTime_result result = new averageKeyRecordTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, averageKeyRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class averageKeyRecordTimestr extends org.apache.thrift.AsyncProcessFunction { public averageKeyRecordTimestr() { super("averageKeyRecordTimestr"); } public averageKeyRecordTimestr_args getEmptyArgsInstance() { return new averageKeyRecordTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { averageKeyRecordTimestr_result result = new averageKeyRecordTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; averageKeyRecordTimestr_result result = new averageKeyRecordTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, averageKeyRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class averageKeyRecords extends org.apache.thrift.AsyncProcessFunction { public averageKeyRecords() { super("averageKeyRecords"); } public averageKeyRecords_args getEmptyArgsInstance() { return new averageKeyRecords_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { averageKeyRecords_result result = new averageKeyRecords_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; averageKeyRecords_result result = new averageKeyRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, averageKeyRecords_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment, resultHandler); } } public static class averageKeyRecordsTime extends org.apache.thrift.AsyncProcessFunction { public averageKeyRecordsTime() { super("averageKeyRecordsTime"); } public averageKeyRecordsTime_args getEmptyArgsInstance() { return new averageKeyRecordsTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { averageKeyRecordsTime_result result = new averageKeyRecordsTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; averageKeyRecordsTime_result result = new averageKeyRecordsTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, averageKeyRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class averageKeyRecordsTimestr extends org.apache.thrift.AsyncProcessFunction { public averageKeyRecordsTimestr() { super("averageKeyRecordsTimestr"); } public averageKeyRecordsTimestr_args getEmptyArgsInstance() { return new averageKeyRecordsTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { averageKeyRecordsTimestr_result result = new averageKeyRecordsTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; averageKeyRecordsTimestr_result result = new averageKeyRecordsTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, averageKeyRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class averageKey extends org.apache.thrift.AsyncProcessFunction { public averageKey() { super("averageKey"); } public averageKey_args getEmptyArgsInstance() { return new averageKey_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { averageKey_result result = new averageKey_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; averageKey_result result = new averageKey_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, averageKey_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKey(args.key, args.creds, args.transaction, args.environment, resultHandler); } } public static class averageKeyTime extends org.apache.thrift.AsyncProcessFunction { public averageKeyTime() { super("averageKeyTime"); } public averageKeyTime_args getEmptyArgsInstance() { return new averageKeyTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { averageKeyTime_result result = new averageKeyTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; averageKeyTime_result result = new averageKeyTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, averageKeyTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyTime(args.key, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class averageKeyTimestr extends org.apache.thrift.AsyncProcessFunction { public averageKeyTimestr() { super("averageKeyTimestr"); } public averageKeyTimestr_args getEmptyArgsInstance() { return new averageKeyTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { averageKeyTimestr_result result = new averageKeyTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; averageKeyTimestr_result result = new averageKeyTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, averageKeyTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyTimestr(args.key, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class averageKeyCriteria extends org.apache.thrift.AsyncProcessFunction { public averageKeyCriteria() { super("averageKeyCriteria"); } public averageKeyCriteria_args getEmptyArgsInstance() { return new averageKeyCriteria_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { averageKeyCriteria_result result = new averageKeyCriteria_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; averageKeyCriteria_result result = new averageKeyCriteria_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, averageKeyCriteria_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment, resultHandler); } } public static class averageKeyCriteriaTime extends org.apache.thrift.AsyncProcessFunction { public averageKeyCriteriaTime() { super("averageKeyCriteriaTime"); } public averageKeyCriteriaTime_args getEmptyArgsInstance() { return new averageKeyCriteriaTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { averageKeyCriteriaTime_result result = new averageKeyCriteriaTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; averageKeyCriteriaTime_result result = new averageKeyCriteriaTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, averageKeyCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class averageKeyCriteriaTimestr extends org.apache.thrift.AsyncProcessFunction { public averageKeyCriteriaTimestr() { super("averageKeyCriteriaTimestr"); } public averageKeyCriteriaTimestr_args getEmptyArgsInstance() { return new averageKeyCriteriaTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { averageKeyCriteriaTimestr_result result = new averageKeyCriteriaTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; averageKeyCriteriaTimestr_result result = new averageKeyCriteriaTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, averageKeyCriteriaTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyCriteriaTimestr(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class averageKeyCcl extends org.apache.thrift.AsyncProcessFunction { public averageKeyCcl() { super("averageKeyCcl"); } public averageKeyCcl_args getEmptyArgsInstance() { return new averageKeyCcl_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { averageKeyCcl_result result = new averageKeyCcl_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; averageKeyCcl_result result = new averageKeyCcl_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, averageKeyCcl_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment, resultHandler); } } public static class averageKeyCclTime extends org.apache.thrift.AsyncProcessFunction { public averageKeyCclTime() { super("averageKeyCclTime"); } public averageKeyCclTime_args getEmptyArgsInstance() { return new averageKeyCclTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { averageKeyCclTime_result result = new averageKeyCclTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; averageKeyCclTime_result result = new averageKeyCclTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, averageKeyCclTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class averageKeyCclTimestr extends org.apache.thrift.AsyncProcessFunction { public averageKeyCclTimestr() { super("averageKeyCclTimestr"); } public averageKeyCclTimestr_args getEmptyArgsInstance() { return new averageKeyCclTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { averageKeyCclTimestr_result result = new averageKeyCclTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; averageKeyCclTimestr_result result = new averageKeyCclTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, averageKeyCclTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyCclTimestr(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class countKeyRecord extends org.apache.thrift.AsyncProcessFunction { public countKeyRecord() { super("countKeyRecord"); } public countKeyRecord_args getEmptyArgsInstance() { return new countKeyRecord_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { countKeyRecord_result result = new countKeyRecord_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; countKeyRecord_result result = new countKeyRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, countKeyRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.countKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class countKeyRecordTime extends org.apache.thrift.AsyncProcessFunction { public countKeyRecordTime() { super("countKeyRecordTime"); } public countKeyRecordTime_args getEmptyArgsInstance() { return new countKeyRecordTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { countKeyRecordTime_result result = new countKeyRecordTime_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; countKeyRecordTime_result result = new countKeyRecordTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, countKeyRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.countKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class countKeyRecordTimestr extends org.apache.thrift.AsyncProcessFunction { public countKeyRecordTimestr() { super("countKeyRecordTimestr"); } public countKeyRecordTimestr_args getEmptyArgsInstance() { return new countKeyRecordTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { countKeyRecordTimestr_result result = new countKeyRecordTimestr_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; countKeyRecordTimestr_result result = new countKeyRecordTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, countKeyRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.countKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class countKeyRecords extends org.apache.thrift.AsyncProcessFunction { public countKeyRecords() { super("countKeyRecords"); } public countKeyRecords_args getEmptyArgsInstance() { return new countKeyRecords_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { countKeyRecords_result result = new countKeyRecords_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; countKeyRecords_result result = new countKeyRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, countKeyRecords_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.countKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment, resultHandler); } } public static class countKeyRecordsTime extends org.apache.thrift.AsyncProcessFunction { public countKeyRecordsTime() { super("countKeyRecordsTime"); } public countKeyRecordsTime_args getEmptyArgsInstance() { return new countKeyRecordsTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { countKeyRecordsTime_result result = new countKeyRecordsTime_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; countKeyRecordsTime_result result = new countKeyRecordsTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, countKeyRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.countKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class countKeyRecordsTimestr extends org.apache.thrift.AsyncProcessFunction { public countKeyRecordsTimestr() { super("countKeyRecordsTimestr"); } public countKeyRecordsTimestr_args getEmptyArgsInstance() { return new countKeyRecordsTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { countKeyRecordsTimestr_result result = new countKeyRecordsTimestr_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; countKeyRecordsTimestr_result result = new countKeyRecordsTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, countKeyRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.countKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class countKey extends org.apache.thrift.AsyncProcessFunction { public countKey() { super("countKey"); } public countKey_args getEmptyArgsInstance() { return new countKey_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { countKey_result result = new countKey_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; countKey_result result = new countKey_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, countKey_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.countKey(args.key, args.creds, args.transaction, args.environment, resultHandler); } } public static class countKeyTime extends org.apache.thrift.AsyncProcessFunction { public countKeyTime() { super("countKeyTime"); } public countKeyTime_args getEmptyArgsInstance() { return new countKeyTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { countKeyTime_result result = new countKeyTime_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; countKeyTime_result result = new countKeyTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, countKeyTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.countKeyTime(args.key, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class countKeyTimestr extends org.apache.thrift.AsyncProcessFunction { public countKeyTimestr() { super("countKeyTimestr"); } public countKeyTimestr_args getEmptyArgsInstance() { return new countKeyTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { countKeyTimestr_result result = new countKeyTimestr_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; countKeyTimestr_result result = new countKeyTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, countKeyTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.countKeyTimestr(args.key, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class countKeyCriteria extends org.apache.thrift.AsyncProcessFunction { public countKeyCriteria() { super("countKeyCriteria"); } public countKeyCriteria_args getEmptyArgsInstance() { return new countKeyCriteria_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { countKeyCriteria_result result = new countKeyCriteria_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; countKeyCriteria_result result = new countKeyCriteria_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, countKeyCriteria_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.countKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment, resultHandler); } } public static class countKeyCriteriaTime extends org.apache.thrift.AsyncProcessFunction { public countKeyCriteriaTime() { super("countKeyCriteriaTime"); } public countKeyCriteriaTime_args getEmptyArgsInstance() { return new countKeyCriteriaTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { countKeyCriteriaTime_result result = new countKeyCriteriaTime_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; countKeyCriteriaTime_result result = new countKeyCriteriaTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, countKeyCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.countKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class countKeyCriteriaTimestr extends org.apache.thrift.AsyncProcessFunction { public countKeyCriteriaTimestr() { super("countKeyCriteriaTimestr"); } public countKeyCriteriaTimestr_args getEmptyArgsInstance() { return new countKeyCriteriaTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { countKeyCriteriaTimestr_result result = new countKeyCriteriaTimestr_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; countKeyCriteriaTimestr_result result = new countKeyCriteriaTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, countKeyCriteriaTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.countKeyCriteriaTimestr(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class countKeyCcl extends org.apache.thrift.AsyncProcessFunction { public countKeyCcl() { super("countKeyCcl"); } public countKeyCcl_args getEmptyArgsInstance() { return new countKeyCcl_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { countKeyCcl_result result = new countKeyCcl_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; countKeyCcl_result result = new countKeyCcl_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, countKeyCcl_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.countKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment, resultHandler); } } public static class countKeyCclTime extends org.apache.thrift.AsyncProcessFunction { public countKeyCclTime() { super("countKeyCclTime"); } public countKeyCclTime_args getEmptyArgsInstance() { return new countKeyCclTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { countKeyCclTime_result result = new countKeyCclTime_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; countKeyCclTime_result result = new countKeyCclTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, countKeyCclTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.countKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class countKeyCclTimestr extends org.apache.thrift.AsyncProcessFunction { public countKeyCclTimestr() { super("countKeyCclTimestr"); } public countKeyCclTimestr_args getEmptyArgsInstance() { return new countKeyCclTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { countKeyCclTimestr_result result = new countKeyCclTimestr_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; countKeyCclTimestr_result result = new countKeyCclTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, countKeyCclTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.countKeyCclTimestr(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class maxKeyRecord extends org.apache.thrift.AsyncProcessFunction { public maxKeyRecord() { super("maxKeyRecord"); } public maxKeyRecord_args getEmptyArgsInstance() { return new maxKeyRecord_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { maxKeyRecord_result result = new maxKeyRecord_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; maxKeyRecord_result result = new maxKeyRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, maxKeyRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.maxKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class maxKeyRecordTime extends org.apache.thrift.AsyncProcessFunction { public maxKeyRecordTime() { super("maxKeyRecordTime"); } public maxKeyRecordTime_args getEmptyArgsInstance() { return new maxKeyRecordTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { maxKeyRecordTime_result result = new maxKeyRecordTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; maxKeyRecordTime_result result = new maxKeyRecordTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, maxKeyRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.maxKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class maxKeyRecordTimestr extends org.apache.thrift.AsyncProcessFunction { public maxKeyRecordTimestr() { super("maxKeyRecordTimestr"); } public maxKeyRecordTimestr_args getEmptyArgsInstance() { return new maxKeyRecordTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { maxKeyRecordTimestr_result result = new maxKeyRecordTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; maxKeyRecordTimestr_result result = new maxKeyRecordTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, maxKeyRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.maxKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class maxKeyRecords extends org.apache.thrift.AsyncProcessFunction { public maxKeyRecords() { super("maxKeyRecords"); } public maxKeyRecords_args getEmptyArgsInstance() { return new maxKeyRecords_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { maxKeyRecords_result result = new maxKeyRecords_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; maxKeyRecords_result result = new maxKeyRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, maxKeyRecords_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.maxKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment, resultHandler); } } public static class maxKeyRecordsTime extends org.apache.thrift.AsyncProcessFunction { public maxKeyRecordsTime() { super("maxKeyRecordsTime"); } public maxKeyRecordsTime_args getEmptyArgsInstance() { return new maxKeyRecordsTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { maxKeyRecordsTime_result result = new maxKeyRecordsTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; maxKeyRecordsTime_result result = new maxKeyRecordsTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, maxKeyRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.maxKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class maxKeyRecordsTimestr extends org.apache.thrift.AsyncProcessFunction { public maxKeyRecordsTimestr() { super("maxKeyRecordsTimestr"); } public maxKeyRecordsTimestr_args getEmptyArgsInstance() { return new maxKeyRecordsTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { maxKeyRecordsTimestr_result result = new maxKeyRecordsTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; maxKeyRecordsTimestr_result result = new maxKeyRecordsTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, maxKeyRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.maxKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class maxKeyCriteria extends org.apache.thrift.AsyncProcessFunction { public maxKeyCriteria() { super("maxKeyCriteria"); } public maxKeyCriteria_args getEmptyArgsInstance() { return new maxKeyCriteria_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { maxKeyCriteria_result result = new maxKeyCriteria_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; maxKeyCriteria_result result = new maxKeyCriteria_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, maxKeyCriteria_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.maxKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment, resultHandler); } } public static class maxKeyCriteriaTime extends org.apache.thrift.AsyncProcessFunction { public maxKeyCriteriaTime() { super("maxKeyCriteriaTime"); } public maxKeyCriteriaTime_args getEmptyArgsInstance() { return new maxKeyCriteriaTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { maxKeyCriteriaTime_result result = new maxKeyCriteriaTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; maxKeyCriteriaTime_result result = new maxKeyCriteriaTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, maxKeyCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.maxKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class maxKeyCriteriaTimestr extends org.apache.thrift.AsyncProcessFunction { public maxKeyCriteriaTimestr() { super("maxKeyCriteriaTimestr"); } public maxKeyCriteriaTimestr_args getEmptyArgsInstance() { return new maxKeyCriteriaTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { maxKeyCriteriaTimestr_result result = new maxKeyCriteriaTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; maxKeyCriteriaTimestr_result result = new maxKeyCriteriaTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, maxKeyCriteriaTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.maxKeyCriteriaTimestr(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class maxKeyCcl extends org.apache.thrift.AsyncProcessFunction { public maxKeyCcl() { super("maxKeyCcl"); } public maxKeyCcl_args getEmptyArgsInstance() { return new maxKeyCcl_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { maxKeyCcl_result result = new maxKeyCcl_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; maxKeyCcl_result result = new maxKeyCcl_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, maxKeyCcl_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.maxKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment, resultHandler); } } public static class maxKeyCclTime extends org.apache.thrift.AsyncProcessFunction { public maxKeyCclTime() { super("maxKeyCclTime"); } public maxKeyCclTime_args getEmptyArgsInstance() { return new maxKeyCclTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { maxKeyCclTime_result result = new maxKeyCclTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; maxKeyCclTime_result result = new maxKeyCclTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, maxKeyCclTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.maxKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class maxKeyCclTimestr extends org.apache.thrift.AsyncProcessFunction { public maxKeyCclTimestr() { super("maxKeyCclTimestr"); } public maxKeyCclTimestr_args getEmptyArgsInstance() { return new maxKeyCclTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { maxKeyCclTimestr_result result = new maxKeyCclTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; maxKeyCclTimestr_result result = new maxKeyCclTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, maxKeyCclTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.maxKeyCclTimestr(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class maxKey extends org.apache.thrift.AsyncProcessFunction { public maxKey() { super("maxKey"); } public maxKey_args getEmptyArgsInstance() { return new maxKey_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { maxKey_result result = new maxKey_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; maxKey_result result = new maxKey_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, maxKey_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.maxKey(args.key, args.creds, args.transaction, args.environment, resultHandler); } } public static class maxKeyTime extends org.apache.thrift.AsyncProcessFunction { public maxKeyTime() { super("maxKeyTime"); } public maxKeyTime_args getEmptyArgsInstance() { return new maxKeyTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { maxKeyTime_result result = new maxKeyTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; maxKeyTime_result result = new maxKeyTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, maxKeyTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.maxKeyTime(args.key, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class maxKeyTimestr extends org.apache.thrift.AsyncProcessFunction { public maxKeyTimestr() { super("maxKeyTimestr"); } public maxKeyTimestr_args getEmptyArgsInstance() { return new maxKeyTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { maxKeyTimestr_result result = new maxKeyTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; maxKeyTimestr_result result = new maxKeyTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, maxKeyTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.maxKeyTimestr(args.key, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class minKeyRecord extends org.apache.thrift.AsyncProcessFunction { public minKeyRecord() { super("minKeyRecord"); } public minKeyRecord_args getEmptyArgsInstance() { return new minKeyRecord_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { minKeyRecord_result result = new minKeyRecord_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; minKeyRecord_result result = new minKeyRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, minKeyRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.minKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class minKeyRecordTime extends org.apache.thrift.AsyncProcessFunction { public minKeyRecordTime() { super("minKeyRecordTime"); } public minKeyRecordTime_args getEmptyArgsInstance() { return new minKeyRecordTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { minKeyRecordTime_result result = new minKeyRecordTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; minKeyRecordTime_result result = new minKeyRecordTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, minKeyRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.minKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class minKeyRecordTimestr extends org.apache.thrift.AsyncProcessFunction { public minKeyRecordTimestr() { super("minKeyRecordTimestr"); } public minKeyRecordTimestr_args getEmptyArgsInstance() { return new minKeyRecordTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { minKeyRecordTimestr_result result = new minKeyRecordTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; minKeyRecordTimestr_result result = new minKeyRecordTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, minKeyRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.minKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class minKey extends org.apache.thrift.AsyncProcessFunction { public minKey() { super("minKey"); } public minKey_args getEmptyArgsInstance() { return new minKey_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { minKey_result result = new minKey_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; minKey_result result = new minKey_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, minKey_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.minKey(args.key, args.creds, args.transaction, args.environment, resultHandler); } } public static class minKeyRecordsTime extends org.apache.thrift.AsyncProcessFunction { public minKeyRecordsTime() { super("minKeyRecordsTime"); } public minKeyRecordsTime_args getEmptyArgsInstance() { return new minKeyRecordsTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { minKeyRecordsTime_result result = new minKeyRecordsTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; minKeyRecordsTime_result result = new minKeyRecordsTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, minKeyRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.minKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class minKeyRecordsTimestr extends org.apache.thrift.AsyncProcessFunction { public minKeyRecordsTimestr() { super("minKeyRecordsTimestr"); } public minKeyRecordsTimestr_args getEmptyArgsInstance() { return new minKeyRecordsTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { minKeyRecordsTimestr_result result = new minKeyRecordsTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; minKeyRecordsTimestr_result result = new minKeyRecordsTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, minKeyRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.minKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class minKeyCriteria extends org.apache.thrift.AsyncProcessFunction { public minKeyCriteria() { super("minKeyCriteria"); } public minKeyCriteria_args getEmptyArgsInstance() { return new minKeyCriteria_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { minKeyCriteria_result result = new minKeyCriteria_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; minKeyCriteria_result result = new minKeyCriteria_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, minKeyCriteria_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.minKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment, resultHandler); } } public static class minKeyCriteriaTime extends org.apache.thrift.AsyncProcessFunction { public minKeyCriteriaTime() { super("minKeyCriteriaTime"); } public minKeyCriteriaTime_args getEmptyArgsInstance() { return new minKeyCriteriaTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { minKeyCriteriaTime_result result = new minKeyCriteriaTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; minKeyCriteriaTime_result result = new minKeyCriteriaTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, minKeyCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.minKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class minKeyCriteriaTimestr extends org.apache.thrift.AsyncProcessFunction { public minKeyCriteriaTimestr() { super("minKeyCriteriaTimestr"); } public minKeyCriteriaTimestr_args getEmptyArgsInstance() { return new minKeyCriteriaTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { minKeyCriteriaTimestr_result result = new minKeyCriteriaTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; minKeyCriteriaTimestr_result result = new minKeyCriteriaTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, minKeyCriteriaTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.minKeyCriteriaTimestr(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class minKeyCcl extends org.apache.thrift.AsyncProcessFunction { public minKeyCcl() { super("minKeyCcl"); } public minKeyCcl_args getEmptyArgsInstance() { return new minKeyCcl_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { minKeyCcl_result result = new minKeyCcl_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; minKeyCcl_result result = new minKeyCcl_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, minKeyCcl_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.minKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment, resultHandler); } } public static class minKeyCclTime extends org.apache.thrift.AsyncProcessFunction { public minKeyCclTime() { super("minKeyCclTime"); } public minKeyCclTime_args getEmptyArgsInstance() { return new minKeyCclTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { minKeyCclTime_result result = new minKeyCclTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; minKeyCclTime_result result = new minKeyCclTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, minKeyCclTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.minKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class minKeyCclTimestr extends org.apache.thrift.AsyncProcessFunction { public minKeyCclTimestr() { super("minKeyCclTimestr"); } public minKeyCclTimestr_args getEmptyArgsInstance() { return new minKeyCclTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { minKeyCclTimestr_result result = new minKeyCclTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; minKeyCclTimestr_result result = new minKeyCclTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, minKeyCclTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.minKeyCclTimestr(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class minKeyTime extends org.apache.thrift.AsyncProcessFunction { public minKeyTime() { super("minKeyTime"); } public minKeyTime_args getEmptyArgsInstance() { return new minKeyTime_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { minKeyTime_result result = new minKeyTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; minKeyTime_result result = new minKeyTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, minKeyTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.minKeyTime(args.key, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class minKeyTimestr extends org.apache.thrift.AsyncProcessFunction { public minKeyTimestr() { super("minKeyTimestr"); } public minKeyTimestr_args getEmptyArgsInstance() { return new minKeyTimestr_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { minKeyTimestr_result result = new minKeyTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; minKeyTimestr_result result = new minKeyTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, minKeyTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.minKeyTimestr(args.key, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class minKeyRecords extends org.apache.thrift.AsyncProcessFunction { public minKeyRecords() { super("minKeyRecords"); } public minKeyRecords_args getEmptyArgsInstance() { return new minKeyRecords_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.TObject o) { minKeyRecords_result result = new minKeyRecords_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; minKeyRecords_result result = new minKeyRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = 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.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, minKeyRecords_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.minKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeyRecord extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyRecord() { super("navigateKeyRecord"); } public navigateKeyRecord_args getEmptyArgsInstance() { return new navigateKeyRecord_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { navigateKeyRecord_result result = new navigateKeyRecord_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeyRecord_result result = new navigateKeyRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeyRecord_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeyRecordTime extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyRecordTime() { super("navigateKeyRecordTime"); } public navigateKeyRecordTime_args getEmptyArgsInstance() { return new navigateKeyRecordTime_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { navigateKeyRecordTime_result result = new navigateKeyRecordTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeyRecordTime_result result = new navigateKeyRecordTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeyRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeyRecordTimestr extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyRecordTimestr() { super("navigateKeyRecordTimestr"); } public navigateKeyRecordTimestr_args getEmptyArgsInstance() { return new navigateKeyRecordTimestr_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { navigateKeyRecordTimestr_result result = new navigateKeyRecordTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeyRecordTimestr_result result = new navigateKeyRecordTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeyRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeysRecord extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysRecord() { super("navigateKeysRecord"); } public navigateKeysRecord_args getEmptyArgsInstance() { return new navigateKeysRecord_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { navigateKeysRecord_result result = new navigateKeysRecord_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeysRecord_result result = new navigateKeysRecord_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeysRecord_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysRecord(args.keys, args.record, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeysRecordTime extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysRecordTime() { super("navigateKeysRecordTime"); } public navigateKeysRecordTime_args getEmptyArgsInstance() { return new navigateKeysRecordTime_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { navigateKeysRecordTime_result result = new navigateKeysRecordTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeysRecordTime_result result = new navigateKeysRecordTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeysRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysRecordTime(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeysRecordTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysRecordTimestr() { super("navigateKeysRecordTimestr"); } public navigateKeysRecordTimestr_args getEmptyArgsInstance() { return new navigateKeysRecordTimestr_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { navigateKeysRecordTimestr_result result = new navigateKeysRecordTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeysRecordTimestr_result result = new navigateKeysRecordTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeysRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysRecordTimestr(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeysRecords extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysRecords() { super("navigateKeysRecords"); } public navigateKeysRecords_args getEmptyArgsInstance() { return new navigateKeysRecords_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { navigateKeysRecords_result result = new navigateKeysRecords_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeysRecords_result result = new navigateKeysRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeysRecords_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysRecords(args.keys, args.records, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeyRecords extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyRecords() { super("navigateKeyRecords"); } public navigateKeyRecords_args getEmptyArgsInstance() { return new navigateKeyRecords_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { navigateKeyRecords_result result = new navigateKeyRecords_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeyRecords_result result = new navigateKeyRecords_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeyRecords_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeyRecordsTime extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyRecordsTime() { super("navigateKeyRecordsTime"); } public navigateKeyRecordsTime_args getEmptyArgsInstance() { return new navigateKeyRecordsTime_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { navigateKeyRecordsTime_result result = new navigateKeyRecordsTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeyRecordsTime_result result = new navigateKeyRecordsTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeyRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeyRecordsTimestr extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyRecordsTimestr() { super("navigateKeyRecordsTimestr"); } public navigateKeyRecordsTimestr_args getEmptyArgsInstance() { return new navigateKeyRecordsTimestr_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { navigateKeyRecordsTimestr_result result = new navigateKeyRecordsTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeyRecordsTimestr_result result = new navigateKeyRecordsTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeyRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeysRecordsTime extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysRecordsTime() { super("navigateKeysRecordsTime"); } public navigateKeysRecordsTime_args getEmptyArgsInstance() { return new navigateKeysRecordsTime_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { navigateKeysRecordsTime_result result = new navigateKeysRecordsTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeysRecordsTime_result result = new navigateKeysRecordsTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeysRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysRecordsTime(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeysRecordsTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysRecordsTimestr() { super("navigateKeysRecordsTimestr"); } public navigateKeysRecordsTimestr_args getEmptyArgsInstance() { return new navigateKeysRecordsTimestr_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { navigateKeysRecordsTimestr_result result = new navigateKeysRecordsTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeysRecordsTimestr_result result = new navigateKeysRecordsTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else 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.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeysRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysRecordsTimestr(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeyCcl extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyCcl() { super("navigateKeyCcl"); } public navigateKeyCcl_args getEmptyArgsInstance() { return new navigateKeyCcl_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { navigateKeyCcl_result result = new navigateKeyCcl_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeyCcl_result result = new navigateKeyCcl_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeyCcl_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeyCclTime extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyCclTime() { super("navigateKeyCclTime"); } public navigateKeyCclTime_args getEmptyArgsInstance() { return new navigateKeyCclTime_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { navigateKeyCclTime_result result = new navigateKeyCclTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeyCclTime_result result = new navigateKeyCclTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeyCclTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeyCclTimestr extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyCclTimestr() { super("navigateKeyCclTimestr"); } public navigateKeyCclTimestr_args getEmptyArgsInstance() { return new navigateKeyCclTimestr_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { navigateKeyCclTimestr_result result = new navigateKeyCclTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeyCclTimestr_result result = new navigateKeyCclTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeyCclTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyCclTimestr(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeysCcl extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysCcl() { super("navigateKeysCcl"); } public navigateKeysCcl_args getEmptyArgsInstance() { return new navigateKeysCcl_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { navigateKeysCcl_result result = new navigateKeysCcl_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeysCcl_result result = new navigateKeysCcl_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeysCcl_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysCcl(args.keys, args.ccl, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeysCclTime extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysCclTime() { super("navigateKeysCclTime"); } public navigateKeysCclTime_args getEmptyArgsInstance() { return new navigateKeysCclTime_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { navigateKeysCclTime_result result = new navigateKeysCclTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeysCclTime_result result = new navigateKeysCclTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeysCclTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysCclTime(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeysCclTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysCclTimestr() { super("navigateKeysCclTimestr"); } public navigateKeysCclTimestr_args getEmptyArgsInstance() { return new navigateKeysCclTimestr_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { navigateKeysCclTimestr_result result = new navigateKeysCclTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeysCclTimestr_result result = new navigateKeysCclTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeysCclTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysCclTimestr(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeyCriteria extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyCriteria() { super("navigateKeyCriteria"); } public navigateKeyCriteria_args getEmptyArgsInstance() { return new navigateKeyCriteria_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { navigateKeyCriteria_result result = new navigateKeyCriteria_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeyCriteria_result result = new navigateKeyCriteria_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeyCriteria_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeyCriteriaTime extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyCriteriaTime() { super("navigateKeyCriteriaTime"); } public navigateKeyCriteriaTime_args getEmptyArgsInstance() { return new navigateKeyCriteriaTime_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { navigateKeyCriteriaTime_result result = new navigateKeyCriteriaTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeyCriteriaTime_result result = new navigateKeyCriteriaTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeyCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeyCriteriaTimestr extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyCriteriaTimestr() { super("navigateKeyCriteriaTimestr"); } public navigateKeyCriteriaTimestr_args getEmptyArgsInstance() { return new navigateKeyCriteriaTimestr_args(); } public AsyncMethodCallback>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete( Map> o) { navigateKeyCriteriaTimestr_result result = new navigateKeyCriteriaTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeyCriteriaTimestr_result result = new navigateKeyCriteriaTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeyCriteriaTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyCriteriaTimestr(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeysCriteria extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysCriteria() { super("navigateKeysCriteria"); } public navigateKeysCriteria_args getEmptyArgsInstance() { return new navigateKeysCriteria_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { navigateKeysCriteria_result result = new navigateKeysCriteria_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeysCriteria_result result = new navigateKeysCriteria_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeysCriteria_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysCriteria(args.keys, args.criteria, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeysCriteriaTime extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysCriteriaTime() { super("navigateKeysCriteriaTime"); } public navigateKeysCriteriaTime_args getEmptyArgsInstance() { return new navigateKeysCriteriaTime_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { navigateKeysCriteriaTime_result result = new navigateKeysCriteriaTime_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeysCriteriaTime_result result = new navigateKeysCriteriaTime_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeysCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysCriteriaTime(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class navigateKeysCriteriaTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysCriteriaTimestr() { super("navigateKeysCriteriaTimestr"); } public navigateKeysCriteriaTimestr_args getEmptyArgsInstance() { return new navigateKeysCriteriaTimestr_args(); } public AsyncMethodCallback>>> getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete( Map>> o) { navigateKeysCriteriaTimestr_result result = new navigateKeysCriteriaTimestr_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; navigateKeysCriteriaTimestr_result result = new navigateKeysCriteriaTimestr_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, navigateKeysCriteriaTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysCriteriaTimestr(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment, resultHandler); } } public static class getServerEnvironment extends org.apache.thrift.AsyncProcessFunction { public getServerEnvironment() { super("getServerEnvironment"); } public getServerEnvironment_args getEmptyArgsInstance() { return new getServerEnvironment_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(String o) { getServerEnvironment_result result = new getServerEnvironment_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getServerEnvironment_result result = new getServerEnvironment_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, getServerEnvironment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.getServerEnvironment(args.creds, args.token, args.environment, resultHandler); } } public static class getServerVersion extends org.apache.thrift.AsyncProcessFunction { public getServerVersion() { super("getServerVersion"); } public getServerVersion_args getEmptyArgsInstance() { return new getServerVersion_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(String o) { getServerVersion_result result = new getServerVersion_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getServerVersion_result result = new getServerVersion_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, getServerVersion_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.getServerVersion(resultHandler); } } public static class time extends org.apache.thrift.AsyncProcessFunction { public time() { super("time"); } public time_args getEmptyArgsInstance() { return new time_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { time_result result = new time_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; time_result result = new time_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex3 = (com.cinchapi.concourse.thrift.PermissionException) 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, time_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.time(args.creds, args.token, args.environment, resultHandler); } } public static class timePhrase extends org.apache.thrift.AsyncProcessFunction { public timePhrase() { super("timePhrase"); } public timePhrase_args getEmptyArgsInstance() { return new timePhrase_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { timePhrase_result result = new timePhrase_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; timePhrase_result result = new timePhrase_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.PermissionException) { result.ex4 = (com.cinchapi.concourse.thrift.PermissionException) 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, timePhrase_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.timePhrase(args.phrase, args.creds, args.token, args.environment, resultHandler); } } public static class invokeManagement extends org.apache.thrift.AsyncProcessFunction { public invokeManagement() { super("invokeManagement"); } public invokeManagement_args getEmptyArgsInstance() { return new invokeManagement_args(); } public AsyncMethodCallback getResultHandler( final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete( com.cinchapi.concourse.thrift.ComplexTObject o) { invokeManagement_result result = new invokeManagement_result(); result.success = o; try { fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid); return; } catch (Exception e) { LOGGER.error( "Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; invokeManagement_result result = new invokeManagement_result(); if(e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if(e instanceof com.cinchapi.concourse.thrift.ManagementException) { result.ex2 = (com.cinchapi.concourse.thrift.ManagementException) 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, invokeManagement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.invokeManagement(args.method, args.params, args.creds, resultHandler); } } } public static class abort_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "abort_args"); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new abort_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new abort_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CREDS((short) 1, "creds"), TRANSACTION((short) 2, "transaction"), ENVIRONMENT((short) 3, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CREDS return CREDS; case 2: // TRANSACTION return TRANSACTION; case 3: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(abort_args.class, metaDataMap); } public abort_args() {} public abort_args(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public abort_args(abort_args other) { if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public abort_args deepCopy() { return new abort_args(this); } @Override public void clear() { this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public abort_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public abort_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public abort_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof abort_args) return this.equals((abort_args) that); return false; } public boolean equals(abort_args that) { if(that == null) return false; boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(abort_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("abort_args("); boolean first = true; sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class abort_argsStandardSchemeFactory implements SchemeFactory { public abort_argsStandardScheme getScheme() { return new abort_argsStandardScheme(); } } private static class abort_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, abort_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, abort_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class abort_argsTupleSchemeFactory implements SchemeFactory { public abort_argsTupleScheme getScheme() { return new abort_argsTupleScheme(); } } private static class abort_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, abort_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCreds()) { optionals.set(0); } if(struct.isSetTransaction()) { optionals.set(1); } if(struct.isSetEnvironment()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, abort_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if(incoming.get(0)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(1)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(2)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class abort_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "abort_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new abort_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new abort_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short) 1, "ex"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // EX return EX; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(abort_result.class, metaDataMap); } public abort_result() {} public abort_result( com.cinchapi.concourse.thrift.SecurityException ex) { this(); this.ex = ex; } /** * Performs a deep copy on other. */ public abort_result(abort_result other) { if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } } public abort_result deepCopy() { return new abort_result(this); } @Override public void clear() { this.ex = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public abort_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof abort_result) return this.equals((abort_result) that); return false; } public boolean equals(abort_result that) { if(that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); return list.hashCode(); } @Override public int compareTo(abort_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("abort_result("); boolean first = true; sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class abort_resultStandardSchemeFactory implements SchemeFactory { public abort_resultStandardScheme getScheme() { return new abort_resultStandardScheme(); } } private static class abort_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, abort_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, abort_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class abort_resultTupleSchemeFactory implements SchemeFactory { public abort_resultTupleScheme getScheme() { return new abort_resultTupleScheme(); } } private static class abort_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, abort_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetEx()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if(struct.isSetEx()) { struct.ex.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, abort_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if(incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } } } } public static class addKeyValue_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "addKeyValue_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField( "value", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new addKeyValue_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new addKeyValue_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), VALUE((short) 2, "value"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(addKeyValue_args.class, metaDataMap); } public addKeyValue_args() {} public addKeyValue_args(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public addKeyValue_args(addKeyValue_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject( other.value); } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public addKeyValue_args deepCopy() { return new addKeyValue_args(this); } @Override public void clear() { this.key = null; this.value = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public addKeyValue_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public addKeyValue_args setValue( com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** * Returns true if field value is set (has been assigned a value) and * false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if(!value) { this.value = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public addKeyValue_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public addKeyValue_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public addKeyValue_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case VALUE: if(value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case VALUE: return isSetValue(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof addKeyValue_args) return this.equals((addKeyValue_args) that); return false; } public boolean equals(addKeyValue_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if(this_present_value || that_present_value) { if(!(this_present_value && that_present_value)) return false; if(!this.value.equals(that.value)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if(present_value) list.add(value); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(addKeyValue_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()) .compareTo(other.isSetValue()); if(lastComparison != 0) { return lastComparison; } if(isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.value, other.value); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("addKeyValue_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("value:"); if(this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(value != null) { value.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class addKeyValue_argsStandardSchemeFactory implements SchemeFactory { public addKeyValue_argsStandardScheme getScheme() { return new addKeyValue_argsStandardScheme(); } } private static class addKeyValue_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, addKeyValue_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, addKeyValue_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class addKeyValue_argsTupleSchemeFactory implements SchemeFactory { public addKeyValue_argsTupleScheme getScheme() { return new addKeyValue_argsTupleScheme(); } } private static class addKeyValue_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, addKeyValue_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetValue()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetValue()) { struct.value.write(oprot); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, addKeyValue_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class addKeyValue_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "addKeyValue_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( 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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public 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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = 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 com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public addKeyValue_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Long) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.InvalidArgumentException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class addKeyValue_resultStandardSchemeFactory implements SchemeFactory { public addKeyValue_resultStandardScheme getScheme() { return new addKeyValue_resultStandardScheme(); } } private static class addKeyValue_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, addKeyValue_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, 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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class addKeyValue_resultTupleSchemeFactory implements SchemeFactory { public addKeyValue_resultTupleScheme getScheme() { return new addKeyValue_resultTupleScheme(); } } private static class addKeyValue_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, addKeyValue_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { oprot.writeI64(struct.success); } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, addKeyValue_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class addKeyValueRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "addKeyValueRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField( "value", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new addKeyValueRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new addKeyValueRecord_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), VALUE((short) 2, "value"), RECORD((short) 3, "record"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // RECORD return RECORD; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( addKeyValueRecord_args.class, metaDataMap); } public addKeyValueRecord_args() {} public addKeyValueRecord_args(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public addKeyValueRecord_args(addKeyValueRecord_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject( other.value); } this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public addKeyValueRecord_args deepCopy() { return new addKeyValueRecord_args(this); } @Override public void clear() { this.key = null; this.value = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public addKeyValueRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public addKeyValueRecord_args setValue( com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** * Returns true if field value is set (has been assigned a value) and * false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if(!value) { this.value = null; } } public long getRecord() { return this.record; } public addKeyValueRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public addKeyValueRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public addKeyValueRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public addKeyValueRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case VALUE: if(value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case VALUE: return isSetValue(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof addKeyValueRecord_args) return this.equals((addKeyValueRecord_args) that); return false; } public boolean equals(addKeyValueRecord_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if(this_present_value || that_present_value) { if(!(this_present_value && that_present_value)) return false; if(!this.value.equals(that.value)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if(present_value) list.add(value); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(addKeyValueRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()) .compareTo(other.isSetValue()); if(lastComparison != 0) { return lastComparison; } if(isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.value, other.value); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("addKeyValueRecord_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("value:"); if(this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(value != null) { value.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class addKeyValueRecord_argsStandardSchemeFactory implements SchemeFactory { public addKeyValueRecord_argsStandardScheme getScheme() { return new addKeyValueRecord_argsStandardScheme(); } } private static class addKeyValueRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, addKeyValueRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, addKeyValueRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class addKeyValueRecord_argsTupleSchemeFactory implements SchemeFactory { public addKeyValueRecord_argsTupleScheme getScheme() { return new addKeyValueRecord_argsTupleScheme(); } } private static class addKeyValueRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, addKeyValueRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetValue()) { optionals.set(1); } if(struct.isSetRecord()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetValue()) { struct.value.write(oprot); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, addKeyValueRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if(incoming.get(2)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class addKeyValueRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "addKeyValueRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.BOOL, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( 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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public 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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = 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 com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public addKeyValueRecord_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) 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(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class addKeyValueRecord_resultStandardSchemeFactory implements SchemeFactory { public addKeyValueRecord_resultStandardScheme getScheme() { return new addKeyValueRecord_resultStandardScheme(); } } private static class addKeyValueRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, addKeyValueRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, 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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class addKeyValueRecord_resultTupleSchemeFactory implements SchemeFactory { public addKeyValueRecord_resultTupleScheme getScheme() { return new addKeyValueRecord_resultTupleScheme(); } } private static class addKeyValueRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, addKeyValueRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); 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); } if(struct.isSetEx4()) { struct.ex4.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(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class addKeyValueRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "addKeyValueRecords_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField( "value", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new addKeyValueRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new addKeyValueRecords_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), VALUE((short) 2, "value"), RECORDS((short) 3, "records"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // RECORDS return RECORDS; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( addKeyValueRecords_args.class, metaDataMap); } public addKeyValueRecords_args() {} public addKeyValueRecords_args(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public addKeyValueRecords_args(addKeyValueRecords_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject( other.value); } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public addKeyValueRecords_args deepCopy() { return new addKeyValueRecords_args(this); } @Override public void clear() { this.key = null; this.value = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public addKeyValueRecords_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public addKeyValueRecords_args setValue( com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** * Returns true if field value is set (has been assigned a value) and * false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if(!value) { this.value = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public addKeyValueRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public addKeyValueRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public addKeyValueRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public addKeyValueRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case VALUE: if(value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case VALUE: return isSetValue(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof addKeyValueRecords_args) return this.equals((addKeyValueRecords_args) that); return false; } public boolean equals(addKeyValueRecords_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if(this_present_value || that_present_value) { if(!(this_present_value && that_present_value)) return false; if(!this.value.equals(that.value)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if(present_value) list.add(value); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(addKeyValueRecords_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()) .compareTo(other.isSetValue()); if(lastComparison != 0) { return lastComparison; } if(isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.value, other.value); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("addKeyValueRecords_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("value:"); if(this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(value != null) { value.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class addKeyValueRecords_argsStandardSchemeFactory implements SchemeFactory { public addKeyValueRecords_argsStandardScheme getScheme() { return new addKeyValueRecords_argsStandardScheme(); } } private static class addKeyValueRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, addKeyValueRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list0 = iprot .readListBegin(); struct.records = new ArrayList( _list0.size); long _elem1; for (int _i2 = 0; _i2 < _list0.size; ++_i2) { _elem1 = iprot.readI64(); struct.records.add(_elem1); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, addKeyValueRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter3 : struct.records) { oprot.writeI64(_iter3); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class addKeyValueRecords_argsTupleSchemeFactory implements SchemeFactory { public addKeyValueRecords_argsTupleScheme getScheme() { return new addKeyValueRecords_argsTupleScheme(); } } private static class addKeyValueRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, addKeyValueRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetValue()) { optionals.set(1); } if(struct.isSetRecords()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetValue()) { struct.value.write(oprot); } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter4 : struct.records) { oprot.writeI64(_iter4); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, addKeyValueRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if(incoming.get(2)) { { org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list5.size); long _elem6; for (int _i7 = 0; _i7 < _list5.size; ++_i7) { _elem6 = iprot.readI64(); struct.records.add(_elem6); } } struct.setRecordsIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class addKeyValueRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "addKeyValueRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new addKeyValueRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new addKeyValueRecords_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.InvalidArgumentException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( addKeyValueRecords_result.class, metaDataMap); } public addKeyValueRecords_result() {} public addKeyValueRecords_result(Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.InvalidArgumentException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public addKeyValueRecords_result(addKeyValueRecords_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, boolean val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public addKeyValueRecords_result setSuccess( Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public addKeyValueRecords_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public addKeyValueRecords_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.InvalidArgumentException getEx3() { return this.ex3; } public addKeyValueRecords_result setEx3( com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public addKeyValueRecords_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.InvalidArgumentException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class addKeyValueRecords_resultStandardSchemeFactory implements SchemeFactory { public addKeyValueRecords_resultStandardScheme getScheme() { return new addKeyValueRecords_resultStandardScheme(); } } private static class addKeyValueRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, addKeyValueRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map8 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map8.size); long _key9; boolean _val10; for (int _i11 = 0; _i11 < _map8.size; ++_i11) { _key9 = iprot.readI64(); _val10 = iprot.readBool(); struct.success.put(_key9, _val10); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, addKeyValueRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, struct.success.size())); for (Map.Entry _iter12 : struct.success .entrySet()) { oprot.writeI64(_iter12.getKey()); oprot.writeBool(_iter12.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class addKeyValueRecords_resultTupleSchemeFactory implements SchemeFactory { public addKeyValueRecords_resultTupleScheme getScheme() { return new addKeyValueRecords_resultTupleScheme(); } } private static class addKeyValueRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, addKeyValueRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter13 : struct.success .entrySet()) { oprot.writeI64(_iter13.getKey()); oprot.writeBool(_iter13.getValue()); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map14 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map14.size); long _key15; boolean _val16; for (int _i17 = 0; _i17 < _map14.size; ++_i17) { _key15 = iprot.readI64(); _val16 = iprot.readBool(); struct.success.put(_key15, _val16); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class auditRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "auditRecord_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditRecord_argsTupleSchemeFactory()); } public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short) 1, "record"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORD return RECORD; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(auditRecord_args.class, metaDataMap); } public auditRecord_args() {} public auditRecord_args(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public auditRecord_args(auditRecord_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public auditRecord_args deepCopy() { return new auditRecord_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public auditRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public auditRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public auditRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public auditRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof auditRecord_args) return this.equals((auditRecord_args) that); return false; } public boolean equals(auditRecord_args that) { if(that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(auditRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("auditRecord_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class auditRecord_argsStandardSchemeFactory implements SchemeFactory { public auditRecord_argsStandardScheme getScheme() { return new auditRecord_argsStandardScheme(); } } private static class auditRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, auditRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditRecord_argsTupleSchemeFactory implements SchemeFactory { public auditRecord_argsTupleScheme getScheme() { return new auditRecord_argsTupleScheme(); } } private static class auditRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecord()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class auditRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "auditRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditRecord_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( auditRecord_result.class, metaDataMap); } public auditRecord_result() {} public auditRecord_result(Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public auditRecord_result(auditRecord_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public auditRecord_result deepCopy() { return new auditRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, String val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public auditRecord_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public auditRecord_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public auditRecord_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public auditRecord_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 auditRecord_resultStandardSchemeFactory implements SchemeFactory { public auditRecord_resultStandardScheme getScheme() { return new auditRecord_resultStandardScheme(); } } private static class auditRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map18 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map18.size); long _key19; String _val20; for (int _i21 = 0; _i21 < _map18.size; ++_i21) { _key19 = iprot.readI64(); _val20 = iprot.readString(); struct.success.put(_key19, _val20); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, auditRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (Map.Entry _iter22 : struct.success .entrySet()) { oprot.writeI64(_iter22.getKey()); oprot.writeString(_iter22.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditRecord_resultTupleSchemeFactory implements SchemeFactory { public auditRecord_resultTupleScheme getScheme() { return new auditRecord_resultTupleScheme(); } } private static class auditRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter23 : struct.success .entrySet()) { oprot.writeI64(_iter23.getKey()); oprot.writeString(_iter23.getValue()); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map24 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map24.size); long _key25; String _val26; for (int _i27 = 0; _i27 < _map24.size; ++_i27) { _key25 = iprot.readI64(); _val26 = iprot.readString(); struct.success.put(_key25, _val26); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class auditRecordStart_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "auditRecordStart_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditRecordStart_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditRecordStart_argsTupleSchemeFactory()); } public long record; // required public long start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short) 1, "record"), START((short) 2, "start"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORD return RECORD; case 2: // START return START; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __START_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( auditRecordStart_args.class, metaDataMap); } public auditRecordStart_args() {} public auditRecordStart_args(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.start = start; setStartIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public auditRecordStart_args(auditRecordStart_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; this.start = other.start; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public auditRecordStart_args deepCopy() { return new auditRecordStart_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; setStartIsSet(false); this.start = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public auditRecordStart_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getStart() { return this.start; } public auditRecordStart_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public auditRecordStart_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public auditRecordStart_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public auditRecordStart_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORD: return isSetRecord(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof auditRecordStart_args) return this.equals((auditRecordStart_args) that); return false; } public boolean equals(auditRecordStart_args that) { if(that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_start = true; boolean that_present_start = true; if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(this.start != that.start) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_start = true; list.add(present_start); if(present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(auditRecordStart_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("auditRecordStart_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class auditRecordStart_argsStandardSchemeFactory implements SchemeFactory { public auditRecordStart_argsStandardScheme getScheme() { return new auditRecordStart_argsStandardScheme(); } } private static class auditRecordStart_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditRecordStart_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, auditRecordStart_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditRecordStart_argsTupleSchemeFactory implements SchemeFactory { public auditRecordStart_argsTupleScheme getScheme() { return new auditRecordStart_argsTupleScheme(); } } private static class auditRecordStart_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditRecordStart_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecord()) { optionals.set(0); } if(struct.isSetStart()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetStart()) { oprot.writeI64(struct.start); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditRecordStart_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(1)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class auditRecordStart_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "auditRecordStart_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditRecordStart_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditRecordStart_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( auditRecordStart_result.class, metaDataMap); } public auditRecordStart_result() {} public auditRecordStart_result(Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public auditRecordStart_result(auditRecordStart_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public auditRecordStart_result deepCopy() { return new auditRecordStart_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, String val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public auditRecordStart_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public auditRecordStart_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public auditRecordStart_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public auditRecordStart_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 auditRecordStart_resultStandardSchemeFactory implements SchemeFactory { public auditRecordStart_resultStandardScheme getScheme() { return new auditRecordStart_resultStandardScheme(); } } private static class auditRecordStart_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditRecordStart_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map28 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map28.size); long _key29; String _val30; for (int _i31 = 0; _i31 < _map28.size; ++_i31) { _key29 = iprot.readI64(); _val30 = iprot.readString(); struct.success.put(_key29, _val30); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, auditRecordStart_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (Map.Entry _iter32 : struct.success .entrySet()) { oprot.writeI64(_iter32.getKey()); oprot.writeString(_iter32.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditRecordStart_resultTupleSchemeFactory implements SchemeFactory { public auditRecordStart_resultTupleScheme getScheme() { return new auditRecordStart_resultTupleScheme(); } } private static class auditRecordStart_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditRecordStart_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter33 : struct.success .entrySet()) { oprot.writeI64(_iter33.getKey()); oprot.writeString(_iter33.getValue()); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map34 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map34.size); long _key35; String _val36; for (int _i37 = 0; _i37 < _map34.size; ++_i37) { _key35 = iprot.readI64(); _val36 = iprot.readString(); struct.success.put(_key35, _val36); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class auditRecordStartstr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "auditRecordStartstr_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditRecordStartstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditRecordStartstr_argsTupleSchemeFactory()); } public long record; // required public String start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short) 1, "record"), START((short) 2, "start"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORD return RECORD; case 2: // START return START; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( auditRecordStartstr_args.class, metaDataMap); } public auditRecordStartstr_args() {} public auditRecordStartstr_args(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public auditRecordStartstr_args(auditRecordStartstr_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if(other.isSetStart()) { this.start = other.start; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public auditRecordStartstr_args deepCopy() { return new auditRecordStartstr_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.start = null; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public auditRecordStartstr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getStart() { return this.start; } public auditRecordStartstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if(!value) { this.start = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public auditRecordStartstr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public auditRecordStartstr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public auditRecordStartstr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORD: return isSetRecord(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof auditRecordStartstr_args) return this.equals((auditRecordStartstr_args) that); return false; } public boolean equals(auditRecordStartstr_args that) { if(that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(!this.start.equals(that.start)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_start = true && (isSetStart()); list.add(present_start); if(present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(auditRecordStartstr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("auditRecordStartstr_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("start:"); if(this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class auditRecordStartstr_argsStandardSchemeFactory implements SchemeFactory { public auditRecordStartstr_argsStandardScheme getScheme() { return new auditRecordStartstr_argsStandardScheme(); } } private static class auditRecordStartstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditRecordStartstr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, auditRecordStartstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditRecordStartstr_argsTupleSchemeFactory implements SchemeFactory { public auditRecordStartstr_argsTupleScheme getScheme() { return new auditRecordStartstr_argsTupleScheme(); } } private static class auditRecordStartstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditRecordStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecord()) { optionals.set(0); } if(struct.isSetStart()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetStart()) { oprot.writeString(struct.start); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditRecordStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(1)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class auditRecordStartstr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "auditRecordStartstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditRecordStartstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditRecordStartstr_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( auditRecordStartstr_result.class, metaDataMap); } public auditRecordStartstr_result() {} public auditRecordStartstr_result(Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public auditRecordStartstr_result(auditRecordStartstr_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, String val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public auditRecordStartstr_result setSuccess( Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public auditRecordStartstr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public auditRecordStartstr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public auditRecordStartstr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public auditRecordStartstr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class auditRecordStartstr_resultStandardSchemeFactory implements SchemeFactory { public auditRecordStartstr_resultStandardScheme getScheme() { return new auditRecordStartstr_resultStandardScheme(); } } private static class auditRecordStartstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditRecordStartstr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map38 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map38.size); long _key39; String _val40; for (int _i41 = 0; _i41 < _map38.size; ++_i41) { _key39 = iprot.readI64(); _val40 = iprot.readString(); struct.success.put(_key39, _val40); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, auditRecordStartstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (Map.Entry _iter42 : struct.success .entrySet()) { oprot.writeI64(_iter42.getKey()); oprot.writeString(_iter42.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditRecordStartstr_resultTupleSchemeFactory implements SchemeFactory { public auditRecordStartstr_resultTupleScheme getScheme() { return new auditRecordStartstr_resultTupleScheme(); } } private static class auditRecordStartstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditRecordStartstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter43 : struct.success .entrySet()) { oprot.writeI64(_iter43.getKey()); oprot.writeString(_iter43.getValue()); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map44 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map44.size); long _key45; String _val46; for (int _i47 = 0; _i47 < _map44.size; ++_i47) { _key45 = iprot.readI64(); _val46 = iprot.readString(); struct.success.put(_key45, _val46); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class auditRecordStartEnd_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "auditRecordStartEnd_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField( "tend", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditRecordStartEnd_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditRecordStartEnd_argsTupleSchemeFactory()); } public long record; // required public long start; // required public long tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short) 1, "record"), START((short) 2, "start"), TEND((short) 3, "tend"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORD return RECORD; case 2: // START return START; case 3: // TEND return TEND; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __START_ISSET_ID = 1; private static final int __TEND_ISSET_ID = 2; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( auditRecordStartEnd_args.class, metaDataMap); } public auditRecordStartEnd_args() {} public auditRecordStartEnd_args(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.start = start; setStartIsSet(true); this.tend = tend; setTendIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public auditRecordStartEnd_args(auditRecordStartEnd_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; this.start = other.start; this.tend = other.tend; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public auditRecordStartEnd_args deepCopy() { return new auditRecordStartEnd_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; setStartIsSet(false); this.start = 0; setTendIsSet(false); this.tend = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public auditRecordStartEnd_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getStart() { return this.start; } public auditRecordStartEnd_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public long getTend() { return this.tend; } public auditRecordStartEnd_args setTend(long tend) { this.tend = tend; setTendIsSet(true); return this; } public void unsetTend() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TEND_ISSET_ID); } /** * Returns true if field tend is set (has been assigned a value) and * false otherwise */ public boolean isSetTend() { return EncodingUtils.testBit(__isset_bitfield, __TEND_ISSET_ID); } public void setTendIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TEND_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public auditRecordStartEnd_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public auditRecordStartEnd_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public auditRecordStartEnd_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((Long) value); } break; case TEND: if(value == null) { unsetTend(); } else { setTend((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORD: return isSetRecord(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof auditRecordStartEnd_args) return this.equals((auditRecordStartEnd_args) that); return false; } public boolean equals(auditRecordStartEnd_args that) { if(that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_start = true; boolean that_present_start = true; if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(this.start != that.start) return false; } boolean this_present_tend = true; boolean that_present_tend = true; if(this_present_tend || that_present_tend) { if(!(this_present_tend && that_present_tend)) return false; if(this.tend != that.tend) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_start = true; list.add(present_start); if(present_start) list.add(start); boolean present_tend = true; list.add(present_tend); if(present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(auditRecordStartEnd_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()) .compareTo(other.isSetTend()); if(lastComparison != 0) { return lastComparison; } if(isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.tend, other.tend); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("auditRecordStartEnd_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if(!first) sb.append(", "); sb.append("tend:"); sb.append(this.tend); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class auditRecordStartEnd_argsStandardSchemeFactory implements SchemeFactory { public auditRecordStartEnd_argsStandardScheme getScheme() { return new auditRecordStartEnd_argsStandardScheme(); } } private static class auditRecordStartEnd_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditRecordStartEnd_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TEND if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, auditRecordStartEnd_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeI64(struct.tend); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditRecordStartEnd_argsTupleSchemeFactory implements SchemeFactory { public auditRecordStartEnd_argsTupleScheme getScheme() { return new auditRecordStartEnd_argsTupleScheme(); } } private static class auditRecordStartEnd_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditRecordStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecord()) { optionals.set(0); } if(struct.isSetStart()) { optionals.set(1); } if(struct.isSetTend()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetStart()) { oprot.writeI64(struct.start); } if(struct.isSetTend()) { oprot.writeI64(struct.tend); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditRecordStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(1)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if(incoming.get(2)) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class auditRecordStartEnd_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "auditRecordStartEnd_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditRecordStartEnd_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditRecordStartEnd_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( auditRecordStartEnd_result.class, metaDataMap); } public auditRecordStartEnd_result() {} public auditRecordStartEnd_result(Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public auditRecordStartEnd_result(auditRecordStartEnd_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public auditRecordStartEnd_result deepCopy() { return new auditRecordStartEnd_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, String val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public auditRecordStartEnd_result setSuccess( Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public auditRecordStartEnd_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public auditRecordStartEnd_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public auditRecordStartEnd_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 auditRecordStartEnd_resultStandardSchemeFactory implements SchemeFactory { public auditRecordStartEnd_resultStandardScheme getScheme() { return new auditRecordStartEnd_resultStandardScheme(); } } private static class auditRecordStartEnd_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditRecordStartEnd_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map48 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map48.size); long _key49; String _val50; for (int _i51 = 0; _i51 < _map48.size; ++_i51) { _key49 = iprot.readI64(); _val50 = iprot.readString(); struct.success.put(_key49, _val50); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, auditRecordStartEnd_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (Map.Entry _iter52 : struct.success .entrySet()) { oprot.writeI64(_iter52.getKey()); oprot.writeString(_iter52.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditRecordStartEnd_resultTupleSchemeFactory implements SchemeFactory { public auditRecordStartEnd_resultTupleScheme getScheme() { return new auditRecordStartEnd_resultTupleScheme(); } } private static class auditRecordStartEnd_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditRecordStartEnd_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter53 : struct.success .entrySet()) { oprot.writeI64(_iter53.getKey()); oprot.writeString(_iter53.getValue()); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map54 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map54.size); long _key55; String _val56; for (int _i57 = 0; _i57 < _map54.size; ++_i57) { _key55 = iprot.readI64(); _val56 = iprot.readString(); struct.success.put(_key55, _val56); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class auditRecordStartstrEndstr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "auditRecordStartstrEndstr_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField( "tend", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditRecordStartstrEndstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditRecordStartstrEndstr_argsTupleSchemeFactory()); } public long record; // required public String start; // required public String tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short) 1, "record"), START((short) 2, "start"), TEND((short) 3, "tend"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORD return RECORD; case 2: // START return START; case 3: // TEND return TEND; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( auditRecordStartstrEndstr_args.class, metaDataMap); } public auditRecordStartstrEndstr_args() {} public auditRecordStartstrEndstr_args(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public auditRecordStartstrEndstr_args( auditRecordStartstrEndstr_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if(other.isSetStart()) { this.start = other.start; } if(other.isSetTend()) { this.tend = other.tend; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public auditRecordStartstrEndstr_args deepCopy() { return new auditRecordStartstrEndstr_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.start = null; this.tend = null; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public auditRecordStartstrEndstr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getStart() { return this.start; } public auditRecordStartstrEndstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if(!value) { this.start = null; } } public String getTend() { return this.tend; } public auditRecordStartstrEndstr_args setTend(String tend) { this.tend = tend; return this; } public void unsetTend() { this.tend = null; } /** * Returns true if field tend is set (has been assigned a value) and * false otherwise */ public boolean isSetTend() { return this.tend != null; } public void setTendIsSet(boolean value) { if(!value) { this.tend = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public auditRecordStartstrEndstr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public auditRecordStartstrEndstr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public auditRecordStartstrEndstr_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((String) value); } break; case TEND: if(value == null) { unsetTend(); } else { setTend((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORD: return isSetRecord(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof auditRecordStartstrEndstr_args) return this.equals((auditRecordStartstrEndstr_args) that); return false; } public boolean equals(auditRecordStartstrEndstr_args that) { if(that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(!this.start.equals(that.start)) return false; } boolean this_present_tend = true && this.isSetTend(); boolean that_present_tend = true && that.isSetTend(); if(this_present_tend || that_present_tend) { if(!(this_present_tend && that_present_tend)) return false; if(!this.tend.equals(that.tend)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_start = true && (isSetStart()); list.add(present_start); if(present_start) list.add(start); boolean present_tend = true && (isSetTend()); list.add(present_tend); if(present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(auditRecordStartstrEndstr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()) .compareTo(other.isSetTend()); if(lastComparison != 0) { return lastComparison; } if(isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.tend, other.tend); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "auditRecordStartstrEndstr_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("start:"); if(this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if(!first) sb.append(", "); sb.append("tend:"); if(this.tend == null) { sb.append("null"); } else { sb.append(this.tend); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class auditRecordStartstrEndstr_argsStandardSchemeFactory implements SchemeFactory { public auditRecordStartstrEndstr_argsStandardScheme getScheme() { return new auditRecordStartstrEndstr_argsStandardScheme(); } } private static class auditRecordStartstrEndstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TEND if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, auditRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if(struct.tend != null) { oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeString(struct.tend); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditRecordStartstrEndstr_argsTupleSchemeFactory implements SchemeFactory { public auditRecordStartstrEndstr_argsTupleScheme getScheme() { return new auditRecordStartstrEndstr_argsTupleScheme(); } } private static class auditRecordStartstrEndstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecord()) { optionals.set(0); } if(struct.isSetStart()) { optionals.set(1); } if(struct.isSetTend()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetStart()) { oprot.writeString(struct.start); } if(struct.isSetTend()) { oprot.writeString(struct.tend); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(1)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if(incoming.get(2)) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class auditRecordStartstrEndstr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "auditRecordStartstrEndstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditRecordStartstrEndstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditRecordStartstrEndstr_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( auditRecordStartstrEndstr_result.class, metaDataMap); } public auditRecordStartstrEndstr_result() {} public auditRecordStartstrEndstr_result(Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public auditRecordStartstrEndstr_result( auditRecordStartstrEndstr_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, String val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public auditRecordStartstrEndstr_result setSuccess( Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public auditRecordStartstrEndstr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public auditRecordStartstrEndstr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public auditRecordStartstrEndstr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public auditRecordStartstrEndstr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class auditRecordStartstrEndstr_resultStandardSchemeFactory implements SchemeFactory { public auditRecordStartstrEndstr_resultStandardScheme getScheme() { return new auditRecordStartstrEndstr_resultStandardScheme(); } } private static class auditRecordStartstrEndstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map58 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map58.size); long _key59; String _val60; for (int _i61 = 0; _i61 < _map58.size; ++_i61) { _key59 = iprot.readI64(); _val60 = iprot.readString(); struct.success.put(_key59, _val60); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, auditRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (Map.Entry _iter62 : struct.success .entrySet()) { oprot.writeI64(_iter62.getKey()); oprot.writeString(_iter62.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditRecordStartstrEndstr_resultTupleSchemeFactory implements SchemeFactory { public auditRecordStartstrEndstr_resultTupleScheme getScheme() { return new auditRecordStartstrEndstr_resultTupleScheme(); } } private static class auditRecordStartstrEndstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter63 : struct.success .entrySet()) { oprot.writeI64(_iter63.getKey()); oprot.writeString(_iter63.getValue()); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map64 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map64.size); long _key65; String _val66; for (int _i67 = 0; _i67 < _map64.size; ++_i67) { _key65 = iprot.readI64(); _val66 = iprot.readString(); struct.success.put(_key65, _val66); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class auditKeyRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "auditKeyRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditKeyRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditKeyRecord_argsTupleSchemeFactory()); } public String key; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( auditKeyRecord_args.class, metaDataMap); } public auditKeyRecord_args() {} public auditKeyRecord_args(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public auditKeyRecord_args(auditKeyRecord_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public auditKeyRecord_args deepCopy() { return new auditKeyRecord_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public auditKeyRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public auditKeyRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public auditKeyRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public auditKeyRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public auditKeyRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof auditKeyRecord_args) return this.equals((auditKeyRecord_args) that); return false; } public boolean equals(auditKeyRecord_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(auditKeyRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("auditKeyRecord_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class auditKeyRecord_argsStandardSchemeFactory implements SchemeFactory { public auditKeyRecord_argsStandardScheme getScheme() { return new auditKeyRecord_argsStandardScheme(); } } private static class auditKeyRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditKeyRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, auditKeyRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditKeyRecord_argsTupleSchemeFactory implements SchemeFactory { public auditKeyRecord_argsTupleScheme getScheme() { return new auditKeyRecord_argsTupleScheme(); } } private static class auditKeyRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class auditKeyRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "auditKeyRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditKeyRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditKeyRecord_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( auditKeyRecord_result.class, metaDataMap); } public auditKeyRecord_result() {} public auditKeyRecord_result(Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public auditKeyRecord_result(auditKeyRecord_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public auditKeyRecord_result deepCopy() { return new auditKeyRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, String val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public auditKeyRecord_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public auditKeyRecord_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public auditKeyRecord_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public auditKeyRecord_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 auditKeyRecord_resultStandardSchemeFactory implements SchemeFactory { public auditKeyRecord_resultStandardScheme getScheme() { return new auditKeyRecord_resultStandardScheme(); } } private static class auditKeyRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditKeyRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map68 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map68.size); long _key69; String _val70; for (int _i71 = 0; _i71 < _map68.size; ++_i71) { _key69 = iprot.readI64(); _val70 = iprot.readString(); struct.success.put(_key69, _val70); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, auditKeyRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (Map.Entry _iter72 : struct.success .entrySet()) { oprot.writeI64(_iter72.getKey()); oprot.writeString(_iter72.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditKeyRecord_resultTupleSchemeFactory implements SchemeFactory { public auditKeyRecord_resultTupleScheme getScheme() { return new auditKeyRecord_resultTupleScheme(); } } private static class auditKeyRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter73 : struct.success .entrySet()) { oprot.writeI64(_iter73.getKey()); oprot.writeString(_iter73.getValue()); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map74 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map74.size); long _key75; String _val76; for (int _i77 = 0; _i77 < _map74.size; ++_i77) { _key75 = iprot.readI64(); _val76 = iprot.readString(); struct.success.put(_key75, _val76); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class auditKeyRecordStart_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "auditKeyRecordStart_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditKeyRecordStart_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditKeyRecordStart_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), START((short) 3, "start"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __START_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( auditKeyRecordStart_args.class, metaDataMap); } public auditKeyRecordStart_args() {} public auditKeyRecordStart_args(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; setStartIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public auditKeyRecordStart_args(auditKeyRecordStart_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; this.start = other.start; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public auditKeyRecordStart_args deepCopy() { return new auditKeyRecordStart_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setStartIsSet(false); this.start = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public auditKeyRecordStart_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public auditKeyRecordStart_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getStart() { return this.start; } public auditKeyRecordStart_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public auditKeyRecordStart_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public auditKeyRecordStart_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public auditKeyRecordStart_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof auditKeyRecordStart_args) return this.equals((auditKeyRecordStart_args) that); return false; } public boolean equals(auditKeyRecordStart_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_start = true; boolean that_present_start = true; if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(this.start != that.start) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_start = true; list.add(present_start); if(present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(auditKeyRecordStart_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("auditKeyRecordStart_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class auditKeyRecordStart_argsStandardSchemeFactory implements SchemeFactory { public auditKeyRecordStart_argsStandardScheme getScheme() { return new auditKeyRecordStart_argsStandardScheme(); } } private static class auditKeyRecordStart_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditKeyRecordStart_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, auditKeyRecordStart_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditKeyRecordStart_argsTupleSchemeFactory implements SchemeFactory { public auditKeyRecordStart_argsTupleScheme getScheme() { return new auditKeyRecordStart_argsTupleScheme(); } } private static class auditKeyRecordStart_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStart_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetStart()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetStart()) { oprot.writeI64(struct.start); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStart_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class auditKeyRecordStart_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "auditKeyRecordStart_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditKeyRecordStart_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditKeyRecordStart_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( auditKeyRecordStart_result.class, metaDataMap); } public auditKeyRecordStart_result() {} public auditKeyRecordStart_result(Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public auditKeyRecordStart_result(auditKeyRecordStart_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public auditKeyRecordStart_result deepCopy() { return new auditKeyRecordStart_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, String val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public auditKeyRecordStart_result setSuccess( Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public auditKeyRecordStart_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public auditKeyRecordStart_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public auditKeyRecordStart_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 auditKeyRecordStart_resultStandardSchemeFactory implements SchemeFactory { public auditKeyRecordStart_resultStandardScheme getScheme() { return new auditKeyRecordStart_resultStandardScheme(); } } private static class auditKeyRecordStart_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditKeyRecordStart_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map78 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map78.size); long _key79; String _val80; for (int _i81 = 0; _i81 < _map78.size; ++_i81) { _key79 = iprot.readI64(); _val80 = iprot.readString(); struct.success.put(_key79, _val80); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, auditKeyRecordStart_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (Map.Entry _iter82 : struct.success .entrySet()) { oprot.writeI64(_iter82.getKey()); oprot.writeString(_iter82.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditKeyRecordStart_resultTupleSchemeFactory implements SchemeFactory { public auditKeyRecordStart_resultTupleScheme getScheme() { return new auditKeyRecordStart_resultTupleScheme(); } } private static class auditKeyRecordStart_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStart_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter83 : struct.success .entrySet()) { oprot.writeI64(_iter83.getKey()); oprot.writeString(_iter83.getValue()); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map84 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map84.size); long _key85; String _val86; for (int _i87 = 0; _i87 < _map84.size; ++_i87) { _key85 = iprot.readI64(); _val86 = iprot.readString(); struct.success.put(_key85, _val86); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class auditKeyRecordStartstr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "auditKeyRecordStartstr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditKeyRecordStartstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditKeyRecordStartstr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), START((short) 3, "start"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( auditKeyRecordStartstr_args.class, metaDataMap); } public auditKeyRecordStartstr_args() {} public auditKeyRecordStartstr_args(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public auditKeyRecordStartstr_args(auditKeyRecordStartstr_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; if(other.isSetStart()) { this.start = other.start; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public auditKeyRecordStartstr_args deepCopy() { return new auditKeyRecordStartstr_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.start = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public auditKeyRecordStartstr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public auditKeyRecordStartstr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getStart() { return this.start; } public auditKeyRecordStartstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if(!value) { this.start = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public auditKeyRecordStartstr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public auditKeyRecordStartstr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public auditKeyRecordStartstr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof auditKeyRecordStartstr_args) return this.equals((auditKeyRecordStartstr_args) that); return false; } public boolean equals(auditKeyRecordStartstr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(!this.start.equals(that.start)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_start = true && (isSetStart()); list.add(present_start); if(present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(auditKeyRecordStartstr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "auditKeyRecordStartstr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("start:"); if(this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class auditKeyRecordStartstr_argsStandardSchemeFactory implements SchemeFactory { public auditKeyRecordStartstr_argsStandardScheme getScheme() { return new auditKeyRecordStartstr_argsStandardScheme(); } } private static class auditKeyRecordStartstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditKeyRecordStartstr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, auditKeyRecordStartstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditKeyRecordStartstr_argsTupleSchemeFactory implements SchemeFactory { public auditKeyRecordStartstr_argsTupleScheme getScheme() { return new auditKeyRecordStartstr_argsTupleScheme(); } } private static class auditKeyRecordStartstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetStart()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetStart()) { oprot.writeString(struct.start); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class auditKeyRecordStartstr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "auditKeyRecordStartstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditKeyRecordStartstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditKeyRecordStartstr_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( auditKeyRecordStartstr_result.class, metaDataMap); } public auditKeyRecordStartstr_result() {} public auditKeyRecordStartstr_result(Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public auditKeyRecordStartstr_result( auditKeyRecordStartstr_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, String val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public auditKeyRecordStartstr_result setSuccess( Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public auditKeyRecordStartstr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public auditKeyRecordStartstr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public auditKeyRecordStartstr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public auditKeyRecordStartstr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class auditKeyRecordStartstr_resultStandardSchemeFactory implements SchemeFactory { public auditKeyRecordStartstr_resultStandardScheme getScheme() { return new auditKeyRecordStartstr_resultStandardScheme(); } } private static class auditKeyRecordStartstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditKeyRecordStartstr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map88 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map88.size); long _key89; String _val90; for (int _i91 = 0; _i91 < _map88.size; ++_i91) { _key89 = iprot.readI64(); _val90 = iprot.readString(); struct.success.put(_key89, _val90); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, auditKeyRecordStartstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (Map.Entry _iter92 : struct.success .entrySet()) { oprot.writeI64(_iter92.getKey()); oprot.writeString(_iter92.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditKeyRecordStartstr_resultTupleSchemeFactory implements SchemeFactory { public auditKeyRecordStartstr_resultTupleScheme getScheme() { return new auditKeyRecordStartstr_resultTupleScheme(); } } private static class auditKeyRecordStartstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStartstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter93 : struct.success .entrySet()) { oprot.writeI64(_iter93.getKey()); oprot.writeString(_iter93.getValue()); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map94 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map94.size); long _key95; String _val96; for (int _i97 = 0; _i97 < _map94.size; ++_i97) { _key95 = iprot.readI64(); _val96 = iprot.readString(); struct.success.put(_key95, _val96); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class auditKeyRecordStartEnd_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "auditKeyRecordStartEnd_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField( "tend", org.apache.thrift.protocol.TType.I64, (short) 4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditKeyRecordStartEnd_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditKeyRecordStartEnd_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long start; // required public long tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), START((short) 3, "start"), TEND((short) 4, "tend"), CREDS((short) 5, "creds"), TRANSACTION((short) 6, "transaction"), ENVIRONMENT((short) 7, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // TEND return TEND; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __START_ISSET_ID = 1; private static final int __TEND_ISSET_ID = 2; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( auditKeyRecordStartEnd_args.class, metaDataMap); } public auditKeyRecordStartEnd_args() {} public auditKeyRecordStartEnd_args(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; setStartIsSet(true); this.tend = tend; setTendIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public auditKeyRecordStartEnd_args(auditKeyRecordStartEnd_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; this.start = other.start; this.tend = other.tend; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public auditKeyRecordStartEnd_args deepCopy() { return new auditKeyRecordStartEnd_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setStartIsSet(false); this.start = 0; setTendIsSet(false); this.tend = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public auditKeyRecordStartEnd_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public auditKeyRecordStartEnd_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getStart() { return this.start; } public auditKeyRecordStartEnd_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public long getTend() { return this.tend; } public auditKeyRecordStartEnd_args setTend(long tend) { this.tend = tend; setTendIsSet(true); return this; } public void unsetTend() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TEND_ISSET_ID); } /** * Returns true if field tend is set (has been assigned a value) and * false otherwise */ public boolean isSetTend() { return EncodingUtils.testBit(__isset_bitfield, __TEND_ISSET_ID); } public void setTendIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TEND_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public auditKeyRecordStartEnd_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public auditKeyRecordStartEnd_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public auditKeyRecordStartEnd_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((Long) value); } break; case TEND: if(value == null) { unsetTend(); } else { setTend((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof auditKeyRecordStartEnd_args) return this.equals((auditKeyRecordStartEnd_args) that); return false; } public boolean equals(auditKeyRecordStartEnd_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_start = true; boolean that_present_start = true; if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(this.start != that.start) return false; } boolean this_present_tend = true; boolean that_present_tend = true; if(this_present_tend || that_present_tend) { if(!(this_present_tend && that_present_tend)) return false; if(this.tend != that.tend) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_start = true; list.add(present_start); if(present_start) list.add(start); boolean present_tend = true; list.add(present_tend); if(present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(auditKeyRecordStartEnd_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()) .compareTo(other.isSetTend()); if(lastComparison != 0) { return lastComparison; } if(isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.tend, other.tend); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "auditKeyRecordStartEnd_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if(!first) sb.append(", "); sb.append("tend:"); sb.append(this.tend); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class auditKeyRecordStartEnd_argsStandardSchemeFactory implements SchemeFactory { public auditKeyRecordStartEnd_argsStandardScheme getScheme() { return new auditKeyRecordStartEnd_argsStandardScheme(); } } private static class auditKeyRecordStartEnd_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditKeyRecordStartEnd_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TEND if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, auditKeyRecordStartEnd_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeI64(struct.tend); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditKeyRecordStartEnd_argsTupleSchemeFactory implements SchemeFactory { public auditKeyRecordStartEnd_argsTupleScheme getScheme() { return new auditKeyRecordStartEnd_argsTupleScheme(); } } private static class auditKeyRecordStartEnd_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetStart()) { optionals.set(2); } if(struct.isSetTend()) { optionals.set(3); } if(struct.isSetCreds()) { optionals.set(4); } if(struct.isSetTransaction()) { optionals.set(5); } if(struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetStart()) { oprot.writeI64(struct.start); } if(struct.isSetTend()) { oprot.writeI64(struct.tend); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if(incoming.get(3)) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } if(incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class auditKeyRecordStartEnd_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "auditKeyRecordStartEnd_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditKeyRecordStartEnd_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditKeyRecordStartEnd_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( auditKeyRecordStartEnd_result.class, metaDataMap); } public auditKeyRecordStartEnd_result() {} public auditKeyRecordStartEnd_result(Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public auditKeyRecordStartEnd_result( auditKeyRecordStartEnd_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public auditKeyRecordStartEnd_result deepCopy() { return new auditKeyRecordStartEnd_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, String val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public auditKeyRecordStartEnd_result setSuccess( Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public auditKeyRecordStartEnd_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public auditKeyRecordStartEnd_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public auditKeyRecordStartEnd_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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( "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; 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 auditKeyRecordStartEnd_resultStandardSchemeFactory implements SchemeFactory { public auditKeyRecordStartEnd_resultStandardScheme getScheme() { return new auditKeyRecordStartEnd_resultStandardScheme(); } } private static class auditKeyRecordStartEnd_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditKeyRecordStartEnd_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map98 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map98.size); long _key99; String _val100; for (int _i101 = 0; _i101 < _map98.size; ++_i101) { _key99 = iprot.readI64(); _val100 = iprot.readString(); struct.success.put(_key99, _val100); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, auditKeyRecordStartEnd_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (Map.Entry _iter102 : struct.success .entrySet()) { oprot.writeI64(_iter102.getKey()); oprot.writeString(_iter102.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditKeyRecordStartEnd_resultTupleSchemeFactory implements SchemeFactory { public auditKeyRecordStartEnd_resultTupleScheme getScheme() { return new auditKeyRecordStartEnd_resultTupleScheme(); } } private static class auditKeyRecordStartEnd_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStartEnd_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter103 : struct.success .entrySet()) { oprot.writeI64(_iter103.getKey()); oprot.writeString(_iter103.getValue()); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map104 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map104.size); long _key105; String _val106; for (int _i107 = 0; _i107 < _map104.size; ++_i107) { _key105 = iprot.readI64(); _val106 = iprot.readString(); struct.success.put(_key105, _val106); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class auditKeyRecordStartstrEndstr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "auditKeyRecordStartstrEndstr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField( "tend", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditKeyRecordStartstrEndstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditKeyRecordStartstrEndstr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String start; // required public String tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), START((short) 3, "start"), TEND((short) 4, "tend"), CREDS((short) 5, "creds"), TRANSACTION((short) 6, "transaction"), ENVIRONMENT((short) 7, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // TEND return TEND; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( auditKeyRecordStartstrEndstr_args.class, metaDataMap); } public auditKeyRecordStartstrEndstr_args() {} public auditKeyRecordStartstrEndstr_args(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public auditKeyRecordStartstrEndstr_args( auditKeyRecordStartstrEndstr_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; if(other.isSetStart()) { this.start = other.start; } if(other.isSetTend()) { this.tend = other.tend; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public auditKeyRecordStartstrEndstr_args deepCopy() { return new auditKeyRecordStartstrEndstr_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.start = null; this.tend = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public auditKeyRecordStartstrEndstr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public auditKeyRecordStartstrEndstr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getStart() { return this.start; } public auditKeyRecordStartstrEndstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if(!value) { this.start = null; } } public String getTend() { return this.tend; } public auditKeyRecordStartstrEndstr_args setTend(String tend) { this.tend = tend; return this; } public void unsetTend() { this.tend = null; } /** * Returns true if field tend is set (has been assigned a value) and * false otherwise */ public boolean isSetTend() { return this.tend != null; } public void setTendIsSet(boolean value) { if(!value) { this.tend = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public auditKeyRecordStartstrEndstr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public auditKeyRecordStartstrEndstr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public auditKeyRecordStartstrEndstr_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((String) value); } break; case TEND: if(value == null) { unsetTend(); } else { setTend((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof auditKeyRecordStartstrEndstr_args) return this.equals((auditKeyRecordStartstrEndstr_args) that); return false; } public boolean equals(auditKeyRecordStartstrEndstr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(!this.start.equals(that.start)) return false; } boolean this_present_tend = true && this.isSetTend(); boolean that_present_tend = true && that.isSetTend(); if(this_present_tend || that_present_tend) { if(!(this_present_tend && that_present_tend)) return false; if(!this.tend.equals(that.tend)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_start = true && (isSetStart()); list.add(present_start); if(present_start) list.add(start); boolean present_tend = true && (isSetTend()); list.add(present_tend); if(present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(auditKeyRecordStartstrEndstr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()) .compareTo(other.isSetTend()); if(lastComparison != 0) { return lastComparison; } if(isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.tend, other.tend); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "auditKeyRecordStartstrEndstr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("start:"); if(this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if(!first) sb.append(", "); sb.append("tend:"); if(this.tend == null) { sb.append("null"); } else { sb.append(this.tend); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class auditKeyRecordStartstrEndstr_argsStandardSchemeFactory implements SchemeFactory { public auditKeyRecordStartstrEndstr_argsStandardScheme getScheme() { return new auditKeyRecordStartstrEndstr_argsStandardScheme(); } } private static class auditKeyRecordStartstrEndstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditKeyRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TEND if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, auditKeyRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if(struct.tend != null) { oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeString(struct.tend); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditKeyRecordStartstrEndstr_argsTupleSchemeFactory implements SchemeFactory { public auditKeyRecordStartstrEndstr_argsTupleScheme getScheme() { return new auditKeyRecordStartstrEndstr_argsTupleScheme(); } } private static class auditKeyRecordStartstrEndstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetStart()) { optionals.set(2); } if(struct.isSetTend()) { optionals.set(3); } if(struct.isSetCreds()) { optionals.set(4); } if(struct.isSetTransaction()) { optionals.set(5); } if(struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetStart()) { oprot.writeString(struct.start); } if(struct.isSetTend()) { oprot.writeString(struct.tend); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if(incoming.get(3)) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } if(incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class auditKeyRecordStartstrEndstr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "auditKeyRecordStartstrEndstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditKeyRecordStartstrEndstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditKeyRecordStartstrEndstr_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( auditKeyRecordStartstrEndstr_result.class, metaDataMap); } public auditKeyRecordStartstrEndstr_result() {} public auditKeyRecordStartstrEndstr_result(Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public auditKeyRecordStartstrEndstr_result( auditKeyRecordStartstrEndstr_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, String val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public auditKeyRecordStartstrEndstr_result setSuccess( Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public auditKeyRecordStartstrEndstr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public auditKeyRecordStartstrEndstr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public auditKeyRecordStartstrEndstr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public auditKeyRecordStartstrEndstr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class auditKeyRecordStartstrEndstr_resultStandardSchemeFactory implements SchemeFactory { public auditKeyRecordStartstrEndstr_resultStandardScheme getScheme() { return new auditKeyRecordStartstrEndstr_resultStandardScheme(); } } private static class auditKeyRecordStartstrEndstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditKeyRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map108 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map108.size); long _key109; String _val110; for (int _i111 = 0; _i111 < _map108.size; ++_i111) { _key109 = iprot.readI64(); _val110 = iprot.readString(); struct.success.put(_key109, _val110); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, auditKeyRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (Map.Entry _iter112 : struct.success .entrySet()) { oprot.writeI64(_iter112.getKey()); oprot.writeString(_iter112.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditKeyRecordStartstrEndstr_resultTupleSchemeFactory implements SchemeFactory { public auditKeyRecordStartstrEndstr_resultTupleScheme getScheme() { return new auditKeyRecordStartstrEndstr_resultTupleScheme(); } } private static class auditKeyRecordStartstrEndstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter113 : struct.success .entrySet()) { oprot.writeI64(_iter113.getKey()); oprot.writeString(_iter113.getValue()); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map114 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map114.size); long _key115; String _val116; for (int _i117 = 0; _i117 < _map114.size; ++_i117) { _key115 = iprot.readI64(); _val116 = iprot.readString(); struct.success.put(_key115, _val116); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class browseKey_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "browseKey_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKey_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKey_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(browseKey_args.class, metaDataMap); } public browseKey_args() {} public browseKey_args(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public browseKey_args(browseKey_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public browseKey_args deepCopy() { return new browseKey_args(this); } @Override public void clear() { this.key = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public browseKey_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public browseKey_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public browseKey_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public browseKey_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof browseKey_args) return this.equals((browseKey_args) that); return false; } public boolean equals(browseKey_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(browseKey_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("browseKey_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class browseKey_argsStandardSchemeFactory implements SchemeFactory { public browseKey_argsStandardScheme getScheme() { return new browseKey_argsStandardScheme(); } } private static class browseKey_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKey_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, browseKey_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKey_argsTupleSchemeFactory implements SchemeFactory { public browseKey_argsTupleScheme getScheme() { return new browseKey_argsTupleScheme(); } } private static class browseKey_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKey_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, browseKey_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class browseKey_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "browseKey_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKey_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKey_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(browseKey_result.class, metaDataMap); } public browseKey_result() {} public browseKey_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public browseKey_result(browseKey_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { com.cinchapi.concourse.thrift.TObject other_element_key = other_element .getKey(); Set other_element_value = other_element.getValue(); com.cinchapi.concourse.thrift.TObject __this__success_copy_key = new com.cinchapi.concourse.thrift.TObject( other_element_key); Set __this__success_copy_value = new LinkedHashSet( other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public browseKey_result deepCopy() { return new browseKey_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.TObject key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public browseKey_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public browseKey_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public browseKey_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public browseKey_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 browseKey_resultStandardSchemeFactory implements SchemeFactory { public browseKey_resultStandardScheme getScheme() { return new browseKey_resultStandardScheme(); } } private static class browseKey_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKey_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map118 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map118.size); com.cinchapi.concourse.thrift.TObject _key119; Set _val120; for (int _i121 = 0; _i121 < _map118.size; ++_i121) { _key119 = new com.cinchapi.concourse.thrift.TObject(); _key119.read(iprot); { org.apache.thrift.protocol.TSet _set122 = iprot .readSetBegin(); _val120 = new LinkedHashSet( 2 * _set122.size); long _elem123; for (int _i124 = 0; _i124 < _set122.size; ++_i124) { _elem123 = iprot.readI64(); _val120.add(_elem123); } iprot.readSetEnd(); } struct.success.put(_key119, _val120); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, browseKey_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter125 : struct.success .entrySet()) { _iter125.getKey().write(oprot); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, _iter125.getValue().size())); for (long _iter126 : _iter125.getValue()) { oprot.writeI64(_iter126); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKey_resultTupleSchemeFactory implements SchemeFactory { public browseKey_resultTupleScheme getScheme() { return new browseKey_resultTupleScheme(); } } private static class browseKey_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKey_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter127 : struct.success .entrySet()) { _iter127.getKey().write(oprot); { oprot.writeI32(_iter127.getValue().size()); for (long _iter128 : _iter127.getValue()) { oprot.writeI64(_iter128); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map129 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map129.size); com.cinchapi.concourse.thrift.TObject _key130; Set _val131; for (int _i132 = 0; _i132 < _map129.size; ++_i132) { _key130 = new com.cinchapi.concourse.thrift.TObject(); _key130.read(iprot); { org.apache.thrift.protocol.TSet _set133 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, iprot.readI32()); _val131 = new LinkedHashSet( 2 * _set133.size); long _elem134; for (int _i135 = 0; _i135 < _set133.size; ++_i135) { _elem134 = iprot.readI64(); _val131.add(_elem134); } } struct.success.put(_key130, _val131); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class browseKeys_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "browseKeys_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKeys_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKeys_argsTupleSchemeFactory()); } public List keys; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(browseKeys_args.class, metaDataMap); } public browseKeys_args() {} public browseKeys_args(List keys, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public browseKeys_args(browseKeys_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public browseKeys_args deepCopy() { return new browseKeys_args(this); } @Override public void clear() { this.keys = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public browseKeys_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public browseKeys_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public browseKeys_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public browseKeys_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof browseKeys_args) return this.equals((browseKeys_args) that); return false; } public boolean equals(browseKeys_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(browseKeys_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("browseKeys_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class browseKeys_argsStandardSchemeFactory implements SchemeFactory { public browseKeys_argsStandardScheme getScheme() { return new browseKeys_argsStandardScheme(); } } private static class browseKeys_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKeys_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list136 = iprot .readListBegin(); struct.keys = new ArrayList( _list136.size); String _elem137; for (int _i138 = 0; _i138 < _list136.size; ++_i138) { _elem137 = iprot.readString(); struct.keys.add(_elem137); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, browseKeys_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter139 : struct.keys) { oprot.writeString(_iter139); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKeys_argsTupleSchemeFactory implements SchemeFactory { public browseKeys_argsTupleScheme getScheme() { return new browseKeys_argsTupleScheme(); } } private static class browseKeys_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKeys_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter140 : struct.keys) { oprot.writeString(_iter140); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, browseKeys_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list141 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list141.size); String _elem142; for (int _i143 = 0; _i143 < _list141.size; ++_i143) { _elem142 = iprot.readString(); struct.keys.add(_elem142); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class browseKeys_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "browseKeys_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKeys_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKeys_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(browseKeys_result.class, metaDataMap); } public browseKeys_result() {} public browseKeys_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public browseKeys_result(browseKeys_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { String other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); String __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { com.cinchapi.concourse.thrift.TObject other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_key = new com.cinchapi.concourse.thrift.TObject( other_element_value_element_key); Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public browseKeys_result deepCopy() { return new browseKeys_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public browseKeys_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public browseKeys_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public browseKeys_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public browseKeys_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 browseKeys_resultStandardSchemeFactory implements SchemeFactory { public browseKeys_resultStandardScheme getScheme() { return new browseKeys_resultStandardScheme(); } } private static class browseKeys_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKeys_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map144 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map144.size); String _key145; Map> _val146; for (int _i147 = 0; _i147 < _map144.size; ++_i147) { _key145 = iprot.readString(); { org.apache.thrift.protocol.TMap _map148 = iprot .readMapBegin(); _val146 = new LinkedHashMap>( 2 * _map148.size); com.cinchapi.concourse.thrift.TObject _key149; Set _val150; for (int _i151 = 0; _i151 < _map148.size; ++_i151) { _key149 = new com.cinchapi.concourse.thrift.TObject(); _key149.read(iprot); { org.apache.thrift.protocol.TSet _set152 = iprot .readSetBegin(); _val150 = new LinkedHashSet( 2 * _set152.size); long _elem153; for (int _i154 = 0; _i154 < _set152.size; ++_i154) { _elem153 = iprot.readI64(); _val150.add(_elem153); } iprot.readSetEnd(); } _val146.put(_key149, _val150); } iprot.readMapEnd(); } struct.success.put(_key145, _val146); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, browseKeys_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter155 : struct.success .entrySet()) { oprot.writeString(_iter155.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, _iter155.getValue().size())); for (Map.Entry> _iter156 : _iter155 .getValue().entrySet()) { _iter156.getKey().write(oprot); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, _iter156.getValue() .size())); for (long _iter157 : _iter156 .getValue()) { oprot.writeI64(_iter157); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKeys_resultTupleSchemeFactory implements SchemeFactory { public browseKeys_resultTupleScheme getScheme() { return new browseKeys_resultTupleScheme(); } } private static class browseKeys_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKeys_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter158 : struct.success .entrySet()) { oprot.writeString(_iter158.getKey()); { oprot.writeI32(_iter158.getValue().size()); for (Map.Entry> _iter159 : _iter158 .getValue().entrySet()) { _iter159.getKey().write(oprot); { oprot.writeI32( _iter159.getValue().size()); for (long _iter160 : _iter159 .getValue()) { oprot.writeI64(_iter160); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map161 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map161.size); String _key162; Map> _val163; for (int _i164 = 0; _i164 < _map161.size; ++_i164) { _key162 = iprot.readString(); { org.apache.thrift.protocol.TMap _map165 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val163 = new LinkedHashMap>( 2 * _map165.size); com.cinchapi.concourse.thrift.TObject _key166; Set _val167; for (int _i168 = 0; _i168 < _map165.size; ++_i168) { _key166 = new com.cinchapi.concourse.thrift.TObject(); _key166.read(iprot); { org.apache.thrift.protocol.TSet _set169 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, iprot.readI32()); _val167 = new LinkedHashSet( 2 * _set169.size); long _elem170; for (int _i171 = 0; _i171 < _set169.size; ++_i171) { _elem170 = iprot.readI64(); _val167.add(_elem170); } } _val163.put(_key166, _val167); } } struct.success.put(_key162, _val163); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class browseKeyTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "browseKeyTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKeyTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKeyTime_argsTupleSchemeFactory()); } public String key; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( browseKeyTime_args.class, metaDataMap); } public browseKeyTime_args() {} public browseKeyTime_args(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public browseKeyTime_args(browseKeyTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public browseKeyTime_args deepCopy() { return new browseKeyTime_args(this); } @Override public void clear() { this.key = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public browseKeyTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getTimestamp() { return this.timestamp; } public browseKeyTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public browseKeyTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public browseKeyTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public browseKeyTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof browseKeyTime_args) return this.equals((browseKeyTime_args) that); return false; } public boolean equals(browseKeyTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(browseKeyTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("browseKeyTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class browseKeyTime_argsStandardSchemeFactory implements SchemeFactory { public browseKeyTime_argsStandardScheme getScheme() { return new browseKeyTime_argsStandardScheme(); } } private static class browseKeyTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKeyTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, browseKeyTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKeyTime_argsTupleSchemeFactory implements SchemeFactory { public browseKeyTime_argsTupleScheme getScheme() { return new browseKeyTime_argsTupleScheme(); } } private static class browseKeyTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKeyTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, browseKeyTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class browseKeyTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "browseKeyTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKeyTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKeyTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( browseKeyTime_result.class, metaDataMap); } public browseKeyTime_result() {} public browseKeyTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public browseKeyTime_result(browseKeyTime_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { com.cinchapi.concourse.thrift.TObject other_element_key = other_element .getKey(); Set other_element_value = other_element.getValue(); com.cinchapi.concourse.thrift.TObject __this__success_copy_key = new com.cinchapi.concourse.thrift.TObject( other_element_key); Set __this__success_copy_value = new LinkedHashSet( other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public browseKeyTime_result deepCopy() { return new browseKeyTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.TObject key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public browseKeyTime_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public browseKeyTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public browseKeyTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public browseKeyTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 browseKeyTime_resultStandardSchemeFactory implements SchemeFactory { public browseKeyTime_resultStandardScheme getScheme() { return new browseKeyTime_resultStandardScheme(); } } private static class browseKeyTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKeyTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map172 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map172.size); com.cinchapi.concourse.thrift.TObject _key173; Set _val174; for (int _i175 = 0; _i175 < _map172.size; ++_i175) { _key173 = new com.cinchapi.concourse.thrift.TObject(); _key173.read(iprot); { org.apache.thrift.protocol.TSet _set176 = iprot .readSetBegin(); _val174 = new LinkedHashSet( 2 * _set176.size); long _elem177; for (int _i178 = 0; _i178 < _set176.size; ++_i178) { _elem177 = iprot.readI64(); _val174.add(_elem177); } iprot.readSetEnd(); } struct.success.put(_key173, _val174); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, browseKeyTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter179 : struct.success .entrySet()) { _iter179.getKey().write(oprot); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, _iter179.getValue().size())); for (long _iter180 : _iter179.getValue()) { oprot.writeI64(_iter180); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKeyTime_resultTupleSchemeFactory implements SchemeFactory { public browseKeyTime_resultTupleScheme getScheme() { return new browseKeyTime_resultTupleScheme(); } } private static class browseKeyTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKeyTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter181 : struct.success .entrySet()) { _iter181.getKey().write(oprot); { oprot.writeI32(_iter181.getValue().size()); for (long _iter182 : _iter181.getValue()) { oprot.writeI64(_iter182); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map183 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map183.size); com.cinchapi.concourse.thrift.TObject _key184; Set _val185; for (int _i186 = 0; _i186 < _map183.size; ++_i186) { _key184 = new com.cinchapi.concourse.thrift.TObject(); _key184.read(iprot); { org.apache.thrift.protocol.TSet _set187 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, iprot.readI32()); _val185 = new LinkedHashSet( 2 * _set187.size); long _elem188; for (int _i189 = 0; _i189 < _set187.size; ++_i189) { _elem188 = iprot.readI64(); _val185.add(_elem188); } } struct.success.put(_key184, _val185); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class browseKeyTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "browseKeyTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKeyTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKeyTimestr_argsTupleSchemeFactory()); } public String key; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( browseKeyTimestr_args.class, metaDataMap); } public browseKeyTimestr_args() {} public browseKeyTimestr_args(String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public browseKeyTimestr_args(browseKeyTimestr_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public browseKeyTimestr_args deepCopy() { return new browseKeyTimestr_args(this); } @Override public void clear() { this.key = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public browseKeyTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public String getTimestamp() { return this.timestamp; } public browseKeyTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public browseKeyTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public browseKeyTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public browseKeyTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof browseKeyTimestr_args) return this.equals((browseKeyTimestr_args) that); return false; } public boolean equals(browseKeyTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(browseKeyTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("browseKeyTimestr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class browseKeyTimestr_argsStandardSchemeFactory implements SchemeFactory { public browseKeyTimestr_argsStandardScheme getScheme() { return new browseKeyTimestr_argsStandardScheme(); } } private static class browseKeyTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKeyTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, browseKeyTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKeyTimestr_argsTupleSchemeFactory implements SchemeFactory { public browseKeyTimestr_argsTupleScheme getScheme() { return new browseKeyTimestr_argsTupleScheme(); } } private static class browseKeyTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKeyTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, browseKeyTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class browseKeyTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "browseKeyTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKeyTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKeyTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( browseKeyTimestr_result.class, metaDataMap); } public browseKeyTimestr_result() {} public browseKeyTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public browseKeyTimestr_result(browseKeyTimestr_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { com.cinchapi.concourse.thrift.TObject other_element_key = other_element .getKey(); Set other_element_value = other_element.getValue(); com.cinchapi.concourse.thrift.TObject __this__success_copy_key = new com.cinchapi.concourse.thrift.TObject( other_element_key); Set __this__success_copy_value = new LinkedHashSet( other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.TObject key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public browseKeyTimestr_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public browseKeyTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public browseKeyTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public browseKeyTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public browseKeyTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class browseKeyTimestr_resultStandardSchemeFactory implements SchemeFactory { public browseKeyTimestr_resultStandardScheme getScheme() { return new browseKeyTimestr_resultStandardScheme(); } } private static class browseKeyTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKeyTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map190 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map190.size); com.cinchapi.concourse.thrift.TObject _key191; Set _val192; for (int _i193 = 0; _i193 < _map190.size; ++_i193) { _key191 = new com.cinchapi.concourse.thrift.TObject(); _key191.read(iprot); { org.apache.thrift.protocol.TSet _set194 = iprot .readSetBegin(); _val192 = new LinkedHashSet( 2 * _set194.size); long _elem195; for (int _i196 = 0; _i196 < _set194.size; ++_i196) { _elem195 = iprot.readI64(); _val192.add(_elem195); } iprot.readSetEnd(); } struct.success.put(_key191, _val192); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, browseKeyTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter197 : struct.success .entrySet()) { _iter197.getKey().write(oprot); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, _iter197.getValue().size())); for (long _iter198 : _iter197.getValue()) { oprot.writeI64(_iter198); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKeyTimestr_resultTupleSchemeFactory implements SchemeFactory { public browseKeyTimestr_resultTupleScheme getScheme() { return new browseKeyTimestr_resultTupleScheme(); } } private static class browseKeyTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKeyTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter199 : struct.success .entrySet()) { _iter199.getKey().write(oprot); { oprot.writeI32(_iter199.getValue().size()); for (long _iter200 : _iter199.getValue()) { oprot.writeI64(_iter200); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map201 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map201.size); com.cinchapi.concourse.thrift.TObject _key202; Set _val203; for (int _i204 = 0; _i204 < _map201.size; ++_i204) { _key202 = new com.cinchapi.concourse.thrift.TObject(); _key202.read(iprot); { org.apache.thrift.protocol.TSet _set205 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, iprot.readI32()); _val203 = new LinkedHashSet( 2 * _set205.size); long _elem206; for (int _i207 = 0; _i207 < _set205.size; ++_i207) { _elem206 = iprot.readI64(); _val203.add(_elem206); } } struct.success.put(_key202, _val203); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class browseKeysTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "browseKeysTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKeysTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKeysTime_argsTupleSchemeFactory()); } public List keys; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( browseKeysTime_args.class, metaDataMap); } public browseKeysTime_args() {} public browseKeysTime_args(List keys, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public browseKeysTime_args(browseKeysTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public browseKeysTime_args deepCopy() { return new browseKeysTime_args(this); } @Override public void clear() { this.keys = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public browseKeysTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public long getTimestamp() { return this.timestamp; } public browseKeysTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public browseKeysTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public browseKeysTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public browseKeysTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof browseKeysTime_args) return this.equals((browseKeysTime_args) that); return false; } public boolean equals(browseKeysTime_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(browseKeysTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("browseKeysTime_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class browseKeysTime_argsStandardSchemeFactory implements SchemeFactory { public browseKeysTime_argsStandardScheme getScheme() { return new browseKeysTime_argsStandardScheme(); } } private static class browseKeysTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKeysTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list208 = iprot .readListBegin(); struct.keys = new ArrayList( _list208.size); String _elem209; for (int _i210 = 0; _i210 < _list208.size; ++_i210) { _elem209 = iprot.readString(); struct.keys.add(_elem209); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, browseKeysTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter211 : struct.keys) { oprot.writeString(_iter211); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKeysTime_argsTupleSchemeFactory implements SchemeFactory { public browseKeysTime_argsTupleScheme getScheme() { return new browseKeysTime_argsTupleScheme(); } } private static class browseKeysTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKeysTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter212 : struct.keys) { oprot.writeString(_iter212); } } } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, browseKeysTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list213 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list213.size); String _elem214; for (int _i215 = 0; _i215 < _list213.size; ++_i215) { _elem214 = iprot.readString(); struct.keys.add(_elem214); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class browseKeysTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "browseKeysTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKeysTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKeysTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( browseKeysTime_result.class, metaDataMap); } public browseKeysTime_result() {} public browseKeysTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public browseKeysTime_result(browseKeysTime_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { String other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); String __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { com.cinchapi.concourse.thrift.TObject other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_key = new com.cinchapi.concourse.thrift.TObject( other_element_value_element_key); Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public browseKeysTime_result deepCopy() { return new browseKeysTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public browseKeysTime_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public browseKeysTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public browseKeysTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public browseKeysTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 browseKeysTime_resultStandardSchemeFactory implements SchemeFactory { public browseKeysTime_resultStandardScheme getScheme() { return new browseKeysTime_resultStandardScheme(); } } private static class browseKeysTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKeysTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map216 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map216.size); String _key217; Map> _val218; for (int _i219 = 0; _i219 < _map216.size; ++_i219) { _key217 = iprot.readString(); { org.apache.thrift.protocol.TMap _map220 = iprot .readMapBegin(); _val218 = new LinkedHashMap>( 2 * _map220.size); com.cinchapi.concourse.thrift.TObject _key221; Set _val222; for (int _i223 = 0; _i223 < _map220.size; ++_i223) { _key221 = new com.cinchapi.concourse.thrift.TObject(); _key221.read(iprot); { org.apache.thrift.protocol.TSet _set224 = iprot .readSetBegin(); _val222 = new LinkedHashSet( 2 * _set224.size); long _elem225; for (int _i226 = 0; _i226 < _set224.size; ++_i226) { _elem225 = iprot.readI64(); _val222.add(_elem225); } iprot.readSetEnd(); } _val218.put(_key221, _val222); } iprot.readMapEnd(); } struct.success.put(_key217, _val218); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, browseKeysTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter227 : struct.success .entrySet()) { oprot.writeString(_iter227.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, _iter227.getValue().size())); for (Map.Entry> _iter228 : _iter227 .getValue().entrySet()) { _iter228.getKey().write(oprot); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, _iter228.getValue() .size())); for (long _iter229 : _iter228 .getValue()) { oprot.writeI64(_iter229); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKeysTime_resultTupleSchemeFactory implements SchemeFactory { public browseKeysTime_resultTupleScheme getScheme() { return new browseKeysTime_resultTupleScheme(); } } private static class browseKeysTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKeysTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter230 : struct.success .entrySet()) { oprot.writeString(_iter230.getKey()); { oprot.writeI32(_iter230.getValue().size()); for (Map.Entry> _iter231 : _iter230 .getValue().entrySet()) { _iter231.getKey().write(oprot); { oprot.writeI32( _iter231.getValue().size()); for (long _iter232 : _iter231 .getValue()) { oprot.writeI64(_iter232); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map233 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map233.size); String _key234; Map> _val235; for (int _i236 = 0; _i236 < _map233.size; ++_i236) { _key234 = iprot.readString(); { org.apache.thrift.protocol.TMap _map237 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val235 = new LinkedHashMap>( 2 * _map237.size); com.cinchapi.concourse.thrift.TObject _key238; Set _val239; for (int _i240 = 0; _i240 < _map237.size; ++_i240) { _key238 = new com.cinchapi.concourse.thrift.TObject(); _key238.read(iprot); { org.apache.thrift.protocol.TSet _set241 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, iprot.readI32()); _val239 = new LinkedHashSet( 2 * _set241.size); long _elem242; for (int _i243 = 0; _i243 < _set241.size; ++_i243) { _elem242 = iprot.readI64(); _val239.add(_elem242); } } _val235.put(_key238, _val239); } } struct.success.put(_key234, _val235); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class browseKeysTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "browseKeysTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKeysTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKeysTimestr_argsTupleSchemeFactory()); } public List keys; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( browseKeysTimestr_args.class, metaDataMap); } public browseKeysTimestr_args() {} public browseKeysTimestr_args(List keys, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public browseKeysTimestr_args(browseKeysTimestr_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public browseKeysTimestr_args deepCopy() { return new browseKeysTimestr_args(this); } @Override public void clear() { this.keys = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public browseKeysTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public String getTimestamp() { return this.timestamp; } public browseKeysTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public browseKeysTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public browseKeysTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public browseKeysTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof browseKeysTimestr_args) return this.equals((browseKeysTimestr_args) that); return false; } public boolean equals(browseKeysTimestr_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(browseKeysTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("browseKeysTimestr_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class browseKeysTimestr_argsStandardSchemeFactory implements SchemeFactory { public browseKeysTimestr_argsStandardScheme getScheme() { return new browseKeysTimestr_argsStandardScheme(); } } private static class browseKeysTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKeysTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list244 = iprot .readListBegin(); struct.keys = new ArrayList( _list244.size); String _elem245; for (int _i246 = 0; _i246 < _list244.size; ++_i246) { _elem245 = iprot.readString(); struct.keys.add(_elem245); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, browseKeysTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter247 : struct.keys) { oprot.writeString(_iter247); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKeysTimestr_argsTupleSchemeFactory implements SchemeFactory { public browseKeysTimestr_argsTupleScheme getScheme() { return new browseKeysTimestr_argsTupleScheme(); } } private static class browseKeysTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKeysTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter248 : struct.keys) { oprot.writeString(_iter248); } } } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, browseKeysTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list249 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list249.size); String _elem250; for (int _i251 = 0; _i251 < _list249.size; ++_i251) { _elem250 = iprot.readString(); struct.keys.add(_elem250); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class browseKeysTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "browseKeysTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKeysTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKeysTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( browseKeysTimestr_result.class, metaDataMap); } public browseKeysTimestr_result() {} public browseKeysTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public browseKeysTimestr_result(browseKeysTimestr_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { String other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); String __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { com.cinchapi.concourse.thrift.TObject other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_key = new com.cinchapi.concourse.thrift.TObject( other_element_value_element_key); Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public browseKeysTimestr_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public browseKeysTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public browseKeysTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public browseKeysTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public browseKeysTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class browseKeysTimestr_resultStandardSchemeFactory implements SchemeFactory { public browseKeysTimestr_resultStandardScheme getScheme() { return new browseKeysTimestr_resultStandardScheme(); } } private static class browseKeysTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKeysTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map252 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map252.size); String _key253; Map> _val254; for (int _i255 = 0; _i255 < _map252.size; ++_i255) { _key253 = iprot.readString(); { org.apache.thrift.protocol.TMap _map256 = iprot .readMapBegin(); _val254 = new LinkedHashMap>( 2 * _map256.size); com.cinchapi.concourse.thrift.TObject _key257; Set _val258; for (int _i259 = 0; _i259 < _map256.size; ++_i259) { _key257 = new com.cinchapi.concourse.thrift.TObject(); _key257.read(iprot); { org.apache.thrift.protocol.TSet _set260 = iprot .readSetBegin(); _val258 = new LinkedHashSet( 2 * _set260.size); long _elem261; for (int _i262 = 0; _i262 < _set260.size; ++_i262) { _elem261 = iprot.readI64(); _val258.add(_elem261); } iprot.readSetEnd(); } _val254.put(_key257, _val258); } iprot.readMapEnd(); } struct.success.put(_key253, _val254); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, browseKeysTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter263 : struct.success .entrySet()) { oprot.writeString(_iter263.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, _iter263.getValue().size())); for (Map.Entry> _iter264 : _iter263 .getValue().entrySet()) { _iter264.getKey().write(oprot); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, _iter264.getValue() .size())); for (long _iter265 : _iter264 .getValue()) { oprot.writeI64(_iter265); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKeysTimestr_resultTupleSchemeFactory implements SchemeFactory { public browseKeysTimestr_resultTupleScheme getScheme() { return new browseKeysTimestr_resultTupleScheme(); } } private static class browseKeysTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKeysTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter266 : struct.success .entrySet()) { oprot.writeString(_iter266.getKey()); { oprot.writeI32(_iter266.getValue().size()); for (Map.Entry> _iter267 : _iter266 .getValue().entrySet()) { _iter267.getKey().write(oprot); { oprot.writeI32( _iter267.getValue().size()); for (long _iter268 : _iter267 .getValue()) { oprot.writeI64(_iter268); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map269 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map269.size); String _key270; Map> _val271; for (int _i272 = 0; _i272 < _map269.size; ++_i272) { _key270 = iprot.readString(); { org.apache.thrift.protocol.TMap _map273 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val271 = new LinkedHashMap>( 2 * _map273.size); com.cinchapi.concourse.thrift.TObject _key274; Set _val275; for (int _i276 = 0; _i276 < _map273.size; ++_i276) { _key274 = new com.cinchapi.concourse.thrift.TObject(); _key274.read(iprot); { org.apache.thrift.protocol.TSet _set277 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, iprot.readI32()); _val275 = new LinkedHashSet( 2 * _set277.size); long _elem278; for (int _i279 = 0; _i279 < _set277.size; ++_i279) { _elem278 = iprot.readI64(); _val275.add(_elem278); } } _val271.put(_key274, _val275); } } struct.success.put(_key270, _val271); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class chronologizeKeyRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "chronologizeKeyRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new chronologizeKeyRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new chronologizeKeyRecord_argsTupleSchemeFactory()); } public String key; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( chronologizeKeyRecord_args.class, metaDataMap); } public chronologizeKeyRecord_args() {} public chronologizeKeyRecord_args(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public chronologizeKeyRecord_args(chronologizeKeyRecord_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public chronologizeKeyRecord_args deepCopy() { return new chronologizeKeyRecord_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public chronologizeKeyRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public chronologizeKeyRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public chronologizeKeyRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public chronologizeKeyRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public chronologizeKeyRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof chronologizeKeyRecord_args) return this.equals((chronologizeKeyRecord_args) that); return false; } public boolean equals(chronologizeKeyRecord_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(chronologizeKeyRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("chronologizeKeyRecord_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class chronologizeKeyRecord_argsStandardSchemeFactory implements SchemeFactory { public chronologizeKeyRecord_argsStandardScheme getScheme() { return new chronologizeKeyRecord_argsStandardScheme(); } } private static class chronologizeKeyRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, chronologizeKeyRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, chronologizeKeyRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class chronologizeKeyRecord_argsTupleSchemeFactory implements SchemeFactory { public chronologizeKeyRecord_argsTupleScheme getScheme() { return new chronologizeKeyRecord_argsTupleScheme(); } } private static class chronologizeKeyRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class chronologizeKeyRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "chronologizeKeyRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new chronologizeKeyRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new chronologizeKeyRecord_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( chronologizeKeyRecord_result.class, metaDataMap); } public chronologizeKeyRecord_result() {} public chronologizeKeyRecord_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public chronologizeKeyRecord_result( chronologizeKeyRecord_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public chronologizeKeyRecord_result deepCopy() { return new chronologizeKeyRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public chronologizeKeyRecord_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public chronologizeKeyRecord_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public chronologizeKeyRecord_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public chronologizeKeyRecord_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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( "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; 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 chronologizeKeyRecord_resultStandardSchemeFactory implements SchemeFactory { public chronologizeKeyRecord_resultStandardScheme getScheme() { return new chronologizeKeyRecord_resultStandardScheme(); } } private static class chronologizeKeyRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, chronologizeKeyRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map280 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map280.size); long _key281; Set _val282; for (int _i283 = 0; _i283 < _map280.size; ++_i283) { _key281 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set284 = iprot .readSetBegin(); _val282 = new LinkedHashSet( 2 * _set284.size); com.cinchapi.concourse.thrift.TObject _elem285; for (int _i286 = 0; _i286 < _set284.size; ++_i286) { _elem285 = new com.cinchapi.concourse.thrift.TObject(); _elem285.read(iprot); _val282.add(_elem285); } iprot.readSetEnd(); } struct.success.put(_key281, _val282); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, chronologizeKeyRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter287 : struct.success .entrySet()) { oprot.writeI64(_iter287.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter287.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter288 : _iter287 .getValue()) { _iter288.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class chronologizeKeyRecord_resultTupleSchemeFactory implements SchemeFactory { public chronologizeKeyRecord_resultTupleScheme getScheme() { return new chronologizeKeyRecord_resultTupleScheme(); } } private static class chronologizeKeyRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter289 : struct.success .entrySet()) { oprot.writeI64(_iter289.getKey()); { oprot.writeI32(_iter289.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter290 : _iter289 .getValue()) { _iter290.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map291 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map291.size); long _key292; Set _val293; for (int _i294 = 0; _i294 < _map291.size; ++_i294) { _key292 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set295 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val293 = new LinkedHashSet( 2 * _set295.size); com.cinchapi.concourse.thrift.TObject _elem296; for (int _i297 = 0; _i297 < _set295.size; ++_i297) { _elem296 = new com.cinchapi.concourse.thrift.TObject(); _elem296.read(iprot); _val293.add(_elem296); } } struct.success.put(_key292, _val293); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class chronologizeKeyRecordStart_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "chronologizeKeyRecordStart_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new chronologizeKeyRecordStart_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new chronologizeKeyRecordStart_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), START((short) 3, "start"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __START_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( chronologizeKeyRecordStart_args.class, metaDataMap); } public chronologizeKeyRecordStart_args() {} public chronologizeKeyRecordStart_args(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; setStartIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public chronologizeKeyRecordStart_args( chronologizeKeyRecordStart_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; this.start = other.start; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public chronologizeKeyRecordStart_args deepCopy() { return new chronologizeKeyRecordStart_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setStartIsSet(false); this.start = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public chronologizeKeyRecordStart_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public chronologizeKeyRecordStart_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getStart() { return this.start; } public chronologizeKeyRecordStart_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public chronologizeKeyRecordStart_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public chronologizeKeyRecordStart_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public chronologizeKeyRecordStart_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof chronologizeKeyRecordStart_args) return this.equals((chronologizeKeyRecordStart_args) that); return false; } public boolean equals(chronologizeKeyRecordStart_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_start = true; boolean that_present_start = true; if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(this.start != that.start) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_start = true; list.add(present_start); if(present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(chronologizeKeyRecordStart_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "chronologizeKeyRecordStart_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class chronologizeKeyRecordStart_argsStandardSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStart_argsStandardScheme getScheme() { return new chronologizeKeyRecordStart_argsStandardScheme(); } } private static class chronologizeKeyRecordStart_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, chronologizeKeyRecordStart_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, chronologizeKeyRecordStart_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class chronologizeKeyRecordStart_argsTupleSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStart_argsTupleScheme getScheme() { return new chronologizeKeyRecordStart_argsTupleScheme(); } } private static class chronologizeKeyRecordStart_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStart_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetStart()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetStart()) { oprot.writeI64(struct.start); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStart_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class chronologizeKeyRecordStart_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "chronologizeKeyRecordStart_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new chronologizeKeyRecordStart_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new chronologizeKeyRecordStart_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( chronologizeKeyRecordStart_result.class, metaDataMap); } public chronologizeKeyRecordStart_result() {} public chronologizeKeyRecordStart_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public chronologizeKeyRecordStart_result( chronologizeKeyRecordStart_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public chronologizeKeyRecordStart_result deepCopy() { return new chronologizeKeyRecordStart_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public chronologizeKeyRecordStart_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public chronologizeKeyRecordStart_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public chronologizeKeyRecordStart_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public chronologizeKeyRecordStart_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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( "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; 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 chronologizeKeyRecordStart_resultStandardSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStart_resultStandardScheme getScheme() { return new chronologizeKeyRecordStart_resultStandardScheme(); } } private static class chronologizeKeyRecordStart_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, chronologizeKeyRecordStart_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map298 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map298.size); long _key299; Set _val300; for (int _i301 = 0; _i301 < _map298.size; ++_i301) { _key299 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set302 = iprot .readSetBegin(); _val300 = new LinkedHashSet( 2 * _set302.size); com.cinchapi.concourse.thrift.TObject _elem303; for (int _i304 = 0; _i304 < _set302.size; ++_i304) { _elem303 = new com.cinchapi.concourse.thrift.TObject(); _elem303.read(iprot); _val300.add(_elem303); } iprot.readSetEnd(); } struct.success.put(_key299, _val300); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, chronologizeKeyRecordStart_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter305 : struct.success .entrySet()) { oprot.writeI64(_iter305.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter305.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter306 : _iter305 .getValue()) { _iter306.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class chronologizeKeyRecordStart_resultTupleSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStart_resultTupleScheme getScheme() { return new chronologizeKeyRecordStart_resultTupleScheme(); } } private static class chronologizeKeyRecordStart_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStart_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter307 : struct.success .entrySet()) { oprot.writeI64(_iter307.getKey()); { oprot.writeI32(_iter307.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter308 : _iter307 .getValue()) { _iter308.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map309 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map309.size); long _key310; Set _val311; for (int _i312 = 0; _i312 < _map309.size; ++_i312) { _key310 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set313 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val311 = new LinkedHashSet( 2 * _set313.size); com.cinchapi.concourse.thrift.TObject _elem314; for (int _i315 = 0; _i315 < _set313.size; ++_i315) { _elem314 = new com.cinchapi.concourse.thrift.TObject(); _elem314.read(iprot); _val311.add(_elem314); } } struct.success.put(_key310, _val311); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class chronologizeKeyRecordStartstr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "chronologizeKeyRecordStartstr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new chronologizeKeyRecordStartstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new chronologizeKeyRecordStartstr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), START((short) 3, "start"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( chronologizeKeyRecordStartstr_args.class, metaDataMap); } public chronologizeKeyRecordStartstr_args() {} public chronologizeKeyRecordStartstr_args(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public chronologizeKeyRecordStartstr_args( chronologizeKeyRecordStartstr_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; if(other.isSetStart()) { this.start = other.start; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public chronologizeKeyRecordStartstr_args deepCopy() { return new chronologizeKeyRecordStartstr_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.start = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public chronologizeKeyRecordStartstr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public chronologizeKeyRecordStartstr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getStart() { return this.start; } public chronologizeKeyRecordStartstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if(!value) { this.start = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public chronologizeKeyRecordStartstr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public chronologizeKeyRecordStartstr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public chronologizeKeyRecordStartstr_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof chronologizeKeyRecordStartstr_args) return this.equals((chronologizeKeyRecordStartstr_args) that); return false; } public boolean equals(chronologizeKeyRecordStartstr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(!this.start.equals(that.start)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_start = true && (isSetStart()); list.add(present_start); if(present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(chronologizeKeyRecordStartstr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "chronologizeKeyRecordStartstr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("start:"); if(this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class chronologizeKeyRecordStartstr_argsStandardSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartstr_argsStandardScheme getScheme() { return new chronologizeKeyRecordStartstr_argsStandardScheme(); } } private static class chronologizeKeyRecordStartstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, chronologizeKeyRecordStartstr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, chronologizeKeyRecordStartstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class chronologizeKeyRecordStartstr_argsTupleSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartstr_argsTupleScheme getScheme() { return new chronologizeKeyRecordStartstr_argsTupleScheme(); } } private static class chronologizeKeyRecordStartstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetStart()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetStart()) { oprot.writeString(struct.start); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class chronologizeKeyRecordStartstr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "chronologizeKeyRecordStartstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new chronologizeKeyRecordStartstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new chronologizeKeyRecordStartstr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( chronologizeKeyRecordStartstr_result.class, metaDataMap); } public chronologizeKeyRecordStartstr_result() {} public chronologizeKeyRecordStartstr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public chronologizeKeyRecordStartstr_result( chronologizeKeyRecordStartstr_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public chronologizeKeyRecordStartstr_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public chronologizeKeyRecordStartstr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public chronologizeKeyRecordStartstr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public chronologizeKeyRecordStartstr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public chronologizeKeyRecordStartstr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class chronologizeKeyRecordStartstr_resultStandardSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartstr_resultStandardScheme getScheme() { return new chronologizeKeyRecordStartstr_resultStandardScheme(); } } private static class chronologizeKeyRecordStartstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, chronologizeKeyRecordStartstr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map316 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map316.size); long _key317; Set _val318; for (int _i319 = 0; _i319 < _map316.size; ++_i319) { _key317 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set320 = iprot .readSetBegin(); _val318 = new LinkedHashSet( 2 * _set320.size); com.cinchapi.concourse.thrift.TObject _elem321; for (int _i322 = 0; _i322 < _set320.size; ++_i322) { _elem321 = new com.cinchapi.concourse.thrift.TObject(); _elem321.read(iprot); _val318.add(_elem321); } iprot.readSetEnd(); } struct.success.put(_key317, _val318); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, chronologizeKeyRecordStartstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter323 : struct.success .entrySet()) { oprot.writeI64(_iter323.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter323.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter324 : _iter323 .getValue()) { _iter324.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class chronologizeKeyRecordStartstr_resultTupleSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartstr_resultTupleScheme getScheme() { return new chronologizeKeyRecordStartstr_resultTupleScheme(); } } private static class chronologizeKeyRecordStartstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStartstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter325 : struct.success .entrySet()) { oprot.writeI64(_iter325.getKey()); { oprot.writeI32(_iter325.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter326 : _iter325 .getValue()) { _iter326.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map327 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map327.size); long _key328; Set _val329; for (int _i330 = 0; _i330 < _map327.size; ++_i330) { _key328 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set331 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val329 = new LinkedHashSet( 2 * _set331.size); com.cinchapi.concourse.thrift.TObject _elem332; for (int _i333 = 0; _i333 < _set331.size; ++_i333) { _elem332 = new com.cinchapi.concourse.thrift.TObject(); _elem332.read(iprot); _val329.add(_elem332); } } struct.success.put(_key328, _val329); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class chronologizeKeyRecordStartEnd_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "chronologizeKeyRecordStartEnd_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField( "tend", org.apache.thrift.protocol.TType.I64, (short) 4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new chronologizeKeyRecordStartEnd_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new chronologizeKeyRecordStartEnd_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long start; // required public long tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), START((short) 3, "start"), TEND((short) 4, "tend"), CREDS((short) 5, "creds"), TRANSACTION((short) 6, "transaction"), ENVIRONMENT((short) 7, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // TEND return TEND; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __START_ISSET_ID = 1; private static final int __TEND_ISSET_ID = 2; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( chronologizeKeyRecordStartEnd_args.class, metaDataMap); } public chronologizeKeyRecordStartEnd_args() {} public chronologizeKeyRecordStartEnd_args(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; setStartIsSet(true); this.tend = tend; setTendIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public chronologizeKeyRecordStartEnd_args( chronologizeKeyRecordStartEnd_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; this.start = other.start; this.tend = other.tend; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public chronologizeKeyRecordStartEnd_args deepCopy() { return new chronologizeKeyRecordStartEnd_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setStartIsSet(false); this.start = 0; setTendIsSet(false); this.tend = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public chronologizeKeyRecordStartEnd_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public chronologizeKeyRecordStartEnd_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getStart() { return this.start; } public chronologizeKeyRecordStartEnd_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public long getTend() { return this.tend; } public chronologizeKeyRecordStartEnd_args setTend(long tend) { this.tend = tend; setTendIsSet(true); return this; } public void unsetTend() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TEND_ISSET_ID); } /** * Returns true if field tend is set (has been assigned a value) and * false otherwise */ public boolean isSetTend() { return EncodingUtils.testBit(__isset_bitfield, __TEND_ISSET_ID); } public void setTendIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TEND_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public chronologizeKeyRecordStartEnd_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public chronologizeKeyRecordStartEnd_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public chronologizeKeyRecordStartEnd_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((Long) value); } break; case TEND: if(value == null) { unsetTend(); } else { setTend((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof chronologizeKeyRecordStartEnd_args) return this.equals((chronologizeKeyRecordStartEnd_args) that); return false; } public boolean equals(chronologizeKeyRecordStartEnd_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_start = true; boolean that_present_start = true; if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(this.start != that.start) return false; } boolean this_present_tend = true; boolean that_present_tend = true; if(this_present_tend || that_present_tend) { if(!(this_present_tend && that_present_tend)) return false; if(this.tend != that.tend) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_start = true; list.add(present_start); if(present_start) list.add(start); boolean present_tend = true; list.add(present_tend); if(present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(chronologizeKeyRecordStartEnd_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()) .compareTo(other.isSetTend()); if(lastComparison != 0) { return lastComparison; } if(isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.tend, other.tend); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "chronologizeKeyRecordStartEnd_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if(!first) sb.append(", "); sb.append("tend:"); sb.append(this.tend); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class chronologizeKeyRecordStartEnd_argsStandardSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartEnd_argsStandardScheme getScheme() { return new chronologizeKeyRecordStartEnd_argsStandardScheme(); } } private static class chronologizeKeyRecordStartEnd_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, chronologizeKeyRecordStartEnd_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TEND if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, chronologizeKeyRecordStartEnd_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeI64(struct.tend); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class chronologizeKeyRecordStartEnd_argsTupleSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartEnd_argsTupleScheme getScheme() { return new chronologizeKeyRecordStartEnd_argsTupleScheme(); } } private static class chronologizeKeyRecordStartEnd_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetStart()) { optionals.set(2); } if(struct.isSetTend()) { optionals.set(3); } if(struct.isSetCreds()) { optionals.set(4); } if(struct.isSetTransaction()) { optionals.set(5); } if(struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetStart()) { oprot.writeI64(struct.start); } if(struct.isSetTend()) { oprot.writeI64(struct.tend); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if(incoming.get(3)) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } if(incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class chronologizeKeyRecordStartEnd_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "chronologizeKeyRecordStartEnd_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new chronologizeKeyRecordStartEnd_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new chronologizeKeyRecordStartEnd_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( chronologizeKeyRecordStartEnd_result.class, metaDataMap); } public chronologizeKeyRecordStartEnd_result() {} public chronologizeKeyRecordStartEnd_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public chronologizeKeyRecordStartEnd_result( chronologizeKeyRecordStartEnd_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public chronologizeKeyRecordStartEnd_result deepCopy() { return new chronologizeKeyRecordStartEnd_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public chronologizeKeyRecordStartEnd_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public chronologizeKeyRecordStartEnd_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public chronologizeKeyRecordStartEnd_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public chronologizeKeyRecordStartEnd_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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( "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; 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 chronologizeKeyRecordStartEnd_resultStandardSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartEnd_resultStandardScheme getScheme() { return new chronologizeKeyRecordStartEnd_resultStandardScheme(); } } private static class chronologizeKeyRecordStartEnd_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, chronologizeKeyRecordStartEnd_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map334 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map334.size); long _key335; Set _val336; for (int _i337 = 0; _i337 < _map334.size; ++_i337) { _key335 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set338 = iprot .readSetBegin(); _val336 = new LinkedHashSet( 2 * _set338.size); com.cinchapi.concourse.thrift.TObject _elem339; for (int _i340 = 0; _i340 < _set338.size; ++_i340) { _elem339 = new com.cinchapi.concourse.thrift.TObject(); _elem339.read(iprot); _val336.add(_elem339); } iprot.readSetEnd(); } struct.success.put(_key335, _val336); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, chronologizeKeyRecordStartEnd_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter341 : struct.success .entrySet()) { oprot.writeI64(_iter341.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter341.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter342 : _iter341 .getValue()) { _iter342.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class chronologizeKeyRecordStartEnd_resultTupleSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartEnd_resultTupleScheme getScheme() { return new chronologizeKeyRecordStartEnd_resultTupleScheme(); } } private static class chronologizeKeyRecordStartEnd_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStartEnd_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter343 : struct.success .entrySet()) { oprot.writeI64(_iter343.getKey()); { oprot.writeI32(_iter343.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter344 : _iter343 .getValue()) { _iter344.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map345 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map345.size); long _key346; Set _val347; for (int _i348 = 0; _i348 < _map345.size; ++_i348) { _key346 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set349 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val347 = new LinkedHashSet( 2 * _set349.size); com.cinchapi.concourse.thrift.TObject _elem350; for (int _i351 = 0; _i351 < _set349.size; ++_i351) { _elem350 = new com.cinchapi.concourse.thrift.TObject(); _elem350.read(iprot); _val347.add(_elem350); } } struct.success.put(_key346, _val347); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class chronologizeKeyRecordStartstrEndstr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "chronologizeKeyRecordStartstrEndstr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField( "tend", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new chronologizeKeyRecordStartstrEndstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new chronologizeKeyRecordStartstrEndstr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String start; // required public String tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), START((short) 3, "start"), TEND((short) 4, "tend"), CREDS((short) 5, "creds"), TRANSACTION((short) 6, "transaction"), ENVIRONMENT((short) 7, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // TEND return TEND; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( chronologizeKeyRecordStartstrEndstr_args.class, metaDataMap); } public chronologizeKeyRecordStartstrEndstr_args() {} public chronologizeKeyRecordStartstrEndstr_args(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public chronologizeKeyRecordStartstrEndstr_args( chronologizeKeyRecordStartstrEndstr_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; if(other.isSetStart()) { this.start = other.start; } if(other.isSetTend()) { this.tend = other.tend; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public chronologizeKeyRecordStartstrEndstr_args deepCopy() { return new chronologizeKeyRecordStartstrEndstr_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.start = null; this.tend = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public chronologizeKeyRecordStartstrEndstr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public chronologizeKeyRecordStartstrEndstr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getStart() { return this.start; } public chronologizeKeyRecordStartstrEndstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if(!value) { this.start = null; } } public String getTend() { return this.tend; } public chronologizeKeyRecordStartstrEndstr_args setTend(String tend) { this.tend = tend; return this; } public void unsetTend() { this.tend = null; } /** * Returns true if field tend is set (has been assigned a value) and * false otherwise */ public boolean isSetTend() { return this.tend != null; } public void setTendIsSet(boolean value) { if(!value) { this.tend = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public chronologizeKeyRecordStartstrEndstr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public chronologizeKeyRecordStartstrEndstr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public chronologizeKeyRecordStartstrEndstr_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((String) value); } break; case TEND: if(value == null) { unsetTend(); } else { setTend((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof chronologizeKeyRecordStartstrEndstr_args) return this.equals( (chronologizeKeyRecordStartstrEndstr_args) that); return false; } public boolean equals(chronologizeKeyRecordStartstrEndstr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(!this.start.equals(that.start)) return false; } boolean this_present_tend = true && this.isSetTend(); boolean that_present_tend = true && that.isSetTend(); if(this_present_tend || that_present_tend) { if(!(this_present_tend && that_present_tend)) return false; if(!this.tend.equals(that.tend)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_start = true && (isSetStart()); list.add(present_start); if(present_start) list.add(start); boolean present_tend = true && (isSetTend()); list.add(present_tend); if(present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(chronologizeKeyRecordStartstrEndstr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()) .compareTo(other.isSetTend()); if(lastComparison != 0) { return lastComparison; } if(isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.tend, other.tend); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "chronologizeKeyRecordStartstrEndstr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("start:"); if(this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if(!first) sb.append(", "); sb.append("tend:"); if(this.tend == null) { sb.append("null"); } else { sb.append(this.tend); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class chronologizeKeyRecordStartstrEndstr_argsStandardSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartstrEndstr_argsStandardScheme getScheme() { return new chronologizeKeyRecordStartstrEndstr_argsStandardScheme(); } } private static class chronologizeKeyRecordStartstrEndstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, chronologizeKeyRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TEND if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, chronologizeKeyRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if(struct.tend != null) { oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeString(struct.tend); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class chronologizeKeyRecordStartstrEndstr_argsTupleSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartstrEndstr_argsTupleScheme getScheme() { return new chronologizeKeyRecordStartstrEndstr_argsTupleScheme(); } } private static class chronologizeKeyRecordStartstrEndstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetStart()) { optionals.set(2); } if(struct.isSetTend()) { optionals.set(3); } if(struct.isSetCreds()) { optionals.set(4); } if(struct.isSetTransaction()) { optionals.set(5); } if(struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetStart()) { oprot.writeString(struct.start); } if(struct.isSetTend()) { oprot.writeString(struct.tend); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if(incoming.get(3)) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } if(incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class chronologizeKeyRecordStartstrEndstr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "chronologizeKeyRecordStartstrEndstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new chronologizeKeyRecordStartstrEndstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new chronologizeKeyRecordStartstrEndstr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( chronologizeKeyRecordStartstrEndstr_result.class, metaDataMap); } public chronologizeKeyRecordStartstrEndstr_result() {} public chronologizeKeyRecordStartstrEndstr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public chronologizeKeyRecordStartstrEndstr_result( chronologizeKeyRecordStartstrEndstr_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public chronologizeKeyRecordStartstrEndstr_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public chronologizeKeyRecordStartstrEndstr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public chronologizeKeyRecordStartstrEndstr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public chronologizeKeyRecordStartstrEndstr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public chronologizeKeyRecordStartstrEndstr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class chronologizeKeyRecordStartstrEndstr_resultStandardSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartstrEndstr_resultStandardScheme getScheme() { return new chronologizeKeyRecordStartstrEndstr_resultStandardScheme(); } } private static class chronologizeKeyRecordStartstrEndstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, chronologizeKeyRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map352 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map352.size); long _key353; Set _val354; for (int _i355 = 0; _i355 < _map352.size; ++_i355) { _key353 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set356 = iprot .readSetBegin(); _val354 = new LinkedHashSet( 2 * _set356.size); com.cinchapi.concourse.thrift.TObject _elem357; for (int _i358 = 0; _i358 < _set356.size; ++_i358) { _elem357 = new com.cinchapi.concourse.thrift.TObject(); _elem357.read(iprot); _val354.add(_elem357); } iprot.readSetEnd(); } struct.success.put(_key353, _val354); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, chronologizeKeyRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter359 : struct.success .entrySet()) { oprot.writeI64(_iter359.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter359.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter360 : _iter359 .getValue()) { _iter360.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class chronologizeKeyRecordStartstrEndstr_resultTupleSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartstrEndstr_resultTupleScheme getScheme() { return new chronologizeKeyRecordStartstrEndstr_resultTupleScheme(); } } private static class chronologizeKeyRecordStartstrEndstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter361 : struct.success .entrySet()) { oprot.writeI64(_iter361.getKey()); { oprot.writeI32(_iter361.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter362 : _iter361 .getValue()) { _iter362.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map363 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map363.size); long _key364; Set _val365; for (int _i366 = 0; _i366 < _map363.size; ++_i366) { _key364 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set367 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val365 = new LinkedHashSet( 2 * _set367.size); com.cinchapi.concourse.thrift.TObject _elem368; for (int _i369 = 0; _i369 < _set367.size; ++_i369) { _elem368 = new com.cinchapi.concourse.thrift.TObject(); _elem368.read(iprot); _val365.add(_elem368); } } struct.success.put(_key364, _val365); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class clearRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "clearRecord_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new clearRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new clearRecord_argsTupleSchemeFactory()); } public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short) 1, "record"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORD return RECORD; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(clearRecord_args.class, metaDataMap); } public clearRecord_args() {} public clearRecord_args(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public clearRecord_args(clearRecord_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public clearRecord_args deepCopy() { return new clearRecord_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public clearRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public clearRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public clearRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public clearRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof clearRecord_args) return this.equals((clearRecord_args) that); return false; } public boolean equals(clearRecord_args that) { if(that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(clearRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("clearRecord_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class clearRecord_argsStandardSchemeFactory implements SchemeFactory { public clearRecord_argsStandardScheme getScheme() { return new clearRecord_argsStandardScheme(); } } private static class clearRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, clearRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearRecord_argsTupleSchemeFactory implements SchemeFactory { public clearRecord_argsTupleScheme getScheme() { return new clearRecord_argsTupleScheme(); } } private static class clearRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecord()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, clearRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class clearRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "clearRecord_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( clearRecord_result.class, metaDataMap); } public clearRecord_result() {} public clearRecord_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public clearRecord_result(clearRecord_result other) { if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public clearRecord_result deepCopy() { return new clearRecord_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 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 com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public clearRecord_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 clearRecord_resultStandardSchemeFactory implements SchemeFactory { public clearRecord_resultStandardScheme getScheme() { return new clearRecord_resultStandardScheme(); } } private static class clearRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, 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(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearRecord_resultTupleSchemeFactory implements SchemeFactory { public clearRecord_resultTupleScheme getScheme() { return new clearRecord_resultTupleScheme(); } } private static class clearRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetEx()) { optionals.set(0); } if(struct.isSetEx2()) { optionals.set(1); } 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, clearRecord_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class clearRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "clearRecords_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new clearRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new clearRecords_argsTupleSchemeFactory()); } public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short) 1, "records"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORDS return RECORDS; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(clearRecords_args.class, metaDataMap); } public clearRecords_args() {} public clearRecords_args(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public clearRecords_args(clearRecords_args other) { if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public clearRecords_args deepCopy() { return new clearRecords_args(this); } @Override public void clear() { this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public clearRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public clearRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public clearRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public clearRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof clearRecords_args) return this.equals((clearRecords_args) that); return false; } public boolean equals(clearRecords_args that) { if(that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(clearRecords_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("clearRecords_args("); boolean first = true; sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class clearRecords_argsStandardSchemeFactory implements SchemeFactory { public clearRecords_argsStandardScheme getScheme() { return new clearRecords_argsStandardScheme(); } } private static class clearRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list370 = iprot .readListBegin(); struct.records = new ArrayList( _list370.size); long _elem371; for (int _i372 = 0; _i372 < _list370.size; ++_i372) { _elem371 = iprot.readI64(); struct.records.add(_elem371); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, clearRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter373 : struct.records) { oprot.writeI64(_iter373); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearRecords_argsTupleSchemeFactory implements SchemeFactory { public clearRecords_argsTupleScheme getScheme() { return new clearRecords_argsTupleScheme(); } } private static class clearRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecords()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter374 : struct.records) { oprot.writeI64(_iter374); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, clearRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list375 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list375.size); long _elem376; for (int _i377 = 0; _i377 < _list375.size; ++_i377) { _elem376 = iprot.readI64(); struct.records.add(_elem376); } } struct.setRecordsIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class clearRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "clearRecords_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( clearRecords_result.class, metaDataMap); } public clearRecords_result() {} public clearRecords_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public clearRecords_result(clearRecords_result other) { if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public clearRecords_result deepCopy() { return new clearRecords_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 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 com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public clearRecords_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 clearRecords_resultStandardSchemeFactory implements SchemeFactory { public clearRecords_resultStandardScheme getScheme() { return new clearRecords_resultStandardScheme(); } } private static class clearRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, 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(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearRecords_resultTupleSchemeFactory implements SchemeFactory { public clearRecords_resultTupleScheme getScheme() { return new clearRecords_resultTupleScheme(); } } private static class clearRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetEx()) { optionals.set(0); } if(struct.isSetEx2()) { optionals.set(1); } 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, clearRecords_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class clearKeyRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "clearKeyRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new clearKeyRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new clearKeyRecord_argsTupleSchemeFactory()); } public String key; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( clearKeyRecord_args.class, metaDataMap); } public clearKeyRecord_args() {} public clearKeyRecord_args(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public clearKeyRecord_args(clearKeyRecord_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public clearKeyRecord_args deepCopy() { return new clearKeyRecord_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public clearKeyRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public clearKeyRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public clearKeyRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public clearKeyRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public clearKeyRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof clearKeyRecord_args) return this.equals((clearKeyRecord_args) that); return false; } public boolean equals(clearKeyRecord_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(clearKeyRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("clearKeyRecord_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class clearKeyRecord_argsStandardSchemeFactory implements SchemeFactory { public clearKeyRecord_argsStandardScheme getScheme() { return new clearKeyRecord_argsStandardScheme(); } } private static class clearKeyRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearKeyRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, clearKeyRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearKeyRecord_argsTupleSchemeFactory implements SchemeFactory { public clearKeyRecord_argsTupleScheme getScheme() { return new clearKeyRecord_argsTupleScheme(); } } private static class clearKeyRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, clearKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class clearKeyRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "clearKeyRecord_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( clearKeyRecord_result.class, metaDataMap); } public clearKeyRecord_result() {} public clearKeyRecord_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public clearKeyRecord_result(clearKeyRecord_result other) { if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public clearKeyRecord_result deepCopy() { return new clearKeyRecord_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 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 com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public clearKeyRecord_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 clearKeyRecord_resultStandardSchemeFactory implements SchemeFactory { public clearKeyRecord_resultStandardScheme getScheme() { return new clearKeyRecord_resultStandardScheme(); } } private static class clearKeyRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearKeyRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, 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(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearKeyRecord_resultTupleSchemeFactory implements SchemeFactory { public clearKeyRecord_resultTupleScheme getScheme() { return new clearKeyRecord_resultTupleScheme(); } } private static class clearKeyRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetEx()) { optionals.set(0); } if(struct.isSetEx2()) { optionals.set(1); } 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, clearKeyRecord_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class clearKeysRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "clearKeysRecord_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new clearKeysRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new clearKeysRecord_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORD((short) 2, "record"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( clearKeysRecord_args.class, metaDataMap); } public clearKeysRecord_args() {} public clearKeysRecord_args(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public clearKeysRecord_args(clearKeysRecord_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public clearKeysRecord_args deepCopy() { return new clearKeysRecord_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public clearKeysRecord_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public long getRecord() { return this.record; } public clearKeysRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public clearKeysRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public clearKeysRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public clearKeysRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof clearKeysRecord_args) return this.equals((clearKeysRecord_args) that); return false; } public boolean equals(clearKeysRecord_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(clearKeysRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("clearKeysRecord_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class clearKeysRecord_argsStandardSchemeFactory implements SchemeFactory { public clearKeysRecord_argsStandardScheme getScheme() { return new clearKeysRecord_argsStandardScheme(); } } private static class clearKeysRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearKeysRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list378 = iprot .readListBegin(); struct.keys = new ArrayList( _list378.size); String _elem379; for (int _i380 = 0; _i380 < _list378.size; ++_i380) { _elem379 = iprot.readString(); struct.keys.add(_elem379); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, clearKeysRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter381 : struct.keys) { oprot.writeString(_iter381); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearKeysRecord_argsTupleSchemeFactory implements SchemeFactory { public clearKeysRecord_argsTupleScheme getScheme() { return new clearKeysRecord_argsTupleScheme(); } } private static class clearKeysRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearKeysRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter382 : struct.keys) { oprot.writeString(_iter382); } } } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, clearKeysRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list383 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list383.size); String _elem384; for (int _i385 = 0; _i385 < _list383.size; ++_i385) { _elem384 = iprot.readString(); struct.keys.add(_elem384); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class clearKeysRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "clearKeysRecord_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( clearKeysRecord_result.class, metaDataMap); } public clearKeysRecord_result() {} public clearKeysRecord_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public clearKeysRecord_result(clearKeysRecord_result other) { if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public clearKeysRecord_result deepCopy() { return new clearKeysRecord_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 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 com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public clearKeysRecord_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 clearKeysRecord_resultStandardSchemeFactory implements SchemeFactory { public clearKeysRecord_resultStandardScheme getScheme() { return new clearKeysRecord_resultStandardScheme(); } } private static class clearKeysRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearKeysRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, 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(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearKeysRecord_resultTupleSchemeFactory implements SchemeFactory { public clearKeysRecord_resultTupleScheme getScheme() { return new clearKeysRecord_resultTupleScheme(); } } private static class clearKeysRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearKeysRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetEx()) { optionals.set(0); } if(struct.isSetEx2()) { optionals.set(1); } 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, clearKeysRecord_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class clearKeyRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "clearKeyRecords_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new clearKeyRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new clearKeyRecords_argsTupleSchemeFactory()); } public String key; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( clearKeyRecords_args.class, metaDataMap); } public clearKeyRecords_args() {} public clearKeyRecords_args(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public clearKeyRecords_args(clearKeyRecords_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public clearKeyRecords_args deepCopy() { return new clearKeyRecords_args(this); } @Override public void clear() { this.key = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public clearKeyRecords_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public clearKeyRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public clearKeyRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public clearKeyRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public clearKeyRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof clearKeyRecords_args) return this.equals((clearKeyRecords_args) that); return false; } public boolean equals(clearKeyRecords_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(clearKeyRecords_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("clearKeyRecords_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class clearKeyRecords_argsStandardSchemeFactory implements SchemeFactory { public clearKeyRecords_argsStandardScheme getScheme() { return new clearKeyRecords_argsStandardScheme(); } } private static class clearKeyRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearKeyRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list386 = iprot .readListBegin(); struct.records = new ArrayList( _list386.size); long _elem387; for (int _i388 = 0; _i388 < _list386.size; ++_i388) { _elem387 = iprot.readI64(); struct.records.add(_elem387); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, clearKeyRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter389 : struct.records) { oprot.writeI64(_iter389); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearKeyRecords_argsTupleSchemeFactory implements SchemeFactory { public clearKeyRecords_argsTupleScheme getScheme() { return new clearKeyRecords_argsTupleScheme(); } } private static class clearKeyRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter390 : struct.records) { oprot.writeI64(_iter390); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, clearKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list391 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list391.size); long _elem392; for (int _i393 = 0; _i393 < _list391.size; ++_i393) { _elem392 = iprot.readI64(); struct.records.add(_elem392); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class clearKeyRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "clearKeyRecords_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( clearKeyRecords_result.class, metaDataMap); } public clearKeyRecords_result() {} public clearKeyRecords_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public clearKeyRecords_result(clearKeyRecords_result other) { if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public clearKeyRecords_result deepCopy() { return new clearKeyRecords_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 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 com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public clearKeyRecords_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 clearKeyRecords_resultStandardSchemeFactory implements SchemeFactory { public clearKeyRecords_resultStandardScheme getScheme() { return new clearKeyRecords_resultStandardScheme(); } } private static class clearKeyRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearKeyRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, 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(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearKeyRecords_resultTupleSchemeFactory implements SchemeFactory { public clearKeyRecords_resultTupleScheme getScheme() { return new clearKeyRecords_resultTupleScheme(); } } private static class clearKeyRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearKeyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetEx()) { optionals.set(0); } if(struct.isSetEx2()) { optionals.set(1); } 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, clearKeyRecords_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class clearKeysRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "clearKeysRecords_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new clearKeysRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new clearKeysRecords_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORDS((short) 2, "records"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( clearKeysRecords_args.class, metaDataMap); } public clearKeysRecords_args() {} public clearKeysRecords_args(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public clearKeysRecords_args(clearKeysRecords_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public clearKeysRecords_args deepCopy() { return new clearKeysRecords_args(this); } @Override public void clear() { this.keys = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public clearKeysRecords_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public clearKeysRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public clearKeysRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public clearKeysRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public clearKeysRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof clearKeysRecords_args) return this.equals((clearKeysRecords_args) that); return false; } public boolean equals(clearKeysRecords_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(clearKeysRecords_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("clearKeysRecords_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class clearKeysRecords_argsStandardSchemeFactory implements SchemeFactory { public clearKeysRecords_argsStandardScheme getScheme() { return new clearKeysRecords_argsStandardScheme(); } } private static class clearKeysRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearKeysRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list394 = iprot .readListBegin(); struct.keys = new ArrayList( _list394.size); String _elem395; for (int _i396 = 0; _i396 < _list394.size; ++_i396) { _elem395 = iprot.readString(); struct.keys.add(_elem395); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list397 = iprot .readListBegin(); struct.records = new ArrayList( _list397.size); long _elem398; for (int _i399 = 0; _i399 < _list397.size; ++_i399) { _elem398 = iprot.readI64(); struct.records.add(_elem398); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, clearKeysRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter400 : struct.keys) { oprot.writeString(_iter400); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter401 : struct.records) { oprot.writeI64(_iter401); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearKeysRecords_argsTupleSchemeFactory implements SchemeFactory { public clearKeysRecords_argsTupleScheme getScheme() { return new clearKeysRecords_argsTupleScheme(); } } private static class clearKeysRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearKeysRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter402 : struct.keys) { oprot.writeString(_iter402); } } } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter403 : struct.records) { oprot.writeI64(_iter403); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, clearKeysRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list404 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list404.size); String _elem405; for (int _i406 = 0; _i406 < _list404.size; ++_i406) { _elem405 = iprot.readString(); struct.keys.add(_elem405); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list407 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list407.size); long _elem408; for (int _i409 = 0; _i409 < _list407.size; ++_i409) { _elem408 = iprot.readI64(); struct.records.add(_elem408); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class clearKeysRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "clearKeysRecords_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( clearKeysRecords_result.class, metaDataMap); } public clearKeysRecords_result() {} public clearKeysRecords_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public clearKeysRecords_result(clearKeysRecords_result other) { if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public clearKeysRecords_result deepCopy() { return new clearKeysRecords_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 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 com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public clearKeysRecords_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 clearKeysRecords_resultStandardSchemeFactory implements SchemeFactory { public clearKeysRecords_resultStandardScheme getScheme() { return new clearKeysRecords_resultStandardScheme(); } } private static class clearKeysRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearKeysRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, 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(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearKeysRecords_resultTupleSchemeFactory implements SchemeFactory { public clearKeysRecords_resultTupleScheme getScheme() { return new clearKeysRecords_resultTupleScheme(); } } private static class clearKeysRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearKeysRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetEx()) { optionals.set(0); } if(struct.isSetEx2()) { optionals.set(1); } 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, clearKeysRecords_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class commit_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "commit_args"); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new commit_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new commit_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CREDS((short) 1, "creds"), TRANSACTION((short) 2, "transaction"), ENVIRONMENT((short) 3, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CREDS return CREDS; case 2: // TRANSACTION return TRANSACTION; case 3: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(commit_args.class, metaDataMap); } public commit_args() {} public commit_args(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public commit_args(commit_args other) { if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public commit_args deepCopy() { return new commit_args(this); } @Override public void clear() { this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public commit_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public commit_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public commit_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof commit_args) return this.equals((commit_args) that); return false; } public boolean equals(commit_args that) { if(that == null) return false; boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(commit_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("commit_args("); boolean first = true; sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class commit_argsStandardSchemeFactory implements SchemeFactory { public commit_argsStandardScheme getScheme() { return new commit_argsStandardScheme(); } } private static class commit_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, commit_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, commit_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class commit_argsTupleSchemeFactory implements SchemeFactory { public commit_argsTupleScheme getScheme() { return new commit_argsTupleScheme(); } } private static class commit_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, commit_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCreds()) { optionals.set(0); } if(struct.isSetTransaction()) { optionals.set(1); } if(struct.isSetEnvironment()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, commit_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if(incoming.get(0)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(1)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(2)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class commit_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "commit_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.BOOL, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(commit_result.class, metaDataMap); } public commit_result() {} public commit_result(boolean success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public commit_result(commit_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public commit_result deepCopy() { return new commit_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 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 com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public commit_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 commit_resultStandardSchemeFactory implements SchemeFactory { public commit_resultStandardScheme getScheme() { return new commit_resultStandardScheme(); } } private static class commit_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, commit_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, 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(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class commit_resultTupleSchemeFactory implements SchemeFactory { public commit_resultTupleScheme getScheme() { return new commit_resultTupleScheme(); } } private static class commit_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, commit_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, commit_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class describe_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "describe_args"); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describe_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new describe_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CREDS((short) 1, "creds"), TRANSACTION((short) 2, "transaction"), ENVIRONMENT((short) 3, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CREDS return CREDS; case 2: // TRANSACTION return TRANSACTION; case 3: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(describe_args.class, metaDataMap); } public describe_args() {} public describe_args(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public describe_args(describe_args other) { if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public describe_args deepCopy() { return new describe_args(this); } @Override public void clear() { this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public describe_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public describe_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public describe_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof describe_args) return this.equals((describe_args) that); return false; } public boolean equals(describe_args that) { if(that == null) return false; boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(describe_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("describe_args("); boolean first = true; sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class describe_argsStandardSchemeFactory implements SchemeFactory { public describe_argsStandardScheme getScheme() { return new describe_argsStandardScheme(); } } private static class describe_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describe_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, describe_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describe_argsTupleSchemeFactory implements SchemeFactory { public describe_argsTupleScheme getScheme() { return new describe_argsTupleScheme(); } } private static class describe_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describe_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCreds()) { optionals.set(0); } if(struct.isSetTransaction()) { optionals.set(1); } if(struct.isSetEnvironment()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describe_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if(incoming.get(0)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(1)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(2)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class describe_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "describe_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.SET, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describe_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new describe_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(describe_result.class, metaDataMap); } public describe_result() {} public describe_result(Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public describe_result(describe_result other) { if(other.isSetSuccess()) { Set __this__success = new LinkedHashSet( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public describe_result deepCopy() { return new describe_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(String elem) { if(this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public describe_result setSuccess(Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public describe_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public describe_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public describe_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Set) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 describe_result) return this.equals((describe_result) that); return false; } public boolean equals(describe_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(describe_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("describe_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 describe_resultStandardSchemeFactory implements SchemeFactory { public describe_resultStandardScheme getScheme() { return new describe_resultStandardScheme(); } } private static class describe_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describe_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set410 = iprot .readSetBegin(); struct.success = new LinkedHashSet( 2 * _set410.size); String _elem411; for (int _i412 = 0; _i412 < _set410.size; ++_i412) { _elem411 = iprot.readString(); struct.success.add(_elem411); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, describe_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (String _iter413 : struct.success) { oprot.writeString(_iter413); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describe_resultTupleSchemeFactory implements SchemeFactory { public describe_resultTupleScheme getScheme() { return new describe_resultTupleScheme(); } } private static class describe_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describe_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); 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); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describe_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TSet _set415 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashSet( 2 * _set415.size); String _elem416; for (int _i417 = 0; _i417 < _set415.size; ++_i417) { _elem416 = iprot.readString(); struct.success.add(_elem416); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class describeTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "describeTime_args"); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeTime_argsTupleSchemeFactory()); } public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { TIMESTAMP((short) 1, "timestamp"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // TIMESTAMP return TIMESTAMP; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(describeTime_args.class, metaDataMap); } public describeTime_args() {} public describeTime_args(long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public describeTime_args(describeTime_args other) { __isset_bitfield = other.__isset_bitfield; this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public describeTime_args deepCopy() { return new describeTime_args(this); } @Override public void clear() { setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getTimestamp() { return this.timestamp; } public describeTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public describeTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public describeTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public describeTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof describeTime_args) return this.equals((describeTime_args) that); return false; } public boolean equals(describeTime_args that) { if(that == null) return false; boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(describeTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("describeTime_args("); boolean first = true; sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class describeTime_argsStandardSchemeFactory implements SchemeFactory { public describeTime_argsStandardScheme getScheme() { return new describeTime_argsStandardScheme(); } } private static class describeTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, describeTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeTime_argsTupleSchemeFactory implements SchemeFactory { public describeTime_argsTupleScheme getScheme() { return new describeTime_argsTupleScheme(); } } private static class describeTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetTimestamp()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class describeTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "describeTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.SET, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeTime_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( describeTime_result.class, metaDataMap); } public describeTime_result() {} public describeTime_result(Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public describeTime_result(describeTime_result other) { if(other.isSetSuccess()) { Set __this__success = new LinkedHashSet( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public describeTime_result deepCopy() { return new describeTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(String elem) { if(this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public describeTime_result setSuccess(Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public describeTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public describeTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public describeTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Set) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 describeTime_result) return this.equals((describeTime_result) that); return false; } public boolean equals(describeTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(describeTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("describeTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 describeTime_resultStandardSchemeFactory implements SchemeFactory { public describeTime_resultStandardScheme getScheme() { return new describeTime_resultStandardScheme(); } } private static class describeTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set418 = iprot .readSetBegin(); struct.success = new LinkedHashSet( 2 * _set418.size); String _elem419; for (int _i420 = 0; _i420 < _set418.size; ++_i420) { _elem419 = iprot.readString(); struct.success.add(_elem419); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, describeTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (String _iter421 : struct.success) { oprot.writeString(_iter421); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeTime_resultTupleSchemeFactory implements SchemeFactory { public describeTime_resultTupleScheme getScheme() { return new describeTime_resultTupleScheme(); } } private static class describeTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); 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); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TSet _set423 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashSet( 2 * _set423.size); String _elem424; for (int _i425 = 0; _i425 < _set423.size; ++_i425) { _elem424 = iprot.readString(); struct.success.add(_elem424); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class describeTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "describeTimestr_args"); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeTimestr_argsTupleSchemeFactory()); } public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { TIMESTAMP((short) 1, "timestamp"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // TIMESTAMP return TIMESTAMP; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( describeTimestr_args.class, metaDataMap); } public describeTimestr_args() {} public describeTimestr_args(String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public describeTimestr_args(describeTimestr_args other) { if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public describeTimestr_args deepCopy() { return new describeTimestr_args(this); } @Override public void clear() { this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getTimestamp() { return this.timestamp; } public describeTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public describeTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public describeTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public describeTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof describeTimestr_args) return this.equals((describeTimestr_args) that); return false; } public boolean equals(describeTimestr_args that) { if(that == null) return false; boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(describeTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("describeTimestr_args("); boolean first = true; sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class describeTimestr_argsStandardSchemeFactory implements SchemeFactory { public describeTimestr_argsStandardScheme getScheme() { return new describeTimestr_argsStandardScheme(); } } private static class describeTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, describeTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeTimestr_argsTupleSchemeFactory implements SchemeFactory { public describeTimestr_argsTupleScheme getScheme() { return new describeTimestr_argsTupleScheme(); } } private static class describeTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetTimestamp()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class describeTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "describeTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.SET, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeTimestr_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( describeTimestr_result.class, metaDataMap); } public describeTimestr_result() {} public describeTimestr_result(Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public describeTimestr_result(describeTimestr_result other) { if(other.isSetSuccess()) { Set __this__success = new LinkedHashSet( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public describeTimestr_result deepCopy() { return new describeTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(String elem) { if(this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public describeTimestr_result setSuccess(Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public describeTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public describeTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public describeTimestr_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Set) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 describeTimestr_result) return this.equals((describeTimestr_result) that); return false; } public boolean equals(describeTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(describeTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("describeTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 describeTimestr_resultStandardSchemeFactory implements SchemeFactory { public describeTimestr_resultStandardScheme getScheme() { return new describeTimestr_resultStandardScheme(); } } private static class describeTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set426 = iprot .readSetBegin(); struct.success = new LinkedHashSet( 2 * _set426.size); String _elem427; for (int _i428 = 0; _i428 < _set426.size; ++_i428) { _elem427 = iprot.readString(); struct.success.add(_elem427); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, describeTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (String _iter429 : struct.success) { oprot.writeString(_iter429); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeTimestr_resultTupleSchemeFactory implements SchemeFactory { public describeTimestr_resultTupleScheme getScheme() { return new describeTimestr_resultTupleScheme(); } } private static class describeTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, describeTimestr_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( 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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class describeRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "describeRecord_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecord_argsTupleSchemeFactory()); } public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short) 1, "record"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORD return RECORD; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( describeRecord_args.class, metaDataMap); } public describeRecord_args() {} public describeRecord_args(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public describeRecord_args(describeRecord_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public describeRecord_args deepCopy() { return new describeRecord_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public describeRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public describeRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public describeRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public describeRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof describeRecord_args) return this.equals((describeRecord_args) that); return false; } public boolean equals(describeRecord_args that) { if(that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(describeRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("describeRecord_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class describeRecord_argsStandardSchemeFactory implements SchemeFactory { public describeRecord_argsStandardScheme getScheme() { return new describeRecord_argsStandardScheme(); } } private static class describeRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, describeRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecord_argsTupleSchemeFactory implements SchemeFactory { public describeRecord_argsTupleScheme getScheme() { return new describeRecord_argsTupleScheme(); } } private static class describeRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecord()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class describeRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "describeRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.SET, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecord_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( describeRecord_result.class, metaDataMap); } public describeRecord_result() {} public describeRecord_result(Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public describeRecord_result(describeRecord_result other) { if(other.isSetSuccess()) { Set __this__success = new LinkedHashSet( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public describeRecord_result deepCopy() { return new describeRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(String elem) { if(this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public describeRecord_result setSuccess(Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public describeRecord_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public describeRecord_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public describeRecord_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Set) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 describeRecord_resultStandardSchemeFactory implements SchemeFactory { public describeRecord_resultStandardScheme getScheme() { return new describeRecord_resultStandardScheme(); } } private static class describeRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set434 = iprot .readSetBegin(); struct.success = new LinkedHashSet( 2 * _set434.size); String _elem435; for (int _i436 = 0; _i436 < _set434.size; ++_i436) { _elem435 = iprot.readString(); struct.success.add(_elem435); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, describeRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (String _iter437 : struct.success) { oprot.writeString(_iter437); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecord_resultTupleSchemeFactory implements SchemeFactory { public describeRecord_resultTupleScheme getScheme() { return new describeRecord_resultTupleScheme(); } } private static class describeRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (String _iter438 : struct.success) { oprot.writeString(_iter438); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TSet _set439 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashSet( 2 * _set439.size); String _elem440; for (int _i441 = 0; _i441 < _set439.size; ++_i441) { _elem440 = iprot.readString(); struct.success.add(_elem440); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class describeRecordTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "describeRecordTime_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecordTime_argsTupleSchemeFactory()); } public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short) 1, "record"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORD return RECORD; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( describeRecordTime_args.class, metaDataMap); } public describeRecordTime_args() {} public describeRecordTime_args(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public describeRecordTime_args(describeRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public describeRecordTime_args deepCopy() { return new describeRecordTime_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public describeRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public describeRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public describeRecordTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public describeRecordTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public describeRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof describeRecordTime_args) return this.equals((describeRecordTime_args) that); return false; } public boolean equals(describeRecordTime_args that) { if(that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(describeRecordTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("describeRecordTime_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class describeRecordTime_argsStandardSchemeFactory implements SchemeFactory { public describeRecordTime_argsStandardScheme getScheme() { return new describeRecordTime_argsStandardScheme(); } } private static class describeRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecordTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, describeRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecordTime_argsTupleSchemeFactory implements SchemeFactory { public describeRecordTime_argsTupleScheme getScheme() { return new describeRecordTime_argsTupleScheme(); } } private static class describeRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecord()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class describeRecordTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "describeRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.SET, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecordTime_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( describeRecordTime_result.class, metaDataMap); } public describeRecordTime_result() {} public describeRecordTime_result(Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public describeRecordTime_result(describeRecordTime_result other) { if(other.isSetSuccess()) { Set __this__success = new LinkedHashSet( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public describeRecordTime_result deepCopy() { return new describeRecordTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(String elem) { if(this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public describeRecordTime_result setSuccess(Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public describeRecordTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public describeRecordTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public describeRecordTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Set) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 describeRecordTime_resultStandardSchemeFactory implements SchemeFactory { public describeRecordTime_resultStandardScheme getScheme() { return new describeRecordTime_resultStandardScheme(); } } private static class describeRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set442 = iprot .readSetBegin(); struct.success = new LinkedHashSet( 2 * _set442.size); String _elem443; for (int _i444 = 0; _i444 < _set442.size; ++_i444) { _elem443 = iprot.readString(); struct.success.add(_elem443); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, describeRecordTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (String _iter445 : struct.success) { oprot.writeString(_iter445); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecordTime_resultTupleSchemeFactory implements SchemeFactory { public describeRecordTime_resultTupleScheme getScheme() { return new describeRecordTime_resultTupleScheme(); } } private static class describeRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (String _iter446 : struct.success) { oprot.writeString(_iter446); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TSet _set447 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashSet( 2 * _set447.size); String _elem448; for (int _i449 = 0; _i449 < _set447.size; ++_i449) { _elem448 = iprot.readString(); struct.success.add(_elem448); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class describeRecordTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "describeRecordTimestr_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecordTimestr_argsTupleSchemeFactory()); } public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short) 1, "record"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORD return RECORD; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( describeRecordTimestr_args.class, metaDataMap); } public describeRecordTimestr_args() {} public describeRecordTimestr_args(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public describeRecordTimestr_args(describeRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public describeRecordTimestr_args deepCopy() { return new describeRecordTimestr_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public describeRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public describeRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public describeRecordTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public describeRecordTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public describeRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof describeRecordTimestr_args) return this.equals((describeRecordTimestr_args) that); return false; } public boolean equals(describeRecordTimestr_args that) { if(that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(describeRecordTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("describeRecordTimestr_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class describeRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public describeRecordTimestr_argsStandardScheme getScheme() { return new describeRecordTimestr_argsStandardScheme(); } } private static class describeRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecordTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, describeRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public describeRecordTimestr_argsTupleScheme getScheme() { return new describeRecordTimestr_argsTupleScheme(); } } private static class describeRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecord()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class describeRecordTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "describeRecordTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.SET, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecordTimestr_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( describeRecordTimestr_result.class, metaDataMap); } public describeRecordTimestr_result() {} public describeRecordTimestr_result(Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public describeRecordTimestr_result( describeRecordTimestr_result other) { if(other.isSetSuccess()) { Set __this__success = new LinkedHashSet( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(String elem) { if(this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public describeRecordTimestr_result setSuccess(Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public describeRecordTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public describeRecordTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public describeRecordTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public describeRecordTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Set) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class describeRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public describeRecordTimestr_resultStandardScheme getScheme() { return new describeRecordTimestr_resultStandardScheme(); } } private static class describeRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecordTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set450 = iprot .readSetBegin(); struct.success = new LinkedHashSet( 2 * _set450.size); String _elem451; for (int _i452 = 0; _i452 < _set450.size; ++_i452) { _elem451 = iprot.readString(); struct.success.add(_elem451); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, describeRecordTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (String _iter453 : struct.success) { oprot.writeString(_iter453); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public describeRecordTimestr_resultTupleScheme getScheme() { return new describeRecordTimestr_resultTupleScheme(); } } private static class describeRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (String _iter454 : struct.success) { oprot.writeString(_iter454); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TSet _set455 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashSet( 2 * _set455.size); String _elem456; for (int _i457 = 0; _i457 < _set455.size; ++_i457) { _elem456 = iprot.readString(); struct.success.add(_elem456); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class describeRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "describeRecords_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecords_argsTupleSchemeFactory()); } public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short) 1, "records"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORDS return RECORDS; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( describeRecords_args.class, metaDataMap); } public describeRecords_args() {} public describeRecords_args(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public describeRecords_args(describeRecords_args other) { if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public describeRecords_args deepCopy() { return new describeRecords_args(this); } @Override public void clear() { this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public describeRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public describeRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public describeRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public describeRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof describeRecords_args) return this.equals((describeRecords_args) that); return false; } public boolean equals(describeRecords_args that) { if(that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(describeRecords_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("describeRecords_args("); boolean first = true; sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class describeRecords_argsStandardSchemeFactory implements SchemeFactory { public describeRecords_argsStandardScheme getScheme() { return new describeRecords_argsStandardScheme(); } } private static class describeRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list458 = iprot .readListBegin(); struct.records = new ArrayList( _list458.size); long _elem459; for (int _i460 = 0; _i460 < _list458.size; ++_i460) { _elem459 = iprot.readI64(); struct.records.add(_elem459); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, describeRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter461 : struct.records) { oprot.writeI64(_iter461); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecords_argsTupleSchemeFactory implements SchemeFactory { public describeRecords_argsTupleScheme getScheme() { return new describeRecords_argsTupleScheme(); } } private static class describeRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecords()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter462 : struct.records) { oprot.writeI64(_iter462); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list463 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list463.size); long _elem464; for (int _i465 = 0; _i465 < _list463.size; ++_i465) { _elem464 = iprot.readI64(); struct.records.add(_elem464); } } struct.setRecordsIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class describeRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "describeRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecords_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( describeRecords_result.class, metaDataMap); } public describeRecords_result() {} public describeRecords_result(Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public describeRecords_result(describeRecords_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public describeRecords_result deepCopy() { return new describeRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public describeRecords_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public describeRecords_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public describeRecords_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public describeRecords_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 describeRecords_resultStandardSchemeFactory implements SchemeFactory { public describeRecords_resultStandardScheme getScheme() { return new describeRecords_resultStandardScheme(); } } private static class describeRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map466 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map466.size); long _key467; Set _val468; for (int _i469 = 0; _i469 < _map466.size; ++_i469) { _key467 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set470 = iprot .readSetBegin(); _val468 = new LinkedHashSet( 2 * _set470.size); String _elem471; for (int _i472 = 0; _i472 < _set470.size; ++_i472) { _elem471 = iprot.readString(); _val468.add(_elem471); } iprot.readSetEnd(); } struct.success.put(_key467, _val468); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, describeRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter473 : struct.success .entrySet()) { oprot.writeI64(_iter473.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRING, _iter473.getValue().size())); for (String _iter474 : _iter473.getValue()) { oprot.writeString(_iter474); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecords_resultTupleSchemeFactory implements SchemeFactory { public describeRecords_resultTupleScheme getScheme() { return new describeRecords_resultTupleScheme(); } } private static class describeRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter475 : struct.success .entrySet()) { oprot.writeI64(_iter475.getKey()); { oprot.writeI32(_iter475.getValue().size()); for (String _iter476 : _iter475.getValue()) { oprot.writeString(_iter476); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map477 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map477.size); long _key478; Set _val479; for (int _i480 = 0; _i480 < _map477.size; ++_i480) { _key478 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set481 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); _val479 = new LinkedHashSet( 2 * _set481.size); String _elem482; for (int _i483 = 0; _i483 < _set481.size; ++_i483) { _elem482 = iprot.readString(); _val479.add(_elem482); } } struct.success.put(_key478, _val479); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class describeRecordsTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "describeRecordsTime_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecordsTime_argsTupleSchemeFactory()); } public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short) 1, "records"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORDS return RECORDS; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( describeRecordsTime_args.class, metaDataMap); } public describeRecordsTime_args() {} public describeRecordsTime_args(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public describeRecordsTime_args(describeRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public describeRecordsTime_args deepCopy() { return new describeRecordsTime_args(this); } @Override public void clear() { this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public describeRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public describeRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public describeRecordsTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public describeRecordsTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public describeRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof describeRecordsTime_args) return this.equals((describeRecordsTime_args) that); return false; } public boolean equals(describeRecordsTime_args that) { if(that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(describeRecordsTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("describeRecordsTime_args("); boolean first = true; sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class describeRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public describeRecordsTime_argsStandardScheme getScheme() { return new describeRecordsTime_argsStandardScheme(); } } private static class describeRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecordsTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list484 = iprot .readListBegin(); struct.records = new ArrayList( _list484.size); long _elem485; for (int _i486 = 0; _i486 < _list484.size; ++_i486) { _elem485 = iprot.readI64(); struct.records.add(_elem485); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, describeRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter487 : struct.records) { oprot.writeI64(_iter487); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public describeRecordsTime_argsTupleScheme getScheme() { return new describeRecordsTime_argsTupleScheme(); } } private static class describeRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecords()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter488 : struct.records) { oprot.writeI64(_iter488); } } } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list489 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list489.size); long _elem490; for (int _i491 = 0; _i491 < _list489.size; ++_i491) { _elem490 = iprot.readI64(); struct.records.add(_elem490); } } struct.setRecordsIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class describeRecordsTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "describeRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecordsTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( describeRecordsTime_result.class, metaDataMap); } public describeRecordsTime_result() {} public describeRecordsTime_result(Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public describeRecordsTime_result(describeRecordsTime_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public describeRecordsTime_result deepCopy() { return new describeRecordsTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public describeRecordsTime_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public describeRecordsTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public describeRecordsTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public describeRecordsTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 describeRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public describeRecordsTime_resultStandardScheme getScheme() { return new describeRecordsTime_resultStandardScheme(); } } private static class describeRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecordsTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map492 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map492.size); long _key493; Set _val494; for (int _i495 = 0; _i495 < _map492.size; ++_i495) { _key493 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set496 = iprot .readSetBegin(); _val494 = new LinkedHashSet( 2 * _set496.size); String _elem497; for (int _i498 = 0; _i498 < _set496.size; ++_i498) { _elem497 = iprot.readString(); _val494.add(_elem497); } iprot.readSetEnd(); } struct.success.put(_key493, _val494); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, describeRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter499 : struct.success .entrySet()) { oprot.writeI64(_iter499.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRING, _iter499.getValue().size())); for (String _iter500 : _iter499.getValue()) { oprot.writeString(_iter500); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public describeRecordsTime_resultTupleScheme getScheme() { return new describeRecordsTime_resultTupleScheme(); } } private static class describeRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter501 : struct.success .entrySet()) { oprot.writeI64(_iter501.getKey()); { oprot.writeI32(_iter501.getValue().size()); for (String _iter502 : _iter501.getValue()) { oprot.writeString(_iter502); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map503 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map503.size); long _key504; Set _val505; for (int _i506 = 0; _i506 < _map503.size; ++_i506) { _key504 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set507 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); _val505 = new LinkedHashSet( 2 * _set507.size); String _elem508; for (int _i509 = 0; _i509 < _set507.size; ++_i509) { _elem508 = iprot.readString(); _val505.add(_elem508); } } struct.success.put(_key504, _val505); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class describeRecordsTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "describeRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecordsTimestr_argsTupleSchemeFactory()); } public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short) 1, "records"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORDS return RECORDS; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( describeRecordsTimestr_args.class, metaDataMap); } public describeRecordsTimestr_args() {} public describeRecordsTimestr_args(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public describeRecordsTimestr_args(describeRecordsTimestr_args other) { if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public describeRecordsTimestr_args deepCopy() { return new describeRecordsTimestr_args(this); } @Override public void clear() { this.records = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public describeRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public describeRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public describeRecordsTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public describeRecordsTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public describeRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof describeRecordsTimestr_args) return this.equals((describeRecordsTimestr_args) that); return false; } public boolean equals(describeRecordsTimestr_args that) { if(that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(describeRecordsTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "describeRecordsTimestr_args("); boolean first = true; sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class describeRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public describeRecordsTimestr_argsStandardScheme getScheme() { return new describeRecordsTimestr_argsStandardScheme(); } } private static class describeRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecordsTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list510 = iprot .readListBegin(); struct.records = new ArrayList( _list510.size); long _elem511; for (int _i512 = 0; _i512 < _list510.size; ++_i512) { _elem511 = iprot.readI64(); struct.records.add(_elem511); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, describeRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter513 : struct.records) { oprot.writeI64(_iter513); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public describeRecordsTimestr_argsTupleScheme getScheme() { return new describeRecordsTimestr_argsTupleScheme(); } } private static class describeRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecords()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter514 : struct.records) { oprot.writeI64(_iter514); } } } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list515 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list515.size); long _elem516; for (int _i517 = 0; _i517 < _list515.size; ++_i517) { _elem516 = iprot.readI64(); struct.records.add(_elem516); } } struct.setRecordsIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class describeRecordsTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "describeRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecordsTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( describeRecordsTimestr_result.class, metaDataMap); } public describeRecordsTimestr_result() {} public describeRecordsTimestr_result(Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public describeRecordsTimestr_result( describeRecordsTimestr_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public describeRecordsTimestr_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public describeRecordsTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public describeRecordsTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public describeRecordsTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public describeRecordsTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class describeRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public describeRecordsTimestr_resultStandardScheme getScheme() { return new describeRecordsTimestr_resultStandardScheme(); } } private static class describeRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecordsTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map518 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map518.size); long _key519; Set _val520; for (int _i521 = 0; _i521 < _map518.size; ++_i521) { _key519 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set522 = iprot .readSetBegin(); _val520 = new LinkedHashSet( 2 * _set522.size); String _elem523; for (int _i524 = 0; _i524 < _set522.size; ++_i524) { _elem523 = iprot.readString(); _val520.add(_elem523); } iprot.readSetEnd(); } struct.success.put(_key519, _val520); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, describeRecordsTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter525 : struct.success .entrySet()) { oprot.writeI64(_iter525.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRING, _iter525.getValue().size())); for (String _iter526 : _iter525.getValue()) { oprot.writeString(_iter526); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public describeRecordsTimestr_resultTupleScheme getScheme() { return new describeRecordsTimestr_resultTupleScheme(); } } private static class describeRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter527 : struct.success .entrySet()) { oprot.writeI64(_iter527.getKey()); { oprot.writeI32(_iter527.getValue().size()); for (String _iter528 : _iter527.getValue()) { oprot.writeString(_iter528); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map529 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map529.size); long _key530; Set _val531; for (int _i532 = 0; _i532 < _map529.size; ++_i532) { _key530 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set533 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); _val531 = new LinkedHashSet( 2 * _set533.size); String _elem534; for (int _i535 = 0; _i535 < _set533.size; ++_i535) { _elem534 = iprot.readString(); _val531.add(_elem534); } } struct.success.put(_key530, _val531); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class diffRecordStart_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffRecordStart_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffRecordStart_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffRecordStart_argsTupleSchemeFactory()); } public long record; // required public long start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short) 1, "record"), START((short) 2, "start"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORD return RECORD; case 2: // START return START; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __START_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffRecordStart_args.class, metaDataMap); } public diffRecordStart_args() {} public diffRecordStart_args(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.start = start; setStartIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffRecordStart_args(diffRecordStart_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; this.start = other.start; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public diffRecordStart_args deepCopy() { return new diffRecordStart_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; setStartIsSet(false); this.start = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public diffRecordStart_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getStart() { return this.start; } public diffRecordStart_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffRecordStart_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffRecordStart_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffRecordStart_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORD: return isSetRecord(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof diffRecordStart_args) return this.equals((diffRecordStart_args) that); return false; } public boolean equals(diffRecordStart_args that) { if(that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_start = true; boolean that_present_start = true; if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(this.start != that.start) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_start = true; list.add(present_start); if(present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffRecordStart_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("diffRecordStart_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class diffRecordStart_argsStandardSchemeFactory implements SchemeFactory { public diffRecordStart_argsStandardScheme getScheme() { return new diffRecordStart_argsStandardScheme(); } } private static class diffRecordStart_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffRecordStart_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, diffRecordStart_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffRecordStart_argsTupleSchemeFactory implements SchemeFactory { public diffRecordStart_argsTupleScheme getScheme() { return new diffRecordStart_argsTupleScheme(); } } private static class diffRecordStart_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffRecordStart_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecord()) { optionals.set(0); } if(struct.isSetStart()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetStart()) { oprot.writeI64(struct.start); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffRecordStart_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(1)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffRecordStart_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffRecordStart_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffRecordStart_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffRecordStart_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.EnumMetaData( org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Diff.class), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffRecordStart_result.class, metaDataMap); } public diffRecordStart_result() {} public diffRecordStart_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public diffRecordStart_result(diffRecordStart_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { String other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); String __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public diffRecordStart_result deepCopy() { return new diffRecordStart_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public diffRecordStart_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffRecordStart_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffRecordStart_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public diffRecordStart_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 diffRecordStart_resultStandardSchemeFactory implements SchemeFactory { public diffRecordStart_resultStandardScheme getScheme() { return new diffRecordStart_resultStandardScheme(); } } private static class diffRecordStart_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffRecordStart_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map536 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map536.size); String _key537; Map> _val538; for (int _i539 = 0; _i539 < _map536.size; ++_i539) { _key537 = iprot.readString(); { org.apache.thrift.protocol.TMap _map540 = iprot .readMapBegin(); _val538 = new LinkedHashMap>( 2 * _map540.size); com.cinchapi.concourse.thrift.Diff _key541; Set _val542; for (int _i543 = 0; _i543 < _map540.size; ++_i543) { _key541 = com.cinchapi.concourse.thrift.Diff .findByValue( iprot.readI32()); { org.apache.thrift.protocol.TSet _set544 = iprot .readSetBegin(); _val542 = new LinkedHashSet( 2 * _set544.size); com.cinchapi.concourse.thrift.TObject _elem545; for (int _i546 = 0; _i546 < _set544.size; ++_i546) { _elem545 = new com.cinchapi.concourse.thrift.TObject(); _elem545.read(iprot); _val542.add(_elem545); } iprot.readSetEnd(); } _val538.put(_key541, _val542); } iprot.readMapEnd(); } struct.success.put(_key537, _val538); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, diffRecordStart_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter547 : struct.success .entrySet()) { oprot.writeString(_iter547.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter547.getValue().size())); for (Map.Entry> _iter548 : _iter547 .getValue().entrySet()) { oprot.writeI32( _iter548.getKey().getValue()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter548.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter549 : _iter548 .getValue()) { _iter549.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffRecordStart_resultTupleSchemeFactory implements SchemeFactory { public diffRecordStart_resultTupleScheme getScheme() { return new diffRecordStart_resultTupleScheme(); } } private static class diffRecordStart_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffRecordStart_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter550 : struct.success .entrySet()) { oprot.writeString(_iter550.getKey()); { oprot.writeI32(_iter550.getValue().size()); for (Map.Entry> _iter551 : _iter550 .getValue().entrySet()) { oprot.writeI32( _iter551.getKey().getValue()); { oprot.writeI32( _iter551.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter552 : _iter551 .getValue()) { _iter552.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map553 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map553.size); String _key554; Map> _val555; for (int _i556 = 0; _i556 < _map553.size; ++_i556) { _key554 = iprot.readString(); { org.apache.thrift.protocol.TMap _map557 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val555 = new LinkedHashMap>( 2 * _map557.size); com.cinchapi.concourse.thrift.Diff _key558; Set _val559; for (int _i560 = 0; _i560 < _map557.size; ++_i560) { _key558 = com.cinchapi.concourse.thrift.Diff .findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set561 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val559 = new LinkedHashSet( 2 * _set561.size); com.cinchapi.concourse.thrift.TObject _elem562; for (int _i563 = 0; _i563 < _set561.size; ++_i563) { _elem562 = new com.cinchapi.concourse.thrift.TObject(); _elem562.read(iprot); _val559.add(_elem562); } } _val555.put(_key558, _val559); } } struct.success.put(_key554, _val555); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class diffRecordStartstr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffRecordStartstr_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffRecordStartstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffRecordStartstr_argsTupleSchemeFactory()); } public long record; // required public String start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short) 1, "record"), START((short) 2, "start"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORD return RECORD; case 2: // START return START; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffRecordStartstr_args.class, metaDataMap); } public diffRecordStartstr_args() {} public diffRecordStartstr_args(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffRecordStartstr_args(diffRecordStartstr_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if(other.isSetStart()) { this.start = other.start; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public diffRecordStartstr_args deepCopy() { return new diffRecordStartstr_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.start = null; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public diffRecordStartstr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getStart() { return this.start; } public diffRecordStartstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if(!value) { this.start = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffRecordStartstr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffRecordStartstr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffRecordStartstr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORD: return isSetRecord(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof diffRecordStartstr_args) return this.equals((diffRecordStartstr_args) that); return false; } public boolean equals(diffRecordStartstr_args that) { if(that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(!this.start.equals(that.start)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_start = true && (isSetStart()); list.add(present_start); if(present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffRecordStartstr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("diffRecordStartstr_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("start:"); if(this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class diffRecordStartstr_argsStandardSchemeFactory implements SchemeFactory { public diffRecordStartstr_argsStandardScheme getScheme() { return new diffRecordStartstr_argsStandardScheme(); } } private static class diffRecordStartstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffRecordStartstr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, diffRecordStartstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffRecordStartstr_argsTupleSchemeFactory implements SchemeFactory { public diffRecordStartstr_argsTupleScheme getScheme() { return new diffRecordStartstr_argsTupleScheme(); } } private static class diffRecordStartstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffRecordStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecord()) { optionals.set(0); } if(struct.isSetStart()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetStart()) { oprot.writeString(struct.start); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffRecordStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(1)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffRecordStartstr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffRecordStartstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffRecordStartstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffRecordStartstr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffRecordStartstr_result.class, metaDataMap); } public diffRecordStartstr_result() {} public diffRecordStartstr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public diffRecordStartstr_result(diffRecordStartstr_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { String other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); String __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public diffRecordStartstr_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffRecordStartstr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffRecordStartstr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public diffRecordStartstr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public diffRecordStartstr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class diffRecordStartstr_resultStandardSchemeFactory implements SchemeFactory { public diffRecordStartstr_resultStandardScheme getScheme() { return new diffRecordStartstr_resultStandardScheme(); } } private static class diffRecordStartstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffRecordStartstr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map564 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map564.size); String _key565; Map> _val566; for (int _i567 = 0; _i567 < _map564.size; ++_i567) { _key565 = iprot.readString(); { org.apache.thrift.protocol.TMap _map568 = iprot .readMapBegin(); _val566 = new LinkedHashMap>( 2 * _map568.size); com.cinchapi.concourse.thrift.Diff _key569; Set _val570; for (int _i571 = 0; _i571 < _map568.size; ++_i571) { _key569 = com.cinchapi.concourse.thrift.Diff .findByValue( iprot.readI32()); { org.apache.thrift.protocol.TSet _set572 = iprot .readSetBegin(); _val570 = new LinkedHashSet( 2 * _set572.size); com.cinchapi.concourse.thrift.TObject _elem573; for (int _i574 = 0; _i574 < _set572.size; ++_i574) { _elem573 = new com.cinchapi.concourse.thrift.TObject(); _elem573.read(iprot); _val570.add(_elem573); } iprot.readSetEnd(); } _val566.put(_key569, _val570); } iprot.readMapEnd(); } struct.success.put(_key565, _val566); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, diffRecordStartstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter575 : struct.success .entrySet()) { oprot.writeString(_iter575.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter575.getValue().size())); for (Map.Entry> _iter576 : _iter575 .getValue().entrySet()) { oprot.writeI32( _iter576.getKey().getValue()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter576.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter577 : _iter576 .getValue()) { _iter577.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffRecordStartstr_resultTupleSchemeFactory implements SchemeFactory { public diffRecordStartstr_resultTupleScheme getScheme() { return new diffRecordStartstr_resultTupleScheme(); } } private static class diffRecordStartstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffRecordStartstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter578 : struct.success .entrySet()) { oprot.writeString(_iter578.getKey()); { oprot.writeI32(_iter578.getValue().size()); for (Map.Entry> _iter579 : _iter578 .getValue().entrySet()) { oprot.writeI32( _iter579.getKey().getValue()); { oprot.writeI32( _iter579.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter580 : _iter579 .getValue()) { _iter580.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map581 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map581.size); String _key582; Map> _val583; for (int _i584 = 0; _i584 < _map581.size; ++_i584) { _key582 = iprot.readString(); { org.apache.thrift.protocol.TMap _map585 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val583 = new LinkedHashMap>( 2 * _map585.size); com.cinchapi.concourse.thrift.Diff _key586; Set _val587; for (int _i588 = 0; _i588 < _map585.size; ++_i588) { _key586 = com.cinchapi.concourse.thrift.Diff .findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set589 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val587 = new LinkedHashSet( 2 * _set589.size); com.cinchapi.concourse.thrift.TObject _elem590; for (int _i591 = 0; _i591 < _set589.size; ++_i591) { _elem590 = new com.cinchapi.concourse.thrift.TObject(); _elem590.read(iprot); _val587.add(_elem590); } } _val583.put(_key586, _val587); } } struct.success.put(_key582, _val583); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class diffRecordStartEnd_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffRecordStartEnd_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField( "tend", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffRecordStartEnd_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffRecordStartEnd_argsTupleSchemeFactory()); } public long record; // required public long start; // required public long tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short) 1, "record"), START((short) 2, "start"), TEND((short) 3, "tend"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORD return RECORD; case 2: // START return START; case 3: // TEND return TEND; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __START_ISSET_ID = 1; private static final int __TEND_ISSET_ID = 2; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffRecordStartEnd_args.class, metaDataMap); } public diffRecordStartEnd_args() {} public diffRecordStartEnd_args(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.start = start; setStartIsSet(true); this.tend = tend; setTendIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffRecordStartEnd_args(diffRecordStartEnd_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; this.start = other.start; this.tend = other.tend; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public diffRecordStartEnd_args deepCopy() { return new diffRecordStartEnd_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; setStartIsSet(false); this.start = 0; setTendIsSet(false); this.tend = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public diffRecordStartEnd_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getStart() { return this.start; } public diffRecordStartEnd_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public long getTend() { return this.tend; } public diffRecordStartEnd_args setTend(long tend) { this.tend = tend; setTendIsSet(true); return this; } public void unsetTend() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TEND_ISSET_ID); } /** * Returns true if field tend is set (has been assigned a value) and * false otherwise */ public boolean isSetTend() { return EncodingUtils.testBit(__isset_bitfield, __TEND_ISSET_ID); } public void setTendIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TEND_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffRecordStartEnd_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffRecordStartEnd_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffRecordStartEnd_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((Long) value); } break; case TEND: if(value == null) { unsetTend(); } else { setTend((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORD: return isSetRecord(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof diffRecordStartEnd_args) return this.equals((diffRecordStartEnd_args) that); return false; } public boolean equals(diffRecordStartEnd_args that) { if(that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_start = true; boolean that_present_start = true; if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(this.start != that.start) return false; } boolean this_present_tend = true; boolean that_present_tend = true; if(this_present_tend || that_present_tend) { if(!(this_present_tend && that_present_tend)) return false; if(this.tend != that.tend) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_start = true; list.add(present_start); if(present_start) list.add(start); boolean present_tend = true; list.add(present_tend); if(present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffRecordStartEnd_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()) .compareTo(other.isSetTend()); if(lastComparison != 0) { return lastComparison; } if(isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.tend, other.tend); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("diffRecordStartEnd_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if(!first) sb.append(", "); sb.append("tend:"); sb.append(this.tend); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class diffRecordStartEnd_argsStandardSchemeFactory implements SchemeFactory { public diffRecordStartEnd_argsStandardScheme getScheme() { return new diffRecordStartEnd_argsStandardScheme(); } } private static class diffRecordStartEnd_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffRecordStartEnd_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TEND if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, diffRecordStartEnd_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeI64(struct.tend); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffRecordStartEnd_argsTupleSchemeFactory implements SchemeFactory { public diffRecordStartEnd_argsTupleScheme getScheme() { return new diffRecordStartEnd_argsTupleScheme(); } } private static class diffRecordStartEnd_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffRecordStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecord()) { optionals.set(0); } if(struct.isSetStart()) { optionals.set(1); } if(struct.isSetTend()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetStart()) { oprot.writeI64(struct.start); } if(struct.isSetTend()) { oprot.writeI64(struct.tend); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffRecordStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(1)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if(incoming.get(2)) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffRecordStartEnd_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffRecordStartEnd_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffRecordStartEnd_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffRecordStartEnd_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.EnumMetaData( org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Diff.class), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffRecordStartEnd_result.class, metaDataMap); } public diffRecordStartEnd_result() {} public diffRecordStartEnd_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public diffRecordStartEnd_result(diffRecordStartEnd_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { String other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); String __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public diffRecordStartEnd_result deepCopy() { return new diffRecordStartEnd_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public diffRecordStartEnd_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffRecordStartEnd_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffRecordStartEnd_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public diffRecordStartEnd_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 diffRecordStartEnd_resultStandardSchemeFactory implements SchemeFactory { public diffRecordStartEnd_resultStandardScheme getScheme() { return new diffRecordStartEnd_resultStandardScheme(); } } private static class diffRecordStartEnd_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffRecordStartEnd_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map592 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map592.size); String _key593; Map> _val594; for (int _i595 = 0; _i595 < _map592.size; ++_i595) { _key593 = iprot.readString(); { org.apache.thrift.protocol.TMap _map596 = iprot .readMapBegin(); _val594 = new LinkedHashMap>( 2 * _map596.size); com.cinchapi.concourse.thrift.Diff _key597; Set _val598; for (int _i599 = 0; _i599 < _map596.size; ++_i599) { _key597 = com.cinchapi.concourse.thrift.Diff .findByValue( iprot.readI32()); { org.apache.thrift.protocol.TSet _set600 = iprot .readSetBegin(); _val598 = new LinkedHashSet( 2 * _set600.size); com.cinchapi.concourse.thrift.TObject _elem601; for (int _i602 = 0; _i602 < _set600.size; ++_i602) { _elem601 = new com.cinchapi.concourse.thrift.TObject(); _elem601.read(iprot); _val598.add(_elem601); } iprot.readSetEnd(); } _val594.put(_key597, _val598); } iprot.readMapEnd(); } struct.success.put(_key593, _val594); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, diffRecordStartEnd_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter603 : struct.success .entrySet()) { oprot.writeString(_iter603.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter603.getValue().size())); for (Map.Entry> _iter604 : _iter603 .getValue().entrySet()) { oprot.writeI32( _iter604.getKey().getValue()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter604.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter605 : _iter604 .getValue()) { _iter605.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffRecordStartEnd_resultTupleSchemeFactory implements SchemeFactory { public diffRecordStartEnd_resultTupleScheme getScheme() { return new diffRecordStartEnd_resultTupleScheme(); } } private static class diffRecordStartEnd_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffRecordStartEnd_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter606 : struct.success .entrySet()) { oprot.writeString(_iter606.getKey()); { oprot.writeI32(_iter606.getValue().size()); for (Map.Entry> _iter607 : _iter606 .getValue().entrySet()) { oprot.writeI32( _iter607.getKey().getValue()); { oprot.writeI32( _iter607.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter608 : _iter607 .getValue()) { _iter608.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map609 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map609.size); String _key610; Map> _val611; for (int _i612 = 0; _i612 < _map609.size; ++_i612) { _key610 = iprot.readString(); { org.apache.thrift.protocol.TMap _map613 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val611 = new LinkedHashMap>( 2 * _map613.size); com.cinchapi.concourse.thrift.Diff _key614; Set _val615; for (int _i616 = 0; _i616 < _map613.size; ++_i616) { _key614 = com.cinchapi.concourse.thrift.Diff .findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set617 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val615 = new LinkedHashSet( 2 * _set617.size); com.cinchapi.concourse.thrift.TObject _elem618; for (int _i619 = 0; _i619 < _set617.size; ++_i619) { _elem618 = new com.cinchapi.concourse.thrift.TObject(); _elem618.read(iprot); _val615.add(_elem618); } } _val611.put(_key614, _val615); } } struct.success.put(_key610, _val611); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class diffRecordStartstrEndstr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffRecordStartstrEndstr_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField( "tend", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffRecordStartstrEndstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffRecordStartstrEndstr_argsTupleSchemeFactory()); } public long record; // required public String start; // required public String tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short) 1, "record"), START((short) 2, "start"), TEND((short) 3, "tend"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORD return RECORD; case 2: // START return START; case 3: // TEND return TEND; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffRecordStartstrEndstr_args.class, metaDataMap); } public diffRecordStartstrEndstr_args() {} public diffRecordStartstrEndstr_args(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffRecordStartstrEndstr_args( diffRecordStartstrEndstr_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if(other.isSetStart()) { this.start = other.start; } if(other.isSetTend()) { this.tend = other.tend; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public diffRecordStartstrEndstr_args deepCopy() { return new diffRecordStartstrEndstr_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.start = null; this.tend = null; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public diffRecordStartstrEndstr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getStart() { return this.start; } public diffRecordStartstrEndstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if(!value) { this.start = null; } } public String getTend() { return this.tend; } public diffRecordStartstrEndstr_args setTend(String tend) { this.tend = tend; return this; } public void unsetTend() { this.tend = null; } /** * Returns true if field tend is set (has been assigned a value) and * false otherwise */ public boolean isSetTend() { return this.tend != null; } public void setTendIsSet(boolean value) { if(!value) { this.tend = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffRecordStartstrEndstr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffRecordStartstrEndstr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffRecordStartstrEndstr_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((String) value); } break; case TEND: if(value == null) { unsetTend(); } else { setTend((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORD: return isSetRecord(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof diffRecordStartstrEndstr_args) return this.equals((diffRecordStartstrEndstr_args) that); return false; } public boolean equals(diffRecordStartstrEndstr_args that) { if(that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(!this.start.equals(that.start)) return false; } boolean this_present_tend = true && this.isSetTend(); boolean that_present_tend = true && that.isSetTend(); if(this_present_tend || that_present_tend) { if(!(this_present_tend && that_present_tend)) return false; if(!this.tend.equals(that.tend)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_start = true && (isSetStart()); list.add(present_start); if(present_start) list.add(start); boolean present_tend = true && (isSetTend()); list.add(present_tend); if(present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffRecordStartstrEndstr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()) .compareTo(other.isSetTend()); if(lastComparison != 0) { return lastComparison; } if(isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.tend, other.tend); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "diffRecordStartstrEndstr_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("start:"); if(this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if(!first) sb.append(", "); sb.append("tend:"); if(this.tend == null) { sb.append("null"); } else { sb.append(this.tend); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class diffRecordStartstrEndstr_argsStandardSchemeFactory implements SchemeFactory { public diffRecordStartstrEndstr_argsStandardScheme getScheme() { return new diffRecordStartstrEndstr_argsStandardScheme(); } } private static class diffRecordStartstrEndstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TEND if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, diffRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if(struct.tend != null) { oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeString(struct.tend); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffRecordStartstrEndstr_argsTupleSchemeFactory implements SchemeFactory { public diffRecordStartstrEndstr_argsTupleScheme getScheme() { return new diffRecordStartstrEndstr_argsTupleScheme(); } } private static class diffRecordStartstrEndstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecord()) { optionals.set(0); } if(struct.isSetStart()) { optionals.set(1); } if(struct.isSetTend()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetStart()) { oprot.writeString(struct.start); } if(struct.isSetTend()) { oprot.writeString(struct.tend); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(1)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if(incoming.get(2)) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffRecordStartstrEndstr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffRecordStartstrEndstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffRecordStartstrEndstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffRecordStartstrEndstr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffRecordStartstrEndstr_result.class, metaDataMap); } public diffRecordStartstrEndstr_result() {} public diffRecordStartstrEndstr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public diffRecordStartstrEndstr_result( diffRecordStartstrEndstr_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { String other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); String __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public diffRecordStartstrEndstr_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffRecordStartstrEndstr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffRecordStartstrEndstr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public diffRecordStartstrEndstr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public diffRecordStartstrEndstr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class diffRecordStartstrEndstr_resultStandardSchemeFactory implements SchemeFactory { public diffRecordStartstrEndstr_resultStandardScheme getScheme() { return new diffRecordStartstrEndstr_resultStandardScheme(); } } private static class diffRecordStartstrEndstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map620 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map620.size); String _key621; Map> _val622; for (int _i623 = 0; _i623 < _map620.size; ++_i623) { _key621 = iprot.readString(); { org.apache.thrift.protocol.TMap _map624 = iprot .readMapBegin(); _val622 = new LinkedHashMap>( 2 * _map624.size); com.cinchapi.concourse.thrift.Diff _key625; Set _val626; for (int _i627 = 0; _i627 < _map624.size; ++_i627) { _key625 = com.cinchapi.concourse.thrift.Diff .findByValue( iprot.readI32()); { org.apache.thrift.protocol.TSet _set628 = iprot .readSetBegin(); _val626 = new LinkedHashSet( 2 * _set628.size); com.cinchapi.concourse.thrift.TObject _elem629; for (int _i630 = 0; _i630 < _set628.size; ++_i630) { _elem629 = new com.cinchapi.concourse.thrift.TObject(); _elem629.read(iprot); _val626.add(_elem629); } iprot.readSetEnd(); } _val622.put(_key625, _val626); } iprot.readMapEnd(); } struct.success.put(_key621, _val622); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, diffRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter631 : struct.success .entrySet()) { oprot.writeString(_iter631.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter631.getValue().size())); for (Map.Entry> _iter632 : _iter631 .getValue().entrySet()) { oprot.writeI32( _iter632.getKey().getValue()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter632.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter633 : _iter632 .getValue()) { _iter633.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffRecordStartstrEndstr_resultTupleSchemeFactory implements SchemeFactory { public diffRecordStartstrEndstr_resultTupleScheme getScheme() { return new diffRecordStartstrEndstr_resultTupleScheme(); } } private static class diffRecordStartstrEndstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter634 : struct.success .entrySet()) { oprot.writeString(_iter634.getKey()); { oprot.writeI32(_iter634.getValue().size()); for (Map.Entry> _iter635 : _iter634 .getValue().entrySet()) { oprot.writeI32( _iter635.getKey().getValue()); { oprot.writeI32( _iter635.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter636 : _iter635 .getValue()) { _iter636.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map637 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map637.size); String _key638; Map> _val639; for (int _i640 = 0; _i640 < _map637.size; ++_i640) { _key638 = iprot.readString(); { org.apache.thrift.protocol.TMap _map641 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val639 = new LinkedHashMap>( 2 * _map641.size); com.cinchapi.concourse.thrift.Diff _key642; Set _val643; for (int _i644 = 0; _i644 < _map641.size; ++_i644) { _key642 = com.cinchapi.concourse.thrift.Diff .findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set645 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val643 = new LinkedHashSet( 2 * _set645.size); com.cinchapi.concourse.thrift.TObject _elem646; for (int _i647 = 0; _i647 < _set645.size; ++_i647) { _elem646 = new com.cinchapi.concourse.thrift.TObject(); _elem646.read(iprot); _val643.add(_elem646); } } _val639.put(_key642, _val643); } } struct.success.put(_key638, _val639); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class diffKeyRecordStart_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffKeyRecordStart_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyRecordStart_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyRecordStart_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), START((short) 3, "start"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __START_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffKeyRecordStart_args.class, metaDataMap); } public diffKeyRecordStart_args() {} public diffKeyRecordStart_args(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; setStartIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffKeyRecordStart_args(diffKeyRecordStart_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; this.start = other.start; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public diffKeyRecordStart_args deepCopy() { return new diffKeyRecordStart_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setStartIsSet(false); this.start = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public diffKeyRecordStart_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public diffKeyRecordStart_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getStart() { return this.start; } public diffKeyRecordStart_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffKeyRecordStart_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffKeyRecordStart_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffKeyRecordStart_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof diffKeyRecordStart_args) return this.equals((diffKeyRecordStart_args) that); return false; } public boolean equals(diffKeyRecordStart_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_start = true; boolean that_present_start = true; if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(this.start != that.start) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_start = true; list.add(present_start); if(present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffKeyRecordStart_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("diffKeyRecordStart_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class diffKeyRecordStart_argsStandardSchemeFactory implements SchemeFactory { public diffKeyRecordStart_argsStandardScheme getScheme() { return new diffKeyRecordStart_argsStandardScheme(); } } private static class diffKeyRecordStart_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyRecordStart_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, diffKeyRecordStart_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyRecordStart_argsTupleSchemeFactory implements SchemeFactory { public diffKeyRecordStart_argsTupleScheme getScheme() { return new diffKeyRecordStart_argsTupleScheme(); } } private static class diffKeyRecordStart_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStart_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetStart()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetStart()) { oprot.writeI64(struct.start); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStart_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffKeyRecordStart_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffKeyRecordStart_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyRecordStart_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyRecordStart_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.EnumMetaData( org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Diff.class), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffKeyRecordStart_result.class, metaDataMap); } public diffKeyRecordStart_result() {} public diffKeyRecordStart_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public diffKeyRecordStart_result(diffKeyRecordStart_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_key = other_element .getKey(); Set other_element_value = other_element .getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public diffKeyRecordStart_result deepCopy() { return new diffKeyRecordStart_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.Diff key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public diffKeyRecordStart_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffKeyRecordStart_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffKeyRecordStart_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public diffKeyRecordStart_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 diffKeyRecordStart_resultStandardSchemeFactory implements SchemeFactory { public diffKeyRecordStart_resultStandardScheme getScheme() { return new diffKeyRecordStart_resultStandardScheme(); } } private static class diffKeyRecordStart_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyRecordStart_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map648 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map648.size); com.cinchapi.concourse.thrift.Diff _key649; Set _val650; for (int _i651 = 0; _i651 < _map648.size; ++_i651) { _key649 = com.cinchapi.concourse.thrift.Diff .findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set652 = iprot .readSetBegin(); _val650 = new LinkedHashSet( 2 * _set652.size); com.cinchapi.concourse.thrift.TObject _elem653; for (int _i654 = 0; _i654 < _set652.size; ++_i654) { _elem653 = new com.cinchapi.concourse.thrift.TObject(); _elem653.read(iprot); _val650.add(_elem653); } iprot.readSetEnd(); } struct.success.put(_key649, _val650); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, diffKeyRecordStart_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter655 : struct.success .entrySet()) { oprot.writeI32(_iter655.getKey().getValue()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter655.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter656 : _iter655 .getValue()) { _iter656.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyRecordStart_resultTupleSchemeFactory implements SchemeFactory { public diffKeyRecordStart_resultTupleScheme getScheme() { return new diffKeyRecordStart_resultTupleScheme(); } } private static class diffKeyRecordStart_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStart_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter657 : struct.success .entrySet()) { oprot.writeI32(_iter657.getKey().getValue()); { oprot.writeI32(_iter657.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter658 : _iter657 .getValue()) { _iter658.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map659 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map659.size); com.cinchapi.concourse.thrift.Diff _key660; Set _val661; for (int _i662 = 0; _i662 < _map659.size; ++_i662) { _key660 = com.cinchapi.concourse.thrift.Diff .findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set663 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val661 = new LinkedHashSet( 2 * _set663.size); com.cinchapi.concourse.thrift.TObject _elem664; for (int _i665 = 0; _i665 < _set663.size; ++_i665) { _elem664 = new com.cinchapi.concourse.thrift.TObject(); _elem664.read(iprot); _val661.add(_elem664); } } struct.success.put(_key660, _val661); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class diffKeyRecordStartstr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffKeyRecordStartstr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyRecordStartstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyRecordStartstr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), START((short) 3, "start"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffKeyRecordStartstr_args.class, metaDataMap); } public diffKeyRecordStartstr_args() {} public diffKeyRecordStartstr_args(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffKeyRecordStartstr_args(diffKeyRecordStartstr_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; if(other.isSetStart()) { this.start = other.start; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public diffKeyRecordStartstr_args deepCopy() { return new diffKeyRecordStartstr_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.start = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public diffKeyRecordStartstr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public diffKeyRecordStartstr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getStart() { return this.start; } public diffKeyRecordStartstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if(!value) { this.start = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffKeyRecordStartstr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffKeyRecordStartstr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffKeyRecordStartstr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof diffKeyRecordStartstr_args) return this.equals((diffKeyRecordStartstr_args) that); return false; } public boolean equals(diffKeyRecordStartstr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(!this.start.equals(that.start)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_start = true && (isSetStart()); list.add(present_start); if(present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffKeyRecordStartstr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("diffKeyRecordStartstr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("start:"); if(this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class diffKeyRecordStartstr_argsStandardSchemeFactory implements SchemeFactory { public diffKeyRecordStartstr_argsStandardScheme getScheme() { return new diffKeyRecordStartstr_argsStandardScheme(); } } private static class diffKeyRecordStartstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyRecordStartstr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, diffKeyRecordStartstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyRecordStartstr_argsTupleSchemeFactory implements SchemeFactory { public diffKeyRecordStartstr_argsTupleScheme getScheme() { return new diffKeyRecordStartstr_argsTupleScheme(); } } private static class diffKeyRecordStartstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetStart()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetStart()) { oprot.writeString(struct.start); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffKeyRecordStartstr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffKeyRecordStartstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyRecordStartstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyRecordStartstr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffKeyRecordStartstr_result.class, metaDataMap); } public diffKeyRecordStartstr_result() {} public diffKeyRecordStartstr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public diffKeyRecordStartstr_result( diffKeyRecordStartstr_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_key = other_element .getKey(); Set other_element_value = other_element .getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.Diff key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public diffKeyRecordStartstr_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffKeyRecordStartstr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffKeyRecordStartstr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public diffKeyRecordStartstr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public diffKeyRecordStartstr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class diffKeyRecordStartstr_resultStandardSchemeFactory implements SchemeFactory { public diffKeyRecordStartstr_resultStandardScheme getScheme() { return new diffKeyRecordStartstr_resultStandardScheme(); } } private static class diffKeyRecordStartstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyRecordStartstr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map666 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map666.size); com.cinchapi.concourse.thrift.Diff _key667; Set _val668; for (int _i669 = 0; _i669 < _map666.size; ++_i669) { _key667 = com.cinchapi.concourse.thrift.Diff .findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set670 = iprot .readSetBegin(); _val668 = new LinkedHashSet( 2 * _set670.size); com.cinchapi.concourse.thrift.TObject _elem671; for (int _i672 = 0; _i672 < _set670.size; ++_i672) { _elem671 = new com.cinchapi.concourse.thrift.TObject(); _elem671.read(iprot); _val668.add(_elem671); } iprot.readSetEnd(); } struct.success.put(_key667, _val668); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, diffKeyRecordStartstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter673 : struct.success .entrySet()) { oprot.writeI32(_iter673.getKey().getValue()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter673.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter674 : _iter673 .getValue()) { _iter674.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyRecordStartstr_resultTupleSchemeFactory implements SchemeFactory { public diffKeyRecordStartstr_resultTupleScheme getScheme() { return new diffKeyRecordStartstr_resultTupleScheme(); } } private static class diffKeyRecordStartstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStartstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter675 : struct.success .entrySet()) { oprot.writeI32(_iter675.getKey().getValue()); { oprot.writeI32(_iter675.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter676 : _iter675 .getValue()) { _iter676.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map677 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map677.size); com.cinchapi.concourse.thrift.Diff _key678; Set _val679; for (int _i680 = 0; _i680 < _map677.size; ++_i680) { _key678 = com.cinchapi.concourse.thrift.Diff .findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set681 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val679 = new LinkedHashSet( 2 * _set681.size); com.cinchapi.concourse.thrift.TObject _elem682; for (int _i683 = 0; _i683 < _set681.size; ++_i683) { _elem682 = new com.cinchapi.concourse.thrift.TObject(); _elem682.read(iprot); _val679.add(_elem682); } } struct.success.put(_key678, _val679); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class diffKeyRecordStartEnd_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffKeyRecordStartEnd_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField( "tend", org.apache.thrift.protocol.TType.I64, (short) 4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyRecordStartEnd_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyRecordStartEnd_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long start; // required public long tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), START((short) 3, "start"), TEND((short) 4, "tend"), CREDS((short) 5, "creds"), TRANSACTION((short) 6, "transaction"), ENVIRONMENT((short) 7, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // TEND return TEND; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __START_ISSET_ID = 1; private static final int __TEND_ISSET_ID = 2; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffKeyRecordStartEnd_args.class, metaDataMap); } public diffKeyRecordStartEnd_args() {} public diffKeyRecordStartEnd_args(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; setStartIsSet(true); this.tend = tend; setTendIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffKeyRecordStartEnd_args(diffKeyRecordStartEnd_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; this.start = other.start; this.tend = other.tend; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public diffKeyRecordStartEnd_args deepCopy() { return new diffKeyRecordStartEnd_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setStartIsSet(false); this.start = 0; setTendIsSet(false); this.tend = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public diffKeyRecordStartEnd_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public diffKeyRecordStartEnd_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getStart() { return this.start; } public diffKeyRecordStartEnd_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public long getTend() { return this.tend; } public diffKeyRecordStartEnd_args setTend(long tend) { this.tend = tend; setTendIsSet(true); return this; } public void unsetTend() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TEND_ISSET_ID); } /** * Returns true if field tend is set (has been assigned a value) and * false otherwise */ public boolean isSetTend() { return EncodingUtils.testBit(__isset_bitfield, __TEND_ISSET_ID); } public void setTendIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TEND_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffKeyRecordStartEnd_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffKeyRecordStartEnd_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffKeyRecordStartEnd_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((Long) value); } break; case TEND: if(value == null) { unsetTend(); } else { setTend((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof diffKeyRecordStartEnd_args) return this.equals((diffKeyRecordStartEnd_args) that); return false; } public boolean equals(diffKeyRecordStartEnd_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_start = true; boolean that_present_start = true; if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(this.start != that.start) return false; } boolean this_present_tend = true; boolean that_present_tend = true; if(this_present_tend || that_present_tend) { if(!(this_present_tend && that_present_tend)) return false; if(this.tend != that.tend) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_start = true; list.add(present_start); if(present_start) list.add(start); boolean present_tend = true; list.add(present_tend); if(present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffKeyRecordStartEnd_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()) .compareTo(other.isSetTend()); if(lastComparison != 0) { return lastComparison; } if(isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.tend, other.tend); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("diffKeyRecordStartEnd_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if(!first) sb.append(", "); sb.append("tend:"); sb.append(this.tend); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class diffKeyRecordStartEnd_argsStandardSchemeFactory implements SchemeFactory { public diffKeyRecordStartEnd_argsStandardScheme getScheme() { return new diffKeyRecordStartEnd_argsStandardScheme(); } } private static class diffKeyRecordStartEnd_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyRecordStartEnd_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TEND if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, diffKeyRecordStartEnd_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeI64(struct.tend); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyRecordStartEnd_argsTupleSchemeFactory implements SchemeFactory { public diffKeyRecordStartEnd_argsTupleScheme getScheme() { return new diffKeyRecordStartEnd_argsTupleScheme(); } } private static class diffKeyRecordStartEnd_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetStart()) { optionals.set(2); } if(struct.isSetTend()) { optionals.set(3); } if(struct.isSetCreds()) { optionals.set(4); } if(struct.isSetTransaction()) { optionals.set(5); } if(struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetStart()) { oprot.writeI64(struct.start); } if(struct.isSetTend()) { oprot.writeI64(struct.tend); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if(incoming.get(3)) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } if(incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffKeyRecordStartEnd_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffKeyRecordStartEnd_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyRecordStartEnd_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyRecordStartEnd_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.EnumMetaData( org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Diff.class), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffKeyRecordStartEnd_result.class, metaDataMap); } public diffKeyRecordStartEnd_result() {} public diffKeyRecordStartEnd_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public diffKeyRecordStartEnd_result( diffKeyRecordStartEnd_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_key = other_element .getKey(); Set other_element_value = other_element .getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public diffKeyRecordStartEnd_result deepCopy() { return new diffKeyRecordStartEnd_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.Diff key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public diffKeyRecordStartEnd_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffKeyRecordStartEnd_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffKeyRecordStartEnd_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public diffKeyRecordStartEnd_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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( "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; 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 diffKeyRecordStartEnd_resultStandardSchemeFactory implements SchemeFactory { public diffKeyRecordStartEnd_resultStandardScheme getScheme() { return new diffKeyRecordStartEnd_resultStandardScheme(); } } private static class diffKeyRecordStartEnd_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyRecordStartEnd_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map684 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map684.size); com.cinchapi.concourse.thrift.Diff _key685; Set _val686; for (int _i687 = 0; _i687 < _map684.size; ++_i687) { _key685 = com.cinchapi.concourse.thrift.Diff .findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set688 = iprot .readSetBegin(); _val686 = new LinkedHashSet( 2 * _set688.size); com.cinchapi.concourse.thrift.TObject _elem689; for (int _i690 = 0; _i690 < _set688.size; ++_i690) { _elem689 = new com.cinchapi.concourse.thrift.TObject(); _elem689.read(iprot); _val686.add(_elem689); } iprot.readSetEnd(); } struct.success.put(_key685, _val686); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, diffKeyRecordStartEnd_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter691 : struct.success .entrySet()) { oprot.writeI32(_iter691.getKey().getValue()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter691.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter692 : _iter691 .getValue()) { _iter692.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyRecordStartEnd_resultTupleSchemeFactory implements SchemeFactory { public diffKeyRecordStartEnd_resultTupleScheme getScheme() { return new diffKeyRecordStartEnd_resultTupleScheme(); } } private static class diffKeyRecordStartEnd_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStartEnd_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter693 : struct.success .entrySet()) { oprot.writeI32(_iter693.getKey().getValue()); { oprot.writeI32(_iter693.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter694 : _iter693 .getValue()) { _iter694.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map695 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map695.size); com.cinchapi.concourse.thrift.Diff _key696; Set _val697; for (int _i698 = 0; _i698 < _map695.size; ++_i698) { _key696 = com.cinchapi.concourse.thrift.Diff .findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set699 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val697 = new LinkedHashSet( 2 * _set699.size); com.cinchapi.concourse.thrift.TObject _elem700; for (int _i701 = 0; _i701 < _set699.size; ++_i701) { _elem700 = new com.cinchapi.concourse.thrift.TObject(); _elem700.read(iprot); _val697.add(_elem700); } } struct.success.put(_key696, _val697); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class diffKeyRecordStartstrEndstr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffKeyRecordStartstrEndstr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField( "tend", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyRecordStartstrEndstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyRecordStartstrEndstr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String start; // required public String tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), START((short) 3, "start"), TEND((short) 4, "tend"), CREDS((short) 5, "creds"), TRANSACTION((short) 6, "transaction"), ENVIRONMENT((short) 7, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // TEND return TEND; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffKeyRecordStartstrEndstr_args.class, metaDataMap); } public diffKeyRecordStartstrEndstr_args() {} public diffKeyRecordStartstrEndstr_args(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffKeyRecordStartstrEndstr_args( diffKeyRecordStartstrEndstr_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; if(other.isSetStart()) { this.start = other.start; } if(other.isSetTend()) { this.tend = other.tend; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public diffKeyRecordStartstrEndstr_args deepCopy() { return new diffKeyRecordStartstrEndstr_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.start = null; this.tend = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public diffKeyRecordStartstrEndstr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public diffKeyRecordStartstrEndstr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getStart() { return this.start; } public diffKeyRecordStartstrEndstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if(!value) { this.start = null; } } public String getTend() { return this.tend; } public diffKeyRecordStartstrEndstr_args setTend(String tend) { this.tend = tend; return this; } public void unsetTend() { this.tend = null; } /** * Returns true if field tend is set (has been assigned a value) and * false otherwise */ public boolean isSetTend() { return this.tend != null; } public void setTendIsSet(boolean value) { if(!value) { this.tend = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffKeyRecordStartstrEndstr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffKeyRecordStartstrEndstr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffKeyRecordStartstrEndstr_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((String) value); } break; case TEND: if(value == null) { unsetTend(); } else { setTend((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof diffKeyRecordStartstrEndstr_args) return this.equals((diffKeyRecordStartstrEndstr_args) that); return false; } public boolean equals(diffKeyRecordStartstrEndstr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(!this.start.equals(that.start)) return false; } boolean this_present_tend = true && this.isSetTend(); boolean that_present_tend = true && that.isSetTend(); if(this_present_tend || that_present_tend) { if(!(this_present_tend && that_present_tend)) return false; if(!this.tend.equals(that.tend)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_start = true && (isSetStart()); list.add(present_start); if(present_start) list.add(start); boolean present_tend = true && (isSetTend()); list.add(present_tend); if(present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffKeyRecordStartstrEndstr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()) .compareTo(other.isSetTend()); if(lastComparison != 0) { return lastComparison; } if(isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.tend, other.tend); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "diffKeyRecordStartstrEndstr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("start:"); if(this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if(!first) sb.append(", "); sb.append("tend:"); if(this.tend == null) { sb.append("null"); } else { sb.append(this.tend); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class diffKeyRecordStartstrEndstr_argsStandardSchemeFactory implements SchemeFactory { public diffKeyRecordStartstrEndstr_argsStandardScheme getScheme() { return new diffKeyRecordStartstrEndstr_argsStandardScheme(); } } private static class diffKeyRecordStartstrEndstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TEND if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, diffKeyRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if(struct.tend != null) { oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeString(struct.tend); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyRecordStartstrEndstr_argsTupleSchemeFactory implements SchemeFactory { public diffKeyRecordStartstrEndstr_argsTupleScheme getScheme() { return new diffKeyRecordStartstrEndstr_argsTupleScheme(); } } private static class diffKeyRecordStartstrEndstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetStart()) { optionals.set(2); } if(struct.isSetTend()) { optionals.set(3); } if(struct.isSetCreds()) { optionals.set(4); } if(struct.isSetTransaction()) { optionals.set(5); } if(struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetStart()) { oprot.writeString(struct.start); } if(struct.isSetTend()) { oprot.writeString(struct.tend); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if(incoming.get(3)) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } if(incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffKeyRecordStartstrEndstr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffKeyRecordStartstrEndstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyRecordStartstrEndstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyRecordStartstrEndstr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffKeyRecordStartstrEndstr_result.class, metaDataMap); } public diffKeyRecordStartstrEndstr_result() {} public diffKeyRecordStartstrEndstr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public diffKeyRecordStartstrEndstr_result( diffKeyRecordStartstrEndstr_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_key = other_element .getKey(); Set other_element_value = other_element .getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.Diff key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public diffKeyRecordStartstrEndstr_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffKeyRecordStartstrEndstr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffKeyRecordStartstrEndstr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public diffKeyRecordStartstrEndstr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public diffKeyRecordStartstrEndstr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class diffKeyRecordStartstrEndstr_resultStandardSchemeFactory implements SchemeFactory { public diffKeyRecordStartstrEndstr_resultStandardScheme getScheme() { return new diffKeyRecordStartstrEndstr_resultStandardScheme(); } } private static class diffKeyRecordStartstrEndstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map702 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map702.size); com.cinchapi.concourse.thrift.Diff _key703; Set _val704; for (int _i705 = 0; _i705 < _map702.size; ++_i705) { _key703 = com.cinchapi.concourse.thrift.Diff .findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set706 = iprot .readSetBegin(); _val704 = new LinkedHashSet( 2 * _set706.size); com.cinchapi.concourse.thrift.TObject _elem707; for (int _i708 = 0; _i708 < _set706.size; ++_i708) { _elem707 = new com.cinchapi.concourse.thrift.TObject(); _elem707.read(iprot); _val704.add(_elem707); } iprot.readSetEnd(); } struct.success.put(_key703, _val704); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, diffKeyRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter709 : struct.success .entrySet()) { oprot.writeI32(_iter709.getKey().getValue()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter709.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter710 : _iter709 .getValue()) { _iter710.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyRecordStartstrEndstr_resultTupleSchemeFactory implements SchemeFactory { public diffKeyRecordStartstrEndstr_resultTupleScheme getScheme() { return new diffKeyRecordStartstrEndstr_resultTupleScheme(); } } private static class diffKeyRecordStartstrEndstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter711 : struct.success .entrySet()) { oprot.writeI32(_iter711.getKey().getValue()); { oprot.writeI32(_iter711.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter712 : _iter711 .getValue()) { _iter712.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map713 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map713.size); com.cinchapi.concourse.thrift.Diff _key714; Set _val715; for (int _i716 = 0; _i716 < _map713.size; ++_i716) { _key714 = com.cinchapi.concourse.thrift.Diff .findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set717 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val715 = new LinkedHashSet( 2 * _set717.size); com.cinchapi.concourse.thrift.TObject _elem718; for (int _i719 = 0; _i719 < _set717.size; ++_i719) { _elem718 = new com.cinchapi.concourse.thrift.TObject(); _elem718.read(iprot); _val715.add(_elem718); } } struct.success.put(_key714, _val715); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class diffKeyStart_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffKeyStart_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyStart_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyStart_argsTupleSchemeFactory()); } public String key; // required public long start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), START((short) 2, "start"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // START return START; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __START_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(diffKeyStart_args.class, metaDataMap); } public diffKeyStart_args() {} public diffKeyStart_args(String key, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.start = start; setStartIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffKeyStart_args(diffKeyStart_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.start = other.start; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public diffKeyStart_args deepCopy() { return new diffKeyStart_args(this); } @Override public void clear() { this.key = null; setStartIsSet(false); this.start = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public diffKeyStart_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getStart() { return this.start; } public diffKeyStart_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffKeyStart_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffKeyStart_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffKeyStart_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof diffKeyStart_args) return this.equals((diffKeyStart_args) that); return false; } public boolean equals(diffKeyStart_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_start = true; boolean that_present_start = true; if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(this.start != that.start) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_start = true; list.add(present_start); if(present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffKeyStart_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("diffKeyStart_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class diffKeyStart_argsStandardSchemeFactory implements SchemeFactory { public diffKeyStart_argsStandardScheme getScheme() { return new diffKeyStart_argsStandardScheme(); } } private static class diffKeyStart_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyStart_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, diffKeyStart_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyStart_argsTupleSchemeFactory implements SchemeFactory { public diffKeyStart_argsTupleScheme getScheme() { return new diffKeyStart_argsTupleScheme(); } } private static class diffKeyStart_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyStart_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetStart()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetStart()) { oprot.writeI64(struct.start); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyStart_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffKeyStart_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffKeyStart_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyStart_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyStart_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.EnumMetaData( org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Diff.class), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffKeyStart_result.class, metaDataMap); } public diffKeyStart_result() {} public diffKeyStart_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public diffKeyStart_result(diffKeyStart_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { com.cinchapi.concourse.thrift.TObject other_element_key = other_element .getKey(); Map> other_element_value = other_element .getValue(); com.cinchapi.concourse.thrift.TObject __this__success_copy_key = new com.cinchapi.concourse.thrift.TObject( other_element_key); Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public diffKeyStart_result deepCopy() { return new diffKeyStart_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.TObject key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public diffKeyStart_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffKeyStart_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffKeyStart_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public diffKeyStart_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 diffKeyStart_resultStandardSchemeFactory implements SchemeFactory { public diffKeyStart_resultStandardScheme getScheme() { return new diffKeyStart_resultStandardScheme(); } } private static class diffKeyStart_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyStart_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map720 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map720.size); com.cinchapi.concourse.thrift.TObject _key721; Map> _val722; for (int _i723 = 0; _i723 < _map720.size; ++_i723) { _key721 = new com.cinchapi.concourse.thrift.TObject(); _key721.read(iprot); { org.apache.thrift.protocol.TMap _map724 = iprot .readMapBegin(); _val722 = new LinkedHashMap>( 2 * _map724.size); com.cinchapi.concourse.thrift.Diff _key725; Set _val726; for (int _i727 = 0; _i727 < _map724.size; ++_i727) { _key725 = com.cinchapi.concourse.thrift.Diff .findByValue( iprot.readI32()); { org.apache.thrift.protocol.TSet _set728 = iprot .readSetBegin(); _val726 = new LinkedHashSet( 2 * _set728.size); long _elem729; for (int _i730 = 0; _i730 < _set728.size; ++_i730) { _elem729 = iprot.readI64(); _val726.add(_elem729); } iprot.readSetEnd(); } _val722.put(_key725, _val726); } iprot.readMapEnd(); } struct.success.put(_key721, _val722); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, diffKeyStart_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter731 : struct.success .entrySet()) { _iter731.getKey().write(oprot); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter731.getValue().size())); for (Map.Entry> _iter732 : _iter731 .getValue().entrySet()) { oprot.writeI32( _iter732.getKey().getValue()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, _iter732.getValue() .size())); for (long _iter733 : _iter732 .getValue()) { oprot.writeI64(_iter733); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyStart_resultTupleSchemeFactory implements SchemeFactory { public diffKeyStart_resultTupleScheme getScheme() { return new diffKeyStart_resultTupleScheme(); } } private static class diffKeyStart_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyStart_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter734 : struct.success .entrySet()) { _iter734.getKey().write(oprot); { oprot.writeI32(_iter734.getValue().size()); for (Map.Entry> _iter735 : _iter734 .getValue().entrySet()) { oprot.writeI32( _iter735.getKey().getValue()); { oprot.writeI32( _iter735.getValue().size()); for (long _iter736 : _iter735 .getValue()) { oprot.writeI64(_iter736); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map737 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map737.size); com.cinchapi.concourse.thrift.TObject _key738; Map> _val739; for (int _i740 = 0; _i740 < _map737.size; ++_i740) { _key738 = new com.cinchapi.concourse.thrift.TObject(); _key738.read(iprot); { org.apache.thrift.protocol.TMap _map741 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val739 = new LinkedHashMap>( 2 * _map741.size); com.cinchapi.concourse.thrift.Diff _key742; Set _val743; for (int _i744 = 0; _i744 < _map741.size; ++_i744) { _key742 = com.cinchapi.concourse.thrift.Diff .findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set745 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, iprot.readI32()); _val743 = new LinkedHashSet( 2 * _set745.size); long _elem746; for (int _i747 = 0; _i747 < _set745.size; ++_i747) { _elem746 = iprot.readI64(); _val743.add(_elem746); } } _val739.put(_key742, _val743); } } struct.success.put(_key738, _val739); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class diffKeyStartstr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffKeyStartstr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyStartstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyStartstr_argsTupleSchemeFactory()); } public String key; // required public String start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), START((short) 2, "start"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // START return START; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffKeyStartstr_args.class, metaDataMap); } public diffKeyStartstr_args() {} public diffKeyStartstr_args(String key, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffKeyStartstr_args(diffKeyStartstr_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetStart()) { this.start = other.start; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public diffKeyStartstr_args deepCopy() { return new diffKeyStartstr_args(this); } @Override public void clear() { this.key = null; this.start = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public diffKeyStartstr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public String getStart() { return this.start; } public diffKeyStartstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if(!value) { this.start = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffKeyStartstr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffKeyStartstr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffKeyStartstr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof diffKeyStartstr_args) return this.equals((diffKeyStartstr_args) that); return false; } public boolean equals(diffKeyStartstr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(!this.start.equals(that.start)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_start = true && (isSetStart()); list.add(present_start); if(present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffKeyStartstr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("diffKeyStartstr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("start:"); if(this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class diffKeyStartstr_argsStandardSchemeFactory implements SchemeFactory { public diffKeyStartstr_argsStandardScheme getScheme() { return new diffKeyStartstr_argsStandardScheme(); } } private static class diffKeyStartstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyStartstr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, diffKeyStartstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyStartstr_argsTupleSchemeFactory implements SchemeFactory { public diffKeyStartstr_argsTupleScheme getScheme() { return new diffKeyStartstr_argsTupleScheme(); } } private static class diffKeyStartstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetStart()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetStart()) { oprot.writeString(struct.start); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffKeyStartstr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffKeyStartstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyStartstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyStartstr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffKeyStartstr_result.class, metaDataMap); } public diffKeyStartstr_result() {} public diffKeyStartstr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public diffKeyStartstr_result(diffKeyStartstr_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { com.cinchapi.concourse.thrift.TObject other_element_key = other_element .getKey(); Map> other_element_value = other_element .getValue(); com.cinchapi.concourse.thrift.TObject __this__success_copy_key = new com.cinchapi.concourse.thrift.TObject( other_element_key); Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.TObject key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public diffKeyStartstr_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffKeyStartstr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffKeyStartstr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public diffKeyStartstr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public diffKeyStartstr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class diffKeyStartstr_resultStandardSchemeFactory implements SchemeFactory { public diffKeyStartstr_resultStandardScheme getScheme() { return new diffKeyStartstr_resultStandardScheme(); } } private static class diffKeyStartstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyStartstr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map748 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map748.size); com.cinchapi.concourse.thrift.TObject _key749; Map> _val750; for (int _i751 = 0; _i751 < _map748.size; ++_i751) { _key749 = new com.cinchapi.concourse.thrift.TObject(); _key749.read(iprot); { org.apache.thrift.protocol.TMap _map752 = iprot .readMapBegin(); _val750 = new LinkedHashMap>( 2 * _map752.size); com.cinchapi.concourse.thrift.Diff _key753; Set _val754; for (int _i755 = 0; _i755 < _map752.size; ++_i755) { _key753 = com.cinchapi.concourse.thrift.Diff .findByValue( iprot.readI32()); { org.apache.thrift.protocol.TSet _set756 = iprot .readSetBegin(); _val754 = new LinkedHashSet( 2 * _set756.size); long _elem757; for (int _i758 = 0; _i758 < _set756.size; ++_i758) { _elem757 = iprot.readI64(); _val754.add(_elem757); } iprot.readSetEnd(); } _val750.put(_key753, _val754); } iprot.readMapEnd(); } struct.success.put(_key749, _val750); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, diffKeyStartstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter759 : struct.success .entrySet()) { _iter759.getKey().write(oprot); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter759.getValue().size())); for (Map.Entry> _iter760 : _iter759 .getValue().entrySet()) { oprot.writeI32( _iter760.getKey().getValue()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, _iter760.getValue() .size())); for (long _iter761 : _iter760 .getValue()) { oprot.writeI64(_iter761); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyStartstr_resultTupleSchemeFactory implements SchemeFactory { public diffKeyStartstr_resultTupleScheme getScheme() { return new diffKeyStartstr_resultTupleScheme(); } } private static class diffKeyStartstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyStartstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter762 : struct.success .entrySet()) { _iter762.getKey().write(oprot); { oprot.writeI32(_iter762.getValue().size()); for (Map.Entry> _iter763 : _iter762 .getValue().entrySet()) { oprot.writeI32( _iter763.getKey().getValue()); { oprot.writeI32( _iter763.getValue().size()); for (long _iter764 : _iter763 .getValue()) { oprot.writeI64(_iter764); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map765 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map765.size); com.cinchapi.concourse.thrift.TObject _key766; Map> _val767; for (int _i768 = 0; _i768 < _map765.size; ++_i768) { _key766 = new com.cinchapi.concourse.thrift.TObject(); _key766.read(iprot); { org.apache.thrift.protocol.TMap _map769 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val767 = new LinkedHashMap>( 2 * _map769.size); com.cinchapi.concourse.thrift.Diff _key770; Set _val771; for (int _i772 = 0; _i772 < _map769.size; ++_i772) { _key770 = com.cinchapi.concourse.thrift.Diff .findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set773 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, iprot.readI32()); _val771 = new LinkedHashSet( 2 * _set773.size); long _elem774; for (int _i775 = 0; _i775 < _set773.size; ++_i775) { _elem774 = iprot.readI64(); _val771.add(_elem774); } } _val767.put(_key770, _val771); } } struct.success.put(_key766, _val767); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class diffKeyStartEnd_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffKeyStartEnd_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField( "tend", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyStartEnd_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyStartEnd_argsTupleSchemeFactory()); } public String key; // required public long start; // required public long tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), START((short) 2, "start"), TEND((short) 3, "tend"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // START return START; case 3: // TEND return TEND; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __START_ISSET_ID = 0; private static final int __TEND_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffKeyStartEnd_args.class, metaDataMap); } public diffKeyStartEnd_args() {} public diffKeyStartEnd_args(String key, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.start = start; setStartIsSet(true); this.tend = tend; setTendIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffKeyStartEnd_args(diffKeyStartEnd_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.start = other.start; this.tend = other.tend; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public diffKeyStartEnd_args deepCopy() { return new diffKeyStartEnd_args(this); } @Override public void clear() { this.key = null; setStartIsSet(false); this.start = 0; setTendIsSet(false); this.tend = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public diffKeyStartEnd_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getStart() { return this.start; } public diffKeyStartEnd_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public long getTend() { return this.tend; } public diffKeyStartEnd_args setTend(long tend) { this.tend = tend; setTendIsSet(true); return this; } public void unsetTend() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TEND_ISSET_ID); } /** * Returns true if field tend is set (has been assigned a value) and * false otherwise */ public boolean isSetTend() { return EncodingUtils.testBit(__isset_bitfield, __TEND_ISSET_ID); } public void setTendIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TEND_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffKeyStartEnd_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffKeyStartEnd_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffKeyStartEnd_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((Long) value); } break; case TEND: if(value == null) { unsetTend(); } else { setTend((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof diffKeyStartEnd_args) return this.equals((diffKeyStartEnd_args) that); return false; } public boolean equals(diffKeyStartEnd_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_start = true; boolean that_present_start = true; if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(this.start != that.start) return false; } boolean this_present_tend = true; boolean that_present_tend = true; if(this_present_tend || that_present_tend) { if(!(this_present_tend && that_present_tend)) return false; if(this.tend != that.tend) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_start = true; list.add(present_start); if(present_start) list.add(start); boolean present_tend = true; list.add(present_tend); if(present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffKeyStartEnd_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()) .compareTo(other.isSetTend()); if(lastComparison != 0) { return lastComparison; } if(isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.tend, other.tend); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("diffKeyStartEnd_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if(!first) sb.append(", "); sb.append("tend:"); sb.append(this.tend); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class diffKeyStartEnd_argsStandardSchemeFactory implements SchemeFactory { public diffKeyStartEnd_argsStandardScheme getScheme() { return new diffKeyStartEnd_argsStandardScheme(); } } private static class diffKeyStartEnd_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyStartEnd_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TEND if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, diffKeyStartEnd_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeI64(struct.tend); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyStartEnd_argsTupleSchemeFactory implements SchemeFactory { public diffKeyStartEnd_argsTupleScheme getScheme() { return new diffKeyStartEnd_argsTupleScheme(); } } private static class diffKeyStartEnd_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetStart()) { optionals.set(1); } if(struct.isSetTend()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetStart()) { oprot.writeI64(struct.start); } if(struct.isSetTend()) { oprot.writeI64(struct.tend); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if(incoming.get(2)) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffKeyStartEnd_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffKeyStartEnd_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyStartEnd_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyStartEnd_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.EnumMetaData( org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Diff.class), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffKeyStartEnd_result.class, metaDataMap); } public diffKeyStartEnd_result() {} public diffKeyStartEnd_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public diffKeyStartEnd_result(diffKeyStartEnd_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { com.cinchapi.concourse.thrift.TObject other_element_key = other_element .getKey(); Map> other_element_value = other_element .getValue(); com.cinchapi.concourse.thrift.TObject __this__success_copy_key = new com.cinchapi.concourse.thrift.TObject( other_element_key); Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public diffKeyStartEnd_result deepCopy() { return new diffKeyStartEnd_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.TObject key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public diffKeyStartEnd_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffKeyStartEnd_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffKeyStartEnd_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public diffKeyStartEnd_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 diffKeyStartEnd_resultStandardSchemeFactory implements SchemeFactory { public diffKeyStartEnd_resultStandardScheme getScheme() { return new diffKeyStartEnd_resultStandardScheme(); } } private static class diffKeyStartEnd_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyStartEnd_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map776 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map776.size); com.cinchapi.concourse.thrift.TObject _key777; Map> _val778; for (int _i779 = 0; _i779 < _map776.size; ++_i779) { _key777 = new com.cinchapi.concourse.thrift.TObject(); _key777.read(iprot); { org.apache.thrift.protocol.TMap _map780 = iprot .readMapBegin(); _val778 = new LinkedHashMap>( 2 * _map780.size); com.cinchapi.concourse.thrift.Diff _key781; Set _val782; for (int _i783 = 0; _i783 < _map780.size; ++_i783) { _key781 = com.cinchapi.concourse.thrift.Diff .findByValue( iprot.readI32()); { org.apache.thrift.protocol.TSet _set784 = iprot .readSetBegin(); _val782 = new LinkedHashSet( 2 * _set784.size); long _elem785; for (int _i786 = 0; _i786 < _set784.size; ++_i786) { _elem785 = iprot.readI64(); _val782.add(_elem785); } iprot.readSetEnd(); } _val778.put(_key781, _val782); } iprot.readMapEnd(); } struct.success.put(_key777, _val778); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, diffKeyStartEnd_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter787 : struct.success .entrySet()) { _iter787.getKey().write(oprot); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter787.getValue().size())); for (Map.Entry> _iter788 : _iter787 .getValue().entrySet()) { oprot.writeI32( _iter788.getKey().getValue()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, _iter788.getValue() .size())); for (long _iter789 : _iter788 .getValue()) { oprot.writeI64(_iter789); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyStartEnd_resultTupleSchemeFactory implements SchemeFactory { public diffKeyStartEnd_resultTupleScheme getScheme() { return new diffKeyStartEnd_resultTupleScheme(); } } private static class diffKeyStartEnd_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyStartEnd_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter790 : struct.success .entrySet()) { _iter790.getKey().write(oprot); { oprot.writeI32(_iter790.getValue().size()); for (Map.Entry> _iter791 : _iter790 .getValue().entrySet()) { oprot.writeI32( _iter791.getKey().getValue()); { oprot.writeI32( _iter791.getValue().size()); for (long _iter792 : _iter791 .getValue()) { oprot.writeI64(_iter792); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map793 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map793.size); com.cinchapi.concourse.thrift.TObject _key794; Map> _val795; for (int _i796 = 0; _i796 < _map793.size; ++_i796) { _key794 = new com.cinchapi.concourse.thrift.TObject(); _key794.read(iprot); { org.apache.thrift.protocol.TMap _map797 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val795 = new LinkedHashMap>( 2 * _map797.size); com.cinchapi.concourse.thrift.Diff _key798; Set _val799; for (int _i800 = 0; _i800 < _map797.size; ++_i800) { _key798 = com.cinchapi.concourse.thrift.Diff .findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set801 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, iprot.readI32()); _val799 = new LinkedHashSet( 2 * _set801.size); long _elem802; for (int _i803 = 0; _i803 < _set801.size; ++_i803) { _elem802 = iprot.readI64(); _val799.add(_elem802); } } _val795.put(_key798, _val799); } } struct.success.put(_key794, _val795); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class diffKeyStartstrEndstr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffKeyStartstrEndstr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField( "start", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField( "tend", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyStartstrEndstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyStartstrEndstr_argsTupleSchemeFactory()); } public String key; // required public String start; // required public String tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), START((short) 2, "start"), TEND((short) 3, "tend"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // START return START; case 3: // TEND return TEND; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffKeyStartstrEndstr_args.class, metaDataMap); } public diffKeyStartstrEndstr_args() {} public diffKeyStartstrEndstr_args(String key, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffKeyStartstrEndstr_args(diffKeyStartstrEndstr_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetStart()) { this.start = other.start; } if(other.isSetTend()) { this.tend = other.tend; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public diffKeyStartstrEndstr_args deepCopy() { return new diffKeyStartstrEndstr_args(this); } @Override public void clear() { this.key = null; this.start = null; this.tend = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public diffKeyStartstrEndstr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public String getStart() { return this.start; } public diffKeyStartstrEndstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** * Returns true if field start is set (has been assigned a value) and * false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if(!value) { this.start = null; } } public String getTend() { return this.tend; } public diffKeyStartstrEndstr_args setTend(String tend) { this.tend = tend; return this; } public void unsetTend() { this.tend = null; } /** * Returns true if field tend is set (has been assigned a value) and * false otherwise */ public boolean isSetTend() { return this.tend != null; } public void setTendIsSet(boolean value) { if(!value) { this.tend = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffKeyStartstrEndstr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffKeyStartstrEndstr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffKeyStartstrEndstr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case START: if(value == null) { unsetStart(); } else { setStart((String) value); } break; case TEND: if(value == null) { unsetTend(); } else { setTend((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof diffKeyStartstrEndstr_args) return this.equals((diffKeyStartstrEndstr_args) that); return false; } public boolean equals(diffKeyStartstrEndstr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if(this_present_start || that_present_start) { if(!(this_present_start && that_present_start)) return false; if(!this.start.equals(that.start)) return false; } boolean this_present_tend = true && this.isSetTend(); boolean that_present_tend = true && that.isSetTend(); if(this_present_tend || that_present_tend) { if(!(this_present_tend && that_present_tend)) return false; if(!this.tend.equals(that.tend)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_start = true && (isSetStart()); list.add(present_start); if(present_start) list.add(start); boolean present_tend = true && (isSetTend()); list.add(present_tend); if(present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffKeyStartstrEndstr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()) .compareTo(other.isSetStart()); if(lastComparison != 0) { return lastComparison; } if(isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.start, other.start); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()) .compareTo(other.isSetTend()); if(lastComparison != 0) { return lastComparison; } if(isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.tend, other.tend); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("diffKeyStartstrEndstr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("start:"); if(this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if(!first) sb.append(", "); sb.append("tend:"); if(this.tend == null) { sb.append("null"); } else { sb.append(this.tend); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class diffKeyStartstrEndstr_argsStandardSchemeFactory implements SchemeFactory { public diffKeyStartstrEndstr_argsStandardScheme getScheme() { return new diffKeyStartstrEndstr_argsStandardScheme(); } } private static class diffKeyStartstrEndstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyStartstrEndstr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TEND if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, diffKeyStartstrEndstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if(struct.tend != null) { oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeString(struct.tend); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyStartstrEndstr_argsTupleSchemeFactory implements SchemeFactory { public diffKeyStartstrEndstr_argsTupleScheme getScheme() { return new diffKeyStartstrEndstr_argsTupleScheme(); } } private static class diffKeyStartstrEndstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetStart()) { optionals.set(1); } if(struct.isSetTend()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetStart()) { oprot.writeString(struct.start); } if(struct.isSetTend()) { oprot.writeString(struct.tend); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if(incoming.get(2)) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffKeyStartstrEndstr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "diffKeyStartstrEndstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyStartstrEndstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyStartstrEndstr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( diffKeyStartstrEndstr_result.class, metaDataMap); } public diffKeyStartstrEndstr_result() {} public diffKeyStartstrEndstr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public diffKeyStartstrEndstr_result( diffKeyStartstrEndstr_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { com.cinchapi.concourse.thrift.TObject other_element_key = other_element .getKey(); Map> other_element_value = other_element .getValue(); com.cinchapi.concourse.thrift.TObject __this__success_copy_key = new com.cinchapi.concourse.thrift.TObject( other_element_key); Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.TObject key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public diffKeyStartstrEndstr_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffKeyStartstrEndstr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffKeyStartstrEndstr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public diffKeyStartstrEndstr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public diffKeyStartstrEndstr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class diffKeyStartstrEndstr_resultStandardSchemeFactory implements SchemeFactory { public diffKeyStartstrEndstr_resultStandardScheme getScheme() { return new diffKeyStartstrEndstr_resultStandardScheme(); } } private static class diffKeyStartstrEndstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyStartstrEndstr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map804 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map804.size); com.cinchapi.concourse.thrift.TObject _key805; Map> _val806; for (int _i807 = 0; _i807 < _map804.size; ++_i807) { _key805 = new com.cinchapi.concourse.thrift.TObject(); _key805.read(iprot); { org.apache.thrift.protocol.TMap _map808 = iprot .readMapBegin(); _val806 = new LinkedHashMap>( 2 * _map808.size); com.cinchapi.concourse.thrift.Diff _key809; Set _val810; for (int _i811 = 0; _i811 < _map808.size; ++_i811) { _key809 = com.cinchapi.concourse.thrift.Diff .findByValue( iprot.readI32()); { org.apache.thrift.protocol.TSet _set812 = iprot .readSetBegin(); _val810 = new LinkedHashSet( 2 * _set812.size); long _elem813; for (int _i814 = 0; _i814 < _set812.size; ++_i814) { _elem813 = iprot.readI64(); _val810.add(_elem813); } iprot.readSetEnd(); } _val806.put(_key809, _val810); } iprot.readMapEnd(); } struct.success.put(_key805, _val806); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, diffKeyStartstrEndstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter815 : struct.success .entrySet()) { _iter815.getKey().write(oprot); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter815.getValue().size())); for (Map.Entry> _iter816 : _iter815 .getValue().entrySet()) { oprot.writeI32( _iter816.getKey().getValue()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, _iter816.getValue() .size())); for (long _iter817 : _iter816 .getValue()) { oprot.writeI64(_iter817); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyStartstrEndstr_resultTupleSchemeFactory implements SchemeFactory { public diffKeyStartstrEndstr_resultTupleScheme getScheme() { return new diffKeyStartstrEndstr_resultTupleScheme(); } } private static class diffKeyStartstrEndstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyStartstrEndstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter818 : struct.success .entrySet()) { _iter818.getKey().write(oprot); { oprot.writeI32(_iter818.getValue().size()); for (Map.Entry> _iter819 : _iter818 .getValue().entrySet()) { oprot.writeI32( _iter819.getKey().getValue()); { oprot.writeI32( _iter819.getValue().size()); for (long _iter820 : _iter819 .getValue()) { oprot.writeI64(_iter820); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map821 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map821.size); com.cinchapi.concourse.thrift.TObject _key822; Map> _val823; for (int _i824 = 0; _i824 < _map821.size; ++_i824) { _key822 = new com.cinchapi.concourse.thrift.TObject(); _key822.read(iprot); { org.apache.thrift.protocol.TMap _map825 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val823 = new LinkedHashMap>( 2 * _map825.size); com.cinchapi.concourse.thrift.Diff _key826; Set _val827; for (int _i828 = 0; _i828 < _map825.size; ++_i828) { _key826 = com.cinchapi.concourse.thrift.Diff .findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set829 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, iprot.readI32()); _val827 = new LinkedHashSet( 2 * _set829.size); long _elem830; for (int _i831 = 0; _i831 < _set829.size; ++_i831) { _elem830 = iprot.readI64(); _val827.add(_elem830); } } _val823.put(_key826, _val827); } } struct.success.put(_key822, _val823); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class invokePlugin_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "invokePlugin_args"); private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField( "id", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField METHOD_FIELD_DESC = new org.apache.thrift.protocol.TField( "method", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField PARAMS_FIELD_DESC = new org.apache.thrift.protocol.TField( "params", org.apache.thrift.protocol.TType.LIST, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new invokePlugin_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new invokePlugin_argsTupleSchemeFactory()); } public String id; // required public String method; // required public List params; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ID((short) 1, "id"), METHOD((short) 2, "method"), PARAMS((short) 3, "params"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // ID return ID; case 2: // METHOD return METHOD; case 3: // PARAMS return PARAMS; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.METHOD, new org.apache.thrift.meta_data.FieldMetaData("method", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.ComplexTObject.class)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(invokePlugin_args.class, metaDataMap); } public invokePlugin_args() {} public invokePlugin_args(String id, String method, List params, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.id = id; this.method = method; this.params = params; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public invokePlugin_args(invokePlugin_args other) { if(other.isSetId()) { this.id = other.id; } if(other.isSetMethod()) { this.method = other.method; } if(other.isSetParams()) { List __this__params = new ArrayList( other.params.size()); for (com.cinchapi.concourse.thrift.ComplexTObject other_element : other.params) { __this__params .add(new com.cinchapi.concourse.thrift.ComplexTObject( other_element)); } this.params = __this__params; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public invokePlugin_args deepCopy() { return new invokePlugin_args(this); } @Override public void clear() { this.id = null; this.method = null; this.params = null; this.creds = null; this.transaction = null; this.environment = null; } public String getId() { return this.id; } public invokePlugin_args setId(String id) { this.id = id; return this; } public void unsetId() { this.id = null; } /** * Returns true if field id is set (has been assigned a value) and false * otherwise */ public boolean isSetId() { return this.id != null; } public void setIdIsSet(boolean value) { if(!value) { this.id = null; } } public String getMethod() { return this.method; } public invokePlugin_args setMethod(String method) { this.method = method; return this; } public void unsetMethod() { this.method = null; } /** * Returns true if field method is set (has been assigned a value) and * false otherwise */ public boolean isSetMethod() { return this.method != null; } public void setMethodIsSet(boolean value) { if(!value) { this.method = null; } } public int getParamsSize() { return (this.params == null) ? 0 : this.params.size(); } public java.util.Iterator getParamsIterator() { return (this.params == null) ? null : this.params.iterator(); } public void addToParams( com.cinchapi.concourse.thrift.ComplexTObject elem) { if(this.params == null) { this.params = new ArrayList(); } this.params.add(elem); } public List getParams() { return this.params; } public invokePlugin_args setParams( List params) { this.params = params; return this; } public void unsetParams() { this.params = null; } /** * Returns true if field params is set (has been assigned a value) and * false otherwise */ public boolean isSetParams() { return this.params != null; } public void setParamsIsSet(boolean value) { if(!value) { this.params = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public invokePlugin_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public invokePlugin_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public invokePlugin_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case ID: if(value == null) { unsetId(); } else { setId((String) value); } break; case METHOD: if(value == null) { unsetMethod(); } else { setMethod((String) value); } break; case PARAMS: if(value == null) { unsetParams(); } else { setParams( (List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case ID: return getId(); case METHOD: return getMethod(); case PARAMS: return getParams(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case ID: return isSetId(); case METHOD: return isSetMethod(); case PARAMS: return isSetParams(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof invokePlugin_args) return this.equals((invokePlugin_args) that); return false; } public boolean equals(invokePlugin_args that) { if(that == null) return false; boolean this_present_id = true && this.isSetId(); boolean that_present_id = true && that.isSetId(); if(this_present_id || that_present_id) { if(!(this_present_id && that_present_id)) return false; if(!this.id.equals(that.id)) return false; } boolean this_present_method = true && this.isSetMethod(); boolean that_present_method = true && that.isSetMethod(); if(this_present_method || that_present_method) { if(!(this_present_method && that_present_method)) return false; if(!this.method.equals(that.method)) return false; } boolean this_present_params = true && this.isSetParams(); boolean that_present_params = true && that.isSetParams(); if(this_present_params || that_present_params) { if(!(this_present_params && that_present_params)) return false; if(!this.params.equals(that.params)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_id = true && (isSetId()); list.add(present_id); if(present_id) list.add(id); boolean present_method = true && (isSetMethod()); list.add(present_method); if(present_method) list.add(method); boolean present_params = true && (isSetParams()); list.add(present_params); if(present_params) list.add(params); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(invokePlugin_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetId()) .compareTo(other.isSetId()); if(lastComparison != 0) { return lastComparison; } if(isSetId()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.id, other.id); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetMethod()) .compareTo(other.isSetMethod()); if(lastComparison != 0) { return lastComparison; } if(isSetMethod()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.method, other.method); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetParams()) .compareTo(other.isSetParams()); if(lastComparison != 0) { return lastComparison; } if(isSetParams()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.params, other.params); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("invokePlugin_args("); boolean first = true; sb.append("id:"); if(this.id == null) { sb.append("null"); } else { sb.append(this.id); } first = false; if(!first) sb.append(", "); sb.append("method:"); if(this.method == null) { sb.append("null"); } else { sb.append(this.method); } first = false; if(!first) sb.append(", "); sb.append("params:"); if(this.params == null) { sb.append("null"); } else { sb.append(this.params); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class invokePlugin_argsStandardSchemeFactory implements SchemeFactory { public invokePlugin_argsStandardScheme getScheme() { return new invokePlugin_argsStandardScheme(); } } private static class invokePlugin_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, invokePlugin_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // ID if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.id = iprot.readString(); struct.setIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // METHOD if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.method = iprot.readString(); struct.setMethodIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // PARAMS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list832 = iprot .readListBegin(); struct.params = new ArrayList( _list832.size); com.cinchapi.concourse.thrift.ComplexTObject _elem833; for (int _i834 = 0; _i834 < _list832.size; ++_i834) { _elem833 = new com.cinchapi.concourse.thrift.ComplexTObject(); _elem833.read(iprot); struct.params.add(_elem833); } iprot.readListEnd(); } struct.setParamsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, invokePlugin_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.id != null) { oprot.writeFieldBegin(ID_FIELD_DESC); oprot.writeString(struct.id); oprot.writeFieldEnd(); } if(struct.method != null) { oprot.writeFieldBegin(METHOD_FIELD_DESC); oprot.writeString(struct.method); oprot.writeFieldEnd(); } if(struct.params != null) { oprot.writeFieldBegin(PARAMS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.params.size())); for (com.cinchapi.concourse.thrift.ComplexTObject _iter835 : struct.params) { _iter835.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class invokePlugin_argsTupleSchemeFactory implements SchemeFactory { public invokePlugin_argsTupleScheme getScheme() { return new invokePlugin_argsTupleScheme(); } } private static class invokePlugin_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, invokePlugin_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetId()) { optionals.set(0); } if(struct.isSetMethod()) { optionals.set(1); } if(struct.isSetParams()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetId()) { oprot.writeString(struct.id); } if(struct.isSetMethod()) { oprot.writeString(struct.method); } if(struct.isSetParams()) { { oprot.writeI32(struct.params.size()); for (com.cinchapi.concourse.thrift.ComplexTObject _iter836 : struct.params) { _iter836.write(oprot); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, invokePlugin_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.id = iprot.readString(); struct.setIdIsSet(true); } if(incoming.get(1)) { struct.method = iprot.readString(); struct.setMethodIsSet(true); } if(incoming.get(2)) { { org.apache.thrift.protocol.TList _list837 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.params = new ArrayList( _list837.size); com.cinchapi.concourse.thrift.ComplexTObject _elem838; for (int _i839 = 0; _i839 < _list837.size; ++_i839) { _elem838 = new com.cinchapi.concourse.thrift.ComplexTObject(); _elem838.read(iprot); struct.params.add(_elem838); } } struct.setParamsIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class invokePlugin_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "invokePlugin_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( 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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public invokePlugin_result(invokePlugin_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.ComplexTObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = 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 com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public invokePlugin_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(success != null) { success.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class invokePlugin_resultStandardSchemeFactory implements SchemeFactory { public invokePlugin_resultStandardScheme getScheme() { return new invokePlugin_resultStandardScheme(); } } private static class invokePlugin_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, invokePlugin_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.ComplexTObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, 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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class invokePlugin_resultTupleSchemeFactory implements SchemeFactory { public invokePlugin_resultTupleScheme getScheme() { return new invokePlugin_resultTupleScheme(); } } private static class invokePlugin_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, invokePlugin_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); 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); } if(struct.isSetEx4()) { struct.ex4.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(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class login_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "login_args"); private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField( "username", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "password", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new login_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new login_argsTupleSchemeFactory()); } public ByteBuffer username; // required public ByteBuffer password; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USERNAME((short) 1, "username"), PASSWORD((short) 2, "password"), ENVIRONMENT((short) 3, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // USERNAME return USERNAME; case 2: // PASSWORD return PASSWORD; case 3: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING, true))); tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING, true))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(login_args.class, metaDataMap); } public login_args() {} public login_args(ByteBuffer username, ByteBuffer password, String environment) { this(); this.username = org.apache.thrift.TBaseHelper.copyBinary(username); this.password = org.apache.thrift.TBaseHelper.copyBinary(password); this.environment = environment; } /** * Performs a deep copy on other. */ public login_args(login_args other) { if(other.isSetUsername()) { this.username = org.apache.thrift.TBaseHelper .copyBinary(other.username); } if(other.isSetPassword()) { this.password = org.apache.thrift.TBaseHelper .copyBinary(other.password); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public login_args deepCopy() { return new login_args(this); } @Override public void clear() { this.username = null; this.password = null; this.environment = null; } public byte[] getUsername() { setUsername(org.apache.thrift.TBaseHelper.rightSize(username)); return username == null ? null : username.array(); } public ByteBuffer bufferForUsername() { return org.apache.thrift.TBaseHelper.copyBinary(username); } public login_args setUsername(byte[] username) { this.username = username == null ? (ByteBuffer) null : ByteBuffer.wrap(Arrays.copyOf(username, username.length)); return this; } public login_args setUsername(ByteBuffer username) { this.username = org.apache.thrift.TBaseHelper.copyBinary(username); return this; } public void unsetUsername() { this.username = null; } /** * Returns true if field username is set (has been assigned a value) and * false otherwise */ public boolean isSetUsername() { return this.username != null; } public void setUsernameIsSet(boolean value) { if(!value) { this.username = null; } } public byte[] getPassword() { setPassword(org.apache.thrift.TBaseHelper.rightSize(password)); return password == null ? null : password.array(); } public ByteBuffer bufferForPassword() { return org.apache.thrift.TBaseHelper.copyBinary(password); } public login_args setPassword(byte[] password) { this.password = password == null ? (ByteBuffer) null : ByteBuffer.wrap(Arrays.copyOf(password, password.length)); return this; } public login_args setPassword(ByteBuffer password) { this.password = org.apache.thrift.TBaseHelper.copyBinary(password); return this; } public void unsetPassword() { this.password = null; } /** * Returns true if field password is set (has been assigned a value) and * false otherwise */ public boolean isSetPassword() { return this.password != null; } public void setPasswordIsSet(boolean value) { if(!value) { this.password = null; } } public String getEnvironment() { return this.environment; } public login_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case USERNAME: if(value == null) { unsetUsername(); } else { setUsername((ByteBuffer) value); } break; case PASSWORD: if(value == null) { unsetPassword(); } else { setPassword((ByteBuffer) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case USERNAME: return getUsername(); case PASSWORD: return getPassword(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case USERNAME: return isSetUsername(); case PASSWORD: return isSetPassword(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof login_args) return this.equals((login_args) that); return false; } public boolean equals(login_args that) { if(that == null) return false; boolean this_present_username = true && this.isSetUsername(); boolean that_present_username = true && that.isSetUsername(); if(this_present_username || that_present_username) { if(!(this_present_username && that_present_username)) return false; if(!this.username.equals(that.username)) return false; } boolean this_present_password = true && this.isSetPassword(); boolean that_present_password = true && that.isSetPassword(); if(this_present_password || that_present_password) { if(!(this_present_password && that_present_password)) return false; if(!this.password.equals(that.password)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_username = true && (isSetUsername()); list.add(present_username); if(present_username) list.add(username); boolean present_password = true && (isSetPassword()); list.add(present_password); if(present_password) list.add(password); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(login_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetUsername()) .compareTo(other.isSetUsername()); if(lastComparison != 0) { return lastComparison; } if(isSetUsername()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.username, other.username); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPassword()) .compareTo(other.isSetPassword()); if(lastComparison != 0) { return lastComparison; } if(isSetPassword()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.password, other.password); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("login_args("); boolean first = true; sb.append("username:"); if(this.username == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.username, sb); } first = false; if(!first) sb.append(", "); sb.append("password:"); if(this.password == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.password, sb); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class login_argsStandardSchemeFactory implements SchemeFactory { public login_argsStandardScheme getScheme() { return new login_argsStandardScheme(); } } private static class login_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, login_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // USERNAME if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.username = iprot.readBinary(); struct.setUsernameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // PASSWORD if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.password = iprot.readBinary(); struct.setPasswordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, login_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.username != null) { oprot.writeFieldBegin(USERNAME_FIELD_DESC); oprot.writeBinary(struct.username); oprot.writeFieldEnd(); } if(struct.password != null) { oprot.writeFieldBegin(PASSWORD_FIELD_DESC); oprot.writeBinary(struct.password); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class login_argsTupleSchemeFactory implements SchemeFactory { public login_argsTupleScheme getScheme() { return new login_argsTupleScheme(); } } private static class login_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, login_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetUsername()) { optionals.set(0); } if(struct.isSetPassword()) { optionals.set(1); } if(struct.isSetEnvironment()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if(struct.isSetUsername()) { oprot.writeBinary(struct.username); } if(struct.isSetPassword()) { oprot.writeBinary(struct.password); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, login_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if(incoming.get(0)) { struct.username = iprot.readBinary(); struct.setUsernameIsSet(true); } if(incoming.get(1)) { struct.password = iprot.readBinary(); struct.setPasswordIsSet(true); } if(incoming.get(2)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class login_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "login_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex2; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.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))); tmpMap.put(_Fields.EX2, new org.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(login_result.class, metaDataMap); } public login_result() {} public login_result(com.cinchapi.concourse.thrift.AccessToken success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.PermissionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public login_result(login_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.AccessToken( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.PermissionException( other.ex2); } } public login_result deepCopy() { return new login_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = 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 com.cinchapi.concourse.thrift.PermissionException getEx2() { return this.ex2; } public login_result setEx2( com.cinchapi.concourse.thrift.PermissionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.AccessToken) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("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; 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 login_resultStandardSchemeFactory implements SchemeFactory { public login_resultStandardScheme getScheme() { return new login_resultStandardScheme(); } } private static class login_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, login_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.AccessToken(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.PermissionException(); 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, 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(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class login_resultTupleSchemeFactory implements SchemeFactory { public login_resultTupleScheme getScheme() { return new login_resultTupleScheme(); } } private static class login_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, login_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } 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, login_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.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); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class logout_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "logout_args"); private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField( "token", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new logout_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new logout_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken token; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { TOKEN((short) 1, "token"), ENVIRONMENT((short) 2, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // TOKEN return TOKEN; case 2: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(logout_args.class, metaDataMap); } public logout_args() {} public logout_args(com.cinchapi.concourse.thrift.AccessToken token, String environment) { this(); this.token = token; this.environment = environment; } /** * Performs a deep copy on other. */ public logout_args(logout_args other) { if(other.isSetToken()) { this.token = new com.cinchapi.concourse.thrift.AccessToken( other.token); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public logout_args deepCopy() { return new logout_args(this); } @Override public void clear() { this.token = null; this.environment = null; } public com.cinchapi.concourse.thrift.AccessToken getToken() { return this.token; } public logout_args setToken( com.cinchapi.concourse.thrift.AccessToken token) { this.token = token; return this; } public void unsetToken() { this.token = null; } /** * Returns true if field token is set (has been assigned a value) and * false otherwise */ public boolean isSetToken() { return this.token != null; } public void setTokenIsSet(boolean value) { if(!value) { this.token = null; } } public String getEnvironment() { return this.environment; } public logout_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case TOKEN: if(value == null) { unsetToken(); } else { setToken((com.cinchapi.concourse.thrift.AccessToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case TOKEN: return getToken(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case TOKEN: return isSetToken(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof logout_args) return this.equals((logout_args) that); return false; } public boolean equals(logout_args that) { if(that == null) return false; boolean this_present_token = true && this.isSetToken(); boolean that_present_token = true && that.isSetToken(); if(this_present_token || that_present_token) { if(!(this_present_token && that_present_token)) return false; if(!this.token.equals(that.token)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_token = true && (isSetToken()); list.add(present_token); if(present_token) list.add(token); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(logout_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetToken()) .compareTo(other.isSetToken()); if(lastComparison != 0) { return lastComparison; } if(isSetToken()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.token, other.token); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("logout_args("); boolean first = true; sb.append("token:"); if(this.token == null) { sb.append("null"); } else { sb.append(this.token); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(token != null) { token.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class logout_argsStandardSchemeFactory implements SchemeFactory { public logout_argsStandardScheme getScheme() { return new logout_argsStandardScheme(); } } private static class logout_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, logout_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // TOKEN if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.token = new com.cinchapi.concourse.thrift.AccessToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, logout_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.token != null) { oprot.writeFieldBegin(TOKEN_FIELD_DESC); struct.token.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class logout_argsTupleSchemeFactory implements SchemeFactory { public logout_argsTupleScheme getScheme() { return new logout_argsTupleScheme(); } } private static class logout_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, logout_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetToken()) { optionals.set(0); } if(struct.isSetEnvironment()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if(struct.isSetToken()) { struct.token.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, logout_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if(incoming.get(0)) { struct.token = new com.cinchapi.concourse.thrift.AccessToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } if(incoming.get(1)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class logout_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "logout_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new logout_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new logout_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.PermissionException ex2; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short) 1, "ex"), EX2((short) 2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(logout_result.class, metaDataMap); } public logout_result() {} public logout_result(com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.PermissionException ex2) { this(); this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public logout_result(logout_result other) { if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.PermissionException( other.ex2); } } public logout_result deepCopy() { return new logout_result(this); } @Override public void clear() { this.ex = null; this.ex2 = 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 com.cinchapi.concourse.thrift.PermissionException getEx2() { return this.ex2; } public logout_result setEx2( com.cinchapi.concourse.thrift.PermissionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException) 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 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; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("logout_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 logout_resultStandardSchemeFactory implements SchemeFactory { public logout_resultStandardScheme getScheme() { return new logout_resultStandardScheme(); } } private static class logout_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, logout_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.PermissionException(); 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, 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(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class logout_resultTupleSchemeFactory implements SchemeFactory { public logout_resultTupleScheme getScheme() { return new logout_resultTupleScheme(); } } private static class logout_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, logout_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetEx()) { optionals.set(0); } 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, logout_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.PermissionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class stage_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "stage_args"); private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField( "token", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new stage_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new stage_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken token; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { TOKEN((short) 1, "token"), ENVIRONMENT((short) 2, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // TOKEN return TOKEN; case 2: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(stage_args.class, metaDataMap); } public stage_args() {} public stage_args(com.cinchapi.concourse.thrift.AccessToken token, String environment) { this(); this.token = token; this.environment = environment; } /** * Performs a deep copy on other. */ public stage_args(stage_args other) { if(other.isSetToken()) { this.token = new com.cinchapi.concourse.thrift.AccessToken( other.token); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public stage_args deepCopy() { return new stage_args(this); } @Override public void clear() { this.token = null; this.environment = null; } public com.cinchapi.concourse.thrift.AccessToken getToken() { return this.token; } public stage_args setToken( com.cinchapi.concourse.thrift.AccessToken token) { this.token = token; return this; } public void unsetToken() { this.token = null; } /** * Returns true if field token is set (has been assigned a value) and * false otherwise */ public boolean isSetToken() { return this.token != null; } public void setTokenIsSet(boolean value) { if(!value) { this.token = null; } } public String getEnvironment() { return this.environment; } public stage_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case TOKEN: if(value == null) { unsetToken(); } else { setToken((com.cinchapi.concourse.thrift.AccessToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case TOKEN: return getToken(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case TOKEN: return isSetToken(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof stage_args) return this.equals((stage_args) that); return false; } public boolean equals(stage_args that) { if(that == null) return false; boolean this_present_token = true && this.isSetToken(); boolean that_present_token = true && that.isSetToken(); if(this_present_token || that_present_token) { if(!(this_present_token && that_present_token)) return false; if(!this.token.equals(that.token)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_token = true && (isSetToken()); list.add(present_token); if(present_token) list.add(token); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(stage_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetToken()) .compareTo(other.isSetToken()); if(lastComparison != 0) { return lastComparison; } if(isSetToken()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.token, other.token); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("stage_args("); boolean first = true; sb.append("token:"); if(this.token == null) { sb.append("null"); } else { sb.append(this.token); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(token != null) { token.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class stage_argsStandardSchemeFactory implements SchemeFactory { public stage_argsStandardScheme getScheme() { return new stage_argsStandardScheme(); } } private static class stage_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, stage_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // TOKEN if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.token = new com.cinchapi.concourse.thrift.AccessToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, stage_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.token != null) { oprot.writeFieldBegin(TOKEN_FIELD_DESC); struct.token.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class stage_argsTupleSchemeFactory implements SchemeFactory { public stage_argsTupleScheme getScheme() { return new stage_argsTupleScheme(); } } private static class stage_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, stage_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetToken()) { optionals.set(0); } if(struct.isSetEnvironment()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if(struct.isSetToken()) { struct.token.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, stage_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if(incoming.get(0)) { struct.token = new com.cinchapi.concourse.thrift.AccessToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } if(incoming.get(1)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class stage_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "stage_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex2; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.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))); tmpMap.put(_Fields.EX2, new org.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(stage_result.class, metaDataMap); } public stage_result() {} public stage_result( com.cinchapi.concourse.thrift.TransactionToken success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.PermissionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public stage_result(stage_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TransactionToken( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.PermissionException( other.ex2); } } public stage_result deepCopy() { return new stage_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = 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 com.cinchapi.concourse.thrift.PermissionException getEx2() { return this.ex2; } public stage_result setEx2( com.cinchapi.concourse.thrift.PermissionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.TransactionToken) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("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; 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 stage_resultStandardSchemeFactory implements SchemeFactory { public stage_resultStandardScheme getScheme() { return new stage_resultStandardScheme(); } } private static class stage_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, stage_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TransactionToken(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.PermissionException(); 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, 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(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class stage_resultTupleSchemeFactory implements SchemeFactory { public stage_resultTupleScheme getScheme() { return new stage_resultTupleScheme(); } } private static class stage_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, stage_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } 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, stage_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.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); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class insertJson_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "insertJson_args"); private static final org.apache.thrift.protocol.TField JSON_FIELD_DESC = new org.apache.thrift.protocol.TField( "json", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new insertJson_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new insertJson_argsTupleSchemeFactory()); } public String json; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { JSON((short) 1, "json"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // JSON return JSON; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.JSON, new org.apache.thrift.meta_data.FieldMetaData("json", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(insertJson_args.class, metaDataMap); } public insertJson_args() {} public insertJson_args(String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.json = json; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public insertJson_args(insertJson_args other) { if(other.isSetJson()) { this.json = other.json; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public insertJson_args deepCopy() { return new insertJson_args(this); } @Override public void clear() { this.json = null; this.creds = null; this.transaction = null; this.environment = null; } public String getJson() { return this.json; } public insertJson_args setJson(String json) { this.json = json; return this; } public void unsetJson() { this.json = null; } /** * Returns true if field json is set (has been assigned a value) and * false otherwise */ public boolean isSetJson() { return this.json != null; } public void setJsonIsSet(boolean value) { if(!value) { this.json = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public insertJson_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public insertJson_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public insertJson_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case JSON: if(value == null) { unsetJson(); } else { setJson((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case JSON: return getJson(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case JSON: return isSetJson(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof insertJson_args) return this.equals((insertJson_args) that); return false; } public boolean equals(insertJson_args that) { if(that == null) return false; boolean this_present_json = true && this.isSetJson(); boolean that_present_json = true && that.isSetJson(); if(this_present_json || that_present_json) { if(!(this_present_json && that_present_json)) return false; if(!this.json.equals(that.json)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_json = true && (isSetJson()); list.add(present_json); if(present_json) list.add(json); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(insertJson_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetJson()) .compareTo(other.isSetJson()); if(lastComparison != 0) { return lastComparison; } if(isSetJson()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.json, other.json); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("insertJson_args("); boolean first = true; sb.append("json:"); if(this.json == null) { sb.append("null"); } else { sb.append(this.json); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class insertJson_argsStandardSchemeFactory implements SchemeFactory { public insertJson_argsStandardScheme getScheme() { return new insertJson_argsStandardScheme(); } } private static class insertJson_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, insertJson_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // JSON if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.json = iprot.readString(); struct.setJsonIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, insertJson_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.json != null) { oprot.writeFieldBegin(JSON_FIELD_DESC); oprot.writeString(struct.json); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class insertJson_argsTupleSchemeFactory implements SchemeFactory { public insertJson_argsTupleScheme getScheme() { return new insertJson_argsTupleScheme(); } } private static class insertJson_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, insertJson_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetJson()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetJson()) { oprot.writeString(struct.json); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, insertJson_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { struct.json = iprot.readString(); struct.setJsonIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class insertJson_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "insertJson_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.SET, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField EX5_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex5", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new insertJson_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new insertJson_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.InvalidArgumentException ex4; // required public com.cinchapi.concourse.thrift.PermissionException ex5; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"), EX5((short) 5, "ex5"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; case 5: // EX5 return EX5; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX5, new org.apache.thrift.meta_data.FieldMetaData("ex5", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(insertJson_result.class, metaDataMap); } public insertJson_result() {} public insertJson_result(Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.InvalidArgumentException ex4, com.cinchapi.concourse.thrift.PermissionException ex5) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; this.ex5 = ex5; } /** * Performs a deep copy on other. */ public insertJson_result(insertJson_result other) { if(other.isSetSuccess()) { Set __this__success = new LinkedHashSet( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.InvalidArgumentException( other.ex4); } if(other.isSetEx5()) { this.ex5 = new com.cinchapi.concourse.thrift.PermissionException( other.ex5); } } 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; this.ex4 = null; this.ex5 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(long elem) { if(this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public insertJson_result setSuccess(Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public insertJson_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public insertJson_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public insertJson_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.InvalidArgumentException getEx4() { return this.ex4; } public insertJson_result setEx4( com.cinchapi.concourse.thrift.InvalidArgumentException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx5() { return this.ex5; } public insertJson_result setEx5( com.cinchapi.concourse.thrift.PermissionException ex5) { this.ex5 = ex5; return this; } public void unsetEx5() { this.ex5 = null; } /** * Returns true if field ex5 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx5() { return this.ex5 != null; } public void setEx5IsSet(boolean value) { if(!value) { this.ex5 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Set) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.InvalidArgumentException) value); } break; case EX5: if(value == null) { unsetEx5(); } else { setEx5((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); case EX5: return getEx5(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); case EX5: return isSetEx5(); } 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } boolean this_present_ex5 = true && this.isSetEx5(); boolean that_present_ex5 = true && that.isSetEx5(); if(this_present_ex5 || that_present_ex5) { if(!(this_present_ex5 && that_present_ex5)) return false; if(!this.ex5.equals(that.ex5)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); boolean present_ex5 = true && (isSetEx5()); list.add(present_ex5); if(present_ex5) list.add(ex5); 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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx5()) .compareTo(other.isSetEx5()); if(lastComparison != 0) { return lastComparison; } if(isSetEx5()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex5, other.ex5); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; if(!first) sb.append(", "); sb.append("ex5:"); if(this.ex5 == null) { sb.append("null"); } else { sb.append(this.ex5); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class insertJson_resultStandardSchemeFactory implements SchemeFactory { public insertJson_resultStandardScheme getScheme() { return new insertJson_resultStandardScheme(); } } private static class insertJson_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, insertJson_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set840 = iprot .readSetBegin(); struct.success = new LinkedHashSet( 2 * _set840.size); long _elem841; for (int _i842 = 0; _i842 < _set840.size; ++_i842) { _elem841 = iprot.readI64(); struct.success.add(_elem841); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // EX5 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex5 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex5.read(iprot); struct.setEx5IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, insertJson_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, struct.success.size())); for (long _iter843 : struct.success) { oprot.writeI64(_iter843); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } if(struct.ex5 != null) { oprot.writeFieldBegin(EX5_FIELD_DESC); struct.ex5.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class insertJson_resultTupleSchemeFactory implements SchemeFactory { public insertJson_resultTupleScheme getScheme() { return new insertJson_resultTupleScheme(); } } private static class insertJson_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, insertJson_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } if(struct.isSetEx5()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (long _iter844 : struct.success) { oprot.writeI64(_iter844); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } if(struct.isSetEx5()) { struct.ex5.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(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TSet _set845 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet( 2 * _set845.size); long _elem846; for (int _i847 = 0; _i847 < _set845.size; ++_i847) { _elem846 = iprot.readI64(); struct.success.add(_elem846); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } if(incoming.get(5)) { struct.ex5 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex5.read(iprot); struct.setEx5IsSet(true); } } } } public static class insertJsonRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "insertJsonRecord_args"); private static final org.apache.thrift.protocol.TField JSON_FIELD_DESC = new org.apache.thrift.protocol.TField( "json", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new insertJsonRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new insertJsonRecord_argsTupleSchemeFactory()); } public String json; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { JSON((short) 1, "json"), RECORD((short) 2, "record"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // JSON return JSON; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.JSON, new org.apache.thrift.meta_data.FieldMetaData("json", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( insertJsonRecord_args.class, metaDataMap); } public insertJsonRecord_args() {} public insertJsonRecord_args(String json, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.json = json; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public insertJsonRecord_args(insertJsonRecord_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetJson()) { this.json = other.json; } this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public insertJsonRecord_args deepCopy() { return new insertJsonRecord_args(this); } @Override public void clear() { this.json = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getJson() { return this.json; } public insertJsonRecord_args setJson(String json) { this.json = json; return this; } public void unsetJson() { this.json = null; } /** * Returns true if field json is set (has been assigned a value) and * false otherwise */ public boolean isSetJson() { return this.json != null; } public void setJsonIsSet(boolean value) { if(!value) { this.json = null; } } public long getRecord() { return this.record; } public insertJsonRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public insertJsonRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public insertJsonRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public insertJsonRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case JSON: if(value == null) { unsetJson(); } else { setJson((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case JSON: return getJson(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case JSON: return isSetJson(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof insertJsonRecord_args) return this.equals((insertJsonRecord_args) that); return false; } public boolean equals(insertJsonRecord_args that) { if(that == null) return false; boolean this_present_json = true && this.isSetJson(); boolean that_present_json = true && that.isSetJson(); if(this_present_json || that_present_json) { if(!(this_present_json && that_present_json)) return false; if(!this.json.equals(that.json)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_json = true && (isSetJson()); list.add(present_json); if(present_json) list.add(json); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(insertJsonRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetJson()) .compareTo(other.isSetJson()); if(lastComparison != 0) { return lastComparison; } if(isSetJson()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.json, other.json); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("insertJsonRecord_args("); boolean first = true; sb.append("json:"); if(this.json == null) { sb.append("null"); } else { sb.append(this.json); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class insertJsonRecord_argsStandardSchemeFactory implements SchemeFactory { public insertJsonRecord_argsStandardScheme getScheme() { return new insertJsonRecord_argsStandardScheme(); } } private static class insertJsonRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, insertJsonRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // JSON if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.json = iprot.readString(); struct.setJsonIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, insertJsonRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.json != null) { oprot.writeFieldBegin(JSON_FIELD_DESC); oprot.writeString(struct.json); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class insertJsonRecord_argsTupleSchemeFactory implements SchemeFactory { public insertJsonRecord_argsTupleScheme getScheme() { return new insertJsonRecord_argsTupleScheme(); } } private static class insertJsonRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, insertJsonRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetJson()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetJson()) { oprot.writeString(struct.json); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, insertJsonRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.json = iprot.readString(); struct.setJsonIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class insertJsonRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "insertJsonRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.BOOL, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField EX5_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex5", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new insertJsonRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new insertJsonRecord_resultTupleSchemeFactory()); } public boolean success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.InvalidArgumentException ex4; // required public com.cinchapi.concourse.thrift.PermissionException ex5; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"), EX5((short) 5, "ex5"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; case 5: // EX5 return EX5; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final 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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX5, new org.apache.thrift.meta_data.FieldMetaData("ex5", org.apache.thrift.TFieldRequirementType.DEFAULT, 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, com.cinchapi.concourse.thrift.InvalidArgumentException ex4, com.cinchapi.concourse.thrift.PermissionException ex5) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; this.ex5 = ex5; } /** * Performs a deep copy on other. */ public insertJsonRecord_result(insertJsonRecord_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.InvalidArgumentException( other.ex4); } if(other.isSetEx5()) { this.ex5 = new com.cinchapi.concourse.thrift.PermissionException( other.ex5); } } 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; this.ex4 = null; this.ex5 = 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 com.cinchapi.concourse.thrift.InvalidArgumentException getEx4() { return this.ex4; } public insertJsonRecord_result setEx4( com.cinchapi.concourse.thrift.InvalidArgumentException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx5() { return this.ex5; } public insertJsonRecord_result setEx5( com.cinchapi.concourse.thrift.PermissionException ex5) { this.ex5 = ex5; return this; } public void unsetEx5() { this.ex5 = null; } /** * Returns true if field ex5 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx5() { return this.ex5 != null; } public void setEx5IsSet(boolean value) { if(!value) { this.ex5 = 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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.InvalidArgumentException) value); } break; case EX5: if(value == null) { unsetEx5(); } else { setEx5((com.cinchapi.concourse.thrift.PermissionException) 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(); case EX4: return getEx4(); case EX5: return getEx5(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); case EX5: return isSetEx5(); } 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } boolean this_present_ex5 = true && this.isSetEx5(); boolean that_present_ex5 = true && that.isSetEx5(); if(this_present_ex5 || that_present_ex5) { if(!(this_present_ex5 && that_present_ex5)) return false; if(!this.ex5.equals(that.ex5)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); boolean present_ex5 = true && (isSetEx5()); list.add(present_ex5); if(present_ex5) list.add(ex5); 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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx5()) .compareTo(other.isSetEx5()); if(lastComparison != 0) { return lastComparison; } if(isSetEx5()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex5, other.ex5); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; if(!first) sb.append(", "); sb.append("ex5:"); if(this.ex5 == null) { sb.append("null"); } else { sb.append(this.ex5); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class insertJsonRecord_resultStandardSchemeFactory implements SchemeFactory { public insertJsonRecord_resultStandardScheme getScheme() { return new insertJsonRecord_resultStandardScheme(); } } private static class insertJsonRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, insertJsonRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // EX5 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex5 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex5.read(iprot); struct.setEx5IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required 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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } if(struct.ex5 != null) { oprot.writeFieldBegin(EX5_FIELD_DESC); struct.ex5.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class insertJsonRecord_resultTupleSchemeFactory implements SchemeFactory { public insertJsonRecord_resultTupleScheme getScheme() { return new insertJsonRecord_resultTupleScheme(); } } private static class insertJsonRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, insertJsonRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } if(struct.isSetEx5()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } if(struct.isSetEx5()) { struct.ex5.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(6); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } if(incoming.get(5)) { struct.ex5 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex5.read(iprot); struct.setEx5IsSet(true); } } } } public static class insertJsonRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "insertJsonRecords_args"); private static final org.apache.thrift.protocol.TField JSON_FIELD_DESC = new org.apache.thrift.protocol.TField( "json", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new insertJsonRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new insertJsonRecords_argsTupleSchemeFactory()); } public String json; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { JSON((short) 1, "json"), RECORDS((short) 2, "records"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // JSON return JSON; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.JSON, new org.apache.thrift.meta_data.FieldMetaData("json", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( insertJsonRecords_args.class, metaDataMap); } public insertJsonRecords_args() {} public insertJsonRecords_args(String json, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.json = json; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public insertJsonRecords_args(insertJsonRecords_args other) { if(other.isSetJson()) { this.json = other.json; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public insertJsonRecords_args deepCopy() { return new insertJsonRecords_args(this); } @Override public void clear() { this.json = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public String getJson() { return this.json; } public insertJsonRecords_args setJson(String json) { this.json = json; return this; } public void unsetJson() { this.json = null; } /** * Returns true if field json is set (has been assigned a value) and * false otherwise */ public boolean isSetJson() { return this.json != null; } public void setJsonIsSet(boolean value) { if(!value) { this.json = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public insertJsonRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public insertJsonRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public insertJsonRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public insertJsonRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case JSON: if(value == null) { unsetJson(); } else { setJson((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case JSON: return getJson(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case JSON: return isSetJson(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof insertJsonRecords_args) return this.equals((insertJsonRecords_args) that); return false; } public boolean equals(insertJsonRecords_args that) { if(that == null) return false; boolean this_present_json = true && this.isSetJson(); boolean that_present_json = true && that.isSetJson(); if(this_present_json || that_present_json) { if(!(this_present_json && that_present_json)) return false; if(!this.json.equals(that.json)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_json = true && (isSetJson()); list.add(present_json); if(present_json) list.add(json); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(insertJsonRecords_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetJson()) .compareTo(other.isSetJson()); if(lastComparison != 0) { return lastComparison; } if(isSetJson()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.json, other.json); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("insertJsonRecords_args("); boolean first = true; sb.append("json:"); if(this.json == null) { sb.append("null"); } else { sb.append(this.json); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class insertJsonRecords_argsStandardSchemeFactory implements SchemeFactory { public insertJsonRecords_argsStandardScheme getScheme() { return new insertJsonRecords_argsStandardScheme(); } } private static class insertJsonRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, insertJsonRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // JSON if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.json = iprot.readString(); struct.setJsonIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list848 = iprot .readListBegin(); struct.records = new ArrayList( _list848.size); long _elem849; for (int _i850 = 0; _i850 < _list848.size; ++_i850) { _elem849 = iprot.readI64(); struct.records.add(_elem849); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, insertJsonRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.json != null) { oprot.writeFieldBegin(JSON_FIELD_DESC); oprot.writeString(struct.json); oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter851 : struct.records) { oprot.writeI64(_iter851); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class insertJsonRecords_argsTupleSchemeFactory implements SchemeFactory { public insertJsonRecords_argsTupleScheme getScheme() { return new insertJsonRecords_argsTupleScheme(); } } private static class insertJsonRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, insertJsonRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetJson()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetJson()) { oprot.writeString(struct.json); } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter852 : struct.records) { oprot.writeI64(_iter852); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, insertJsonRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.json = iprot.readString(); struct.setJsonIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list853 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list853.size); long _elem854; for (int _i855 = 0; _i855 < _list853.size; ++_i855) { _elem854 = iprot.readI64(); struct.records.add(_elem854); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class insertJsonRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "insertJsonRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField EX5_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex5", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new insertJsonRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new insertJsonRecords_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.InvalidArgumentException ex4; // required public com.cinchapi.concourse.thrift.PermissionException ex5; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"), EX5((short) 5, "ex5"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; case 5: // EX5 return EX5; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX5, new org.apache.thrift.meta_data.FieldMetaData("ex5", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( insertJsonRecords_result.class, metaDataMap); } public insertJsonRecords_result() {} public insertJsonRecords_result(Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.InvalidArgumentException ex4, com.cinchapi.concourse.thrift.PermissionException ex5) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; this.ex5 = ex5; } /** * Performs a deep copy on other. */ public insertJsonRecords_result(insertJsonRecords_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.InvalidArgumentException( other.ex4); } if(other.isSetEx5()) { this.ex5 = new com.cinchapi.concourse.thrift.PermissionException( other.ex5); } } 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; this.ex4 = null; this.ex5 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, boolean val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public insertJsonRecords_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public insertJsonRecords_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public insertJsonRecords_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public insertJsonRecords_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.InvalidArgumentException getEx4() { return this.ex4; } public insertJsonRecords_result setEx4( com.cinchapi.concourse.thrift.InvalidArgumentException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx5() { return this.ex5; } public insertJsonRecords_result setEx5( com.cinchapi.concourse.thrift.PermissionException ex5) { this.ex5 = ex5; return this; } public void unsetEx5() { this.ex5 = null; } /** * Returns true if field ex5 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx5() { return this.ex5 != null; } public void setEx5IsSet(boolean value) { if(!value) { this.ex5 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.InvalidArgumentException) value); } break; case EX5: if(value == null) { unsetEx5(); } else { setEx5((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); case EX5: return getEx5(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); case EX5: return isSetEx5(); } 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } boolean this_present_ex5 = true && this.isSetEx5(); boolean that_present_ex5 = true && that.isSetEx5(); if(this_present_ex5 || that_present_ex5) { if(!(this_present_ex5 && that_present_ex5)) return false; if(!this.ex5.equals(that.ex5)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); boolean present_ex5 = true && (isSetEx5()); list.add(present_ex5); if(present_ex5) list.add(ex5); 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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx5()) .compareTo(other.isSetEx5()); if(lastComparison != 0) { return lastComparison; } if(isSetEx5()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex5, other.ex5); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; if(!first) sb.append(", "); sb.append("ex5:"); if(this.ex5 == null) { sb.append("null"); } else { sb.append(this.ex5); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class insertJsonRecords_resultStandardSchemeFactory implements SchemeFactory { public insertJsonRecords_resultStandardScheme getScheme() { return new insertJsonRecords_resultStandardScheme(); } } private static class insertJsonRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, insertJsonRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map856 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map856.size); long _key857; boolean _val858; for (int _i859 = 0; _i859 < _map856.size; ++_i859) { _key857 = iprot.readI64(); _val858 = iprot.readBool(); struct.success.put(_key857, _val858); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // EX5 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex5 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex5.read(iprot); struct.setEx5IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, insertJsonRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, struct.success.size())); for (Map.Entry _iter860 : struct.success .entrySet()) { oprot.writeI64(_iter860.getKey()); oprot.writeBool(_iter860.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } if(struct.ex5 != null) { oprot.writeFieldBegin(EX5_FIELD_DESC); struct.ex5.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class insertJsonRecords_resultTupleSchemeFactory implements SchemeFactory { public insertJsonRecords_resultTupleScheme getScheme() { return new insertJsonRecords_resultTupleScheme(); } } private static class insertJsonRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, insertJsonRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } if(struct.isSetEx5()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter861 : struct.success .entrySet()) { oprot.writeI64(_iter861.getKey()); oprot.writeBool(_iter861.getValue()); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } if(struct.isSetEx5()) { struct.ex5.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(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map862 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map862.size); long _key863; boolean _val864; for (int _i865 = 0; _i865 < _map862.size; ++_i865) { _key863 = iprot.readI64(); _val864 = iprot.readBool(); struct.success.put(_key863, _val864); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } if(incoming.get(5)) { struct.ex5 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex5.read(iprot); struct.setEx5IsSet(true); } } } } public static class removeKeyValueRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "removeKeyValueRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField( "value", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new removeKeyValueRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new removeKeyValueRecord_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), VALUE((short) 2, "value"), RECORD((short) 3, "record"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // RECORD return RECORD; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( removeKeyValueRecord_args.class, metaDataMap); } public removeKeyValueRecord_args() {} public removeKeyValueRecord_args(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public removeKeyValueRecord_args(removeKeyValueRecord_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject( other.value); } this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public removeKeyValueRecord_args deepCopy() { return new removeKeyValueRecord_args(this); } @Override public void clear() { this.key = null; this.value = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public removeKeyValueRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public removeKeyValueRecord_args setValue( com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** * Returns true if field value is set (has been assigned a value) and * false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if(!value) { this.value = null; } } public long getRecord() { return this.record; } public removeKeyValueRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public removeKeyValueRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public removeKeyValueRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public removeKeyValueRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case VALUE: if(value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case VALUE: return isSetValue(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof removeKeyValueRecord_args) return this.equals((removeKeyValueRecord_args) that); return false; } public boolean equals(removeKeyValueRecord_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if(this_present_value || that_present_value) { if(!(this_present_value && that_present_value)) return false; if(!this.value.equals(that.value)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if(present_value) list.add(value); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(removeKeyValueRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()) .compareTo(other.isSetValue()); if(lastComparison != 0) { return lastComparison; } if(isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.value, other.value); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("removeKeyValueRecord_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("value:"); if(this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(value != null) { value.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class removeKeyValueRecord_argsStandardSchemeFactory implements SchemeFactory { public removeKeyValueRecord_argsStandardScheme getScheme() { return new removeKeyValueRecord_argsStandardScheme(); } } private static class removeKeyValueRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, removeKeyValueRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, removeKeyValueRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class removeKeyValueRecord_argsTupleSchemeFactory implements SchemeFactory { public removeKeyValueRecord_argsTupleScheme getScheme() { return new removeKeyValueRecord_argsTupleScheme(); } } private static class removeKeyValueRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, removeKeyValueRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetValue()) { optionals.set(1); } if(struct.isSetRecord()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetValue()) { struct.value.write(oprot); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeKeyValueRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if(incoming.get(2)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class removeKeyValueRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "removeKeyValueRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.BOOL, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( 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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public 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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = 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 com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public removeKeyValueRecord_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) 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(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class removeKeyValueRecord_resultStandardSchemeFactory implements SchemeFactory { public removeKeyValueRecord_resultStandardScheme getScheme() { return new removeKeyValueRecord_resultStandardScheme(); } } private static class removeKeyValueRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, removeKeyValueRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, 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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class removeKeyValueRecord_resultTupleSchemeFactory implements SchemeFactory { public removeKeyValueRecord_resultTupleScheme getScheme() { return new removeKeyValueRecord_resultTupleScheme(); } } private static class removeKeyValueRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, removeKeyValueRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); 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); } if(struct.isSetEx4()) { struct.ex4.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(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class removeKeyValueRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "removeKeyValueRecords_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField( "value", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new removeKeyValueRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new removeKeyValueRecords_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), VALUE((short) 2, "value"), RECORDS((short) 3, "records"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // RECORDS return RECORDS; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( removeKeyValueRecords_args.class, metaDataMap); } public removeKeyValueRecords_args() {} public removeKeyValueRecords_args(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public removeKeyValueRecords_args(removeKeyValueRecords_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject( other.value); } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public removeKeyValueRecords_args deepCopy() { return new removeKeyValueRecords_args(this); } @Override public void clear() { this.key = null; this.value = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public removeKeyValueRecords_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public removeKeyValueRecords_args setValue( com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** * Returns true if field value is set (has been assigned a value) and * false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if(!value) { this.value = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public removeKeyValueRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public removeKeyValueRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public removeKeyValueRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public removeKeyValueRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case VALUE: if(value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case VALUE: return isSetValue(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof removeKeyValueRecords_args) return this.equals((removeKeyValueRecords_args) that); return false; } public boolean equals(removeKeyValueRecords_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if(this_present_value || that_present_value) { if(!(this_present_value && that_present_value)) return false; if(!this.value.equals(that.value)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if(present_value) list.add(value); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(removeKeyValueRecords_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()) .compareTo(other.isSetValue()); if(lastComparison != 0) { return lastComparison; } if(isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.value, other.value); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("removeKeyValueRecords_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("value:"); if(this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(value != null) { value.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class removeKeyValueRecords_argsStandardSchemeFactory implements SchemeFactory { public removeKeyValueRecords_argsStandardScheme getScheme() { return new removeKeyValueRecords_argsStandardScheme(); } } private static class removeKeyValueRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, removeKeyValueRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list866 = iprot .readListBegin(); struct.records = new ArrayList( _list866.size); long _elem867; for (int _i868 = 0; _i868 < _list866.size; ++_i868) { _elem867 = iprot.readI64(); struct.records.add(_elem867); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, removeKeyValueRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter869 : struct.records) { oprot.writeI64(_iter869); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class removeKeyValueRecords_argsTupleSchemeFactory implements SchemeFactory { public removeKeyValueRecords_argsTupleScheme getScheme() { return new removeKeyValueRecords_argsTupleScheme(); } } private static class removeKeyValueRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, removeKeyValueRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetValue()) { optionals.set(1); } if(struct.isSetRecords()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetValue()) { struct.value.write(oprot); } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter870 : struct.records) { oprot.writeI64(_iter870); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeKeyValueRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if(incoming.get(2)) { { org.apache.thrift.protocol.TList _list871 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list871.size); long _elem872; for (int _i873 = 0; _i873 < _list871.size; ++_i873) { _elem872 = iprot.readI64(); struct.records.add(_elem872); } } struct.setRecordsIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class removeKeyValueRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "removeKeyValueRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new removeKeyValueRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new removeKeyValueRecords_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.InvalidArgumentException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( removeKeyValueRecords_result.class, metaDataMap); } public removeKeyValueRecords_result() {} public removeKeyValueRecords_result(Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.InvalidArgumentException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public removeKeyValueRecords_result( removeKeyValueRecords_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, boolean val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public removeKeyValueRecords_result setSuccess( Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public removeKeyValueRecords_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public removeKeyValueRecords_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.InvalidArgumentException getEx3() { return this.ex3; } public removeKeyValueRecords_result setEx3( com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public removeKeyValueRecords_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.InvalidArgumentException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class removeKeyValueRecords_resultStandardSchemeFactory implements SchemeFactory { public removeKeyValueRecords_resultStandardScheme getScheme() { return new removeKeyValueRecords_resultStandardScheme(); } } private static class removeKeyValueRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, removeKeyValueRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map874 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map874.size); long _key875; boolean _val876; for (int _i877 = 0; _i877 < _map874.size; ++_i877) { _key875 = iprot.readI64(); _val876 = iprot.readBool(); struct.success.put(_key875, _val876); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, removeKeyValueRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, struct.success.size())); for (Map.Entry _iter878 : struct.success .entrySet()) { oprot.writeI64(_iter878.getKey()); oprot.writeBool(_iter878.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class removeKeyValueRecords_resultTupleSchemeFactory implements SchemeFactory { public removeKeyValueRecords_resultTupleScheme getScheme() { return new removeKeyValueRecords_resultTupleScheme(); } } private static class removeKeyValueRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, removeKeyValueRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter879 : struct.success .entrySet()) { oprot.writeI64(_iter879.getKey()); oprot.writeBool(_iter879.getValue()); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map880 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map880.size); long _key881; boolean _val882; for (int _i883 = 0; _i883 < _map880.size; ++_i883) { _key881 = iprot.readI64(); _val882 = iprot.readBool(); struct.success.put(_key881, _val882); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class setKeyValueRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "setKeyValueRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField( "value", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new setKeyValueRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new setKeyValueRecord_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), VALUE((short) 2, "value"), RECORD((short) 3, "record"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // RECORD return RECORD; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( setKeyValueRecord_args.class, metaDataMap); } public setKeyValueRecord_args() {} public setKeyValueRecord_args(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public setKeyValueRecord_args(setKeyValueRecord_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject( other.value); } this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public setKeyValueRecord_args deepCopy() { return new setKeyValueRecord_args(this); } @Override public void clear() { this.key = null; this.value = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public setKeyValueRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public setKeyValueRecord_args setValue( com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** * Returns true if field value is set (has been assigned a value) and * false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if(!value) { this.value = null; } } public long getRecord() { return this.record; } public setKeyValueRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public setKeyValueRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public setKeyValueRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public setKeyValueRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case VALUE: if(value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case VALUE: return isSetValue(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof setKeyValueRecord_args) return this.equals((setKeyValueRecord_args) that); return false; } public boolean equals(setKeyValueRecord_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if(this_present_value || that_present_value) { if(!(this_present_value && that_present_value)) return false; if(!this.value.equals(that.value)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if(present_value) list.add(value); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(setKeyValueRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()) .compareTo(other.isSetValue()); if(lastComparison != 0) { return lastComparison; } if(isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.value, other.value); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("setKeyValueRecord_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("value:"); if(this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(value != null) { value.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class setKeyValueRecord_argsStandardSchemeFactory implements SchemeFactory { public setKeyValueRecord_argsStandardScheme getScheme() { return new setKeyValueRecord_argsStandardScheme(); } } private static class setKeyValueRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setKeyValueRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, setKeyValueRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class setKeyValueRecord_argsTupleSchemeFactory implements SchemeFactory { public setKeyValueRecord_argsTupleScheme getScheme() { return new setKeyValueRecord_argsTupleScheme(); } } private static class setKeyValueRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, setKeyValueRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetValue()) { optionals.set(1); } if(struct.isSetRecord()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetValue()) { struct.value.write(oprot); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, setKeyValueRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if(incoming.get(2)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class setKeyValueRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "setKeyValueRecord_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( 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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public setKeyValueRecord_result(setKeyValueRecord_result other) { if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public setKeyValueRecord_result deepCopy() { return new setKeyValueRecord_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = 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 com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public setKeyValueRecord_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if(value == null) { unsetEx(); } 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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class setKeyValueRecord_resultStandardSchemeFactory implements SchemeFactory { public setKeyValueRecord_resultStandardScheme getScheme() { return new setKeyValueRecord_resultStandardScheme(); } } private static class setKeyValueRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setKeyValueRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, 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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class setKeyValueRecord_resultTupleSchemeFactory implements SchemeFactory { public setKeyValueRecord_resultTupleScheme getScheme() { return new setKeyValueRecord_resultTupleScheme(); } } private static class setKeyValueRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, setKeyValueRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetEx()) { optionals.set(0); } if(struct.isSetEx2()) { optionals.set(1); } if(struct.isSetEx3()) { optionals.set(2); } if(struct.isSetEx4()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, setKeyValueRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); 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); } if(incoming.get(3)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class setKeyValue_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "setKeyValue_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField( "value", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new setKeyValue_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new setKeyValue_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), VALUE((short) 2, "value"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(setKeyValue_args.class, metaDataMap); } public setKeyValue_args() {} public setKeyValue_args(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public setKeyValue_args(setKeyValue_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject( other.value); } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public setKeyValue_args deepCopy() { return new setKeyValue_args(this); } @Override public void clear() { this.key = null; this.value = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public setKeyValue_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public setKeyValue_args setValue( com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** * Returns true if field value is set (has been assigned a value) and * false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if(!value) { this.value = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public setKeyValue_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public setKeyValue_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public setKeyValue_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case VALUE: if(value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case VALUE: return isSetValue(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof setKeyValue_args) return this.equals((setKeyValue_args) that); return false; } public boolean equals(setKeyValue_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if(this_present_value || that_present_value) { if(!(this_present_value && that_present_value)) return false; if(!this.value.equals(that.value)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if(present_value) list.add(value); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(setKeyValue_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()) .compareTo(other.isSetValue()); if(lastComparison != 0) { return lastComparison; } if(isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.value, other.value); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("setKeyValue_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("value:"); if(this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(value != null) { value.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class setKeyValue_argsStandardSchemeFactory implements SchemeFactory { public setKeyValue_argsStandardScheme getScheme() { return new setKeyValue_argsStandardScheme(); } } private static class setKeyValue_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setKeyValue_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, setKeyValue_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class setKeyValue_argsTupleSchemeFactory implements SchemeFactory { public setKeyValue_argsTupleScheme getScheme() { return new setKeyValue_argsTupleScheme(); } } private static class setKeyValue_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, setKeyValue_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetValue()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetValue()) { struct.value.write(oprot); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, setKeyValue_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class setKeyValue_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "setKeyValue_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( 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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public 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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = 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 com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public setKeyValue_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Long) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.InvalidArgumentException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class setKeyValue_resultStandardSchemeFactory implements SchemeFactory { public setKeyValue_resultStandardScheme getScheme() { return new setKeyValue_resultStandardScheme(); } } private static class setKeyValue_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setKeyValue_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, 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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class setKeyValue_resultTupleSchemeFactory implements SchemeFactory { public setKeyValue_resultTupleScheme getScheme() { return new setKeyValue_resultTupleScheme(); } } private static class setKeyValue_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, setKeyValue_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { oprot.writeI64(struct.success); } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, setKeyValue_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class setKeyValueRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "setKeyValueRecords_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField( "value", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new setKeyValueRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new setKeyValueRecords_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), VALUE((short) 2, "value"), RECORDS((short) 3, "records"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // RECORDS return RECORDS; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( setKeyValueRecords_args.class, metaDataMap); } public setKeyValueRecords_args() {} public setKeyValueRecords_args(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public setKeyValueRecords_args(setKeyValueRecords_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject( other.value); } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public setKeyValueRecords_args deepCopy() { return new setKeyValueRecords_args(this); } @Override public void clear() { this.key = null; this.value = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public setKeyValueRecords_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public setKeyValueRecords_args setValue( com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** * Returns true if field value is set (has been assigned a value) and * false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if(!value) { this.value = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public setKeyValueRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public setKeyValueRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public setKeyValueRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public setKeyValueRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case VALUE: if(value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case VALUE: return isSetValue(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof setKeyValueRecords_args) return this.equals((setKeyValueRecords_args) that); return false; } public boolean equals(setKeyValueRecords_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if(this_present_value || that_present_value) { if(!(this_present_value && that_present_value)) return false; if(!this.value.equals(that.value)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if(present_value) list.add(value); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(setKeyValueRecords_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()) .compareTo(other.isSetValue()); if(lastComparison != 0) { return lastComparison; } if(isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.value, other.value); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("setKeyValueRecords_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("value:"); if(this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(value != null) { value.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class setKeyValueRecords_argsStandardSchemeFactory implements SchemeFactory { public setKeyValueRecords_argsStandardScheme getScheme() { return new setKeyValueRecords_argsStandardScheme(); } } private static class setKeyValueRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setKeyValueRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list884 = iprot .readListBegin(); struct.records = new ArrayList( _list884.size); long _elem885; for (int _i886 = 0; _i886 < _list884.size; ++_i886) { _elem885 = iprot.readI64(); struct.records.add(_elem885); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, setKeyValueRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter887 : struct.records) { oprot.writeI64(_iter887); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class setKeyValueRecords_argsTupleSchemeFactory implements SchemeFactory { public setKeyValueRecords_argsTupleScheme getScheme() { return new setKeyValueRecords_argsTupleScheme(); } } private static class setKeyValueRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, setKeyValueRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetValue()) { optionals.set(1); } if(struct.isSetRecords()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetValue()) { struct.value.write(oprot); } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter888 : struct.records) { oprot.writeI64(_iter888); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, setKeyValueRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if(incoming.get(2)) { { org.apache.thrift.protocol.TList _list889 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list889.size); long _elem890; for (int _i891 = 0; _i891 < _list889.size; ++_i891) { _elem890 = iprot.readI64(); struct.records.add(_elem890); } } struct.setRecordsIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class setKeyValueRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "setKeyValueRecords_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( 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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public setKeyValueRecords_result(setKeyValueRecords_result other) { if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public setKeyValueRecords_result deepCopy() { return new setKeyValueRecords_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = 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 com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public setKeyValueRecords_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if(value == null) { unsetEx(); } 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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class setKeyValueRecords_resultStandardSchemeFactory implements SchemeFactory { public setKeyValueRecords_resultStandardScheme getScheme() { return new setKeyValueRecords_resultStandardScheme(); } } private static class setKeyValueRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setKeyValueRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, 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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class setKeyValueRecords_resultTupleSchemeFactory implements SchemeFactory { public setKeyValueRecords_resultTupleScheme getScheme() { return new setKeyValueRecords_resultTupleScheme(); } } private static class setKeyValueRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, setKeyValueRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetEx()) { optionals.set(0); } if(struct.isSetEx2()) { optionals.set(1); } if(struct.isSetEx3()) { optionals.set(2); } if(struct.isSetEx4()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, setKeyValueRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); 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); } if(incoming.get(3)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class reconcileKeyRecordValues_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "reconcileKeyRecordValues_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField( "values", org.apache.thrift.protocol.TType.SET, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new reconcileKeyRecordValues_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new reconcileKeyRecordValues_argsTupleSchemeFactory()); } public String key; // required public long record; // required public Set values; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), VALUES((short) 3, "values"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // VALUES return VALUES; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.VALUES, new org.apache.thrift.meta_data.FieldMetaData("values", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( reconcileKeyRecordValues_args.class, metaDataMap); } public reconcileKeyRecordValues_args() {} public reconcileKeyRecordValues_args(String key, long record, Set values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.values = values; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public reconcileKeyRecordValues_args( reconcileKeyRecordValues_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; if(other.isSetValues()) { Set __this__values = new LinkedHashSet( other.values.size()); for (com.cinchapi.concourse.thrift.TObject other_element : other.values) { __this__values .add(new com.cinchapi.concourse.thrift.TObject( other_element)); } this.values = __this__values; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public reconcileKeyRecordValues_args deepCopy() { return new reconcileKeyRecordValues_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.values = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public reconcileKeyRecordValues_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public reconcileKeyRecordValues_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public int getValuesSize() { return (this.values == null) ? 0 : this.values.size(); } public java.util.Iterator getValuesIterator() { return (this.values == null) ? null : this.values.iterator(); } public void addToValues(com.cinchapi.concourse.thrift.TObject elem) { if(this.values == null) { this.values = new LinkedHashSet(); } this.values.add(elem); } public Set getValues() { return this.values; } public reconcileKeyRecordValues_args setValues( Set values) { this.values = values; return this; } public void unsetValues() { this.values = null; } /** * Returns true if field values is set (has been assigned a value) and * false otherwise */ public boolean isSetValues() { return this.values != null; } public void setValuesIsSet(boolean value) { if(!value) { this.values = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public reconcileKeyRecordValues_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public reconcileKeyRecordValues_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public reconcileKeyRecordValues_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case VALUES: if(value == null) { unsetValues(); } else { setValues( (Set) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case VALUES: return getValues(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case VALUES: return isSetValues(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof reconcileKeyRecordValues_args) return this.equals((reconcileKeyRecordValues_args) that); return false; } public boolean equals(reconcileKeyRecordValues_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_values = true && this.isSetValues(); boolean that_present_values = true && that.isSetValues(); if(this_present_values || that_present_values) { if(!(this_present_values && that_present_values)) return false; if(!this.values.equals(that.values)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_values = true && (isSetValues()); list.add(present_values); if(present_values) list.add(values); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(reconcileKeyRecordValues_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValues()) .compareTo(other.isSetValues()); if(lastComparison != 0) { return lastComparison; } if(isSetValues()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.values, other.values); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "reconcileKeyRecordValues_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("values:"); if(this.values == null) { sb.append("null"); } else { sb.append(this.values); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class reconcileKeyRecordValues_argsStandardSchemeFactory implements SchemeFactory { public reconcileKeyRecordValues_argsStandardScheme getScheme() { return new reconcileKeyRecordValues_argsStandardScheme(); } } private static class reconcileKeyRecordValues_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, reconcileKeyRecordValues_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // VALUES if(schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set892 = iprot .readSetBegin(); struct.values = new LinkedHashSet( 2 * _set892.size); com.cinchapi.concourse.thrift.TObject _elem893; for (int _i894 = 0; _i894 < _set892.size; ++_i894) { _elem893 = new com.cinchapi.concourse.thrift.TObject(); _elem893.read(iprot); struct.values.add(_elem893); } iprot.readSetEnd(); } struct.setValuesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, reconcileKeyRecordValues_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.values != null) { oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, struct.values.size())); for (com.cinchapi.concourse.thrift.TObject _iter895 : struct.values) { _iter895.write(oprot); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class reconcileKeyRecordValues_argsTupleSchemeFactory implements SchemeFactory { public reconcileKeyRecordValues_argsTupleScheme getScheme() { return new reconcileKeyRecordValues_argsTupleScheme(); } } private static class reconcileKeyRecordValues_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, reconcileKeyRecordValues_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetValues()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetValues()) { { oprot.writeI32(struct.values.size()); for (com.cinchapi.concourse.thrift.TObject _iter896 : struct.values) { _iter896.write(oprot); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, reconcileKeyRecordValues_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { { org.apache.thrift.protocol.TSet _set897 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.values = new LinkedHashSet( 2 * _set897.size); com.cinchapi.concourse.thrift.TObject _elem898; for (int _i899 = 0; _i899 < _set897.size; ++_i899) { _elem898 = new com.cinchapi.concourse.thrift.TObject(); _elem898.read(iprot); struct.values.add(_elem898); } } struct.setValuesIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class reconcileKeyRecordValues_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "reconcileKeyRecordValues_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( 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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public reconcileKeyRecordValues_result( reconcileKeyRecordValues_result other) { if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public reconcileKeyRecordValues_result deepCopy() { return new reconcileKeyRecordValues_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = 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 com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public reconcileKeyRecordValues_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if(value == null) { unsetEx(); } 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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class reconcileKeyRecordValues_resultStandardSchemeFactory implements SchemeFactory { public reconcileKeyRecordValues_resultStandardScheme getScheme() { return new reconcileKeyRecordValues_resultStandardScheme(); } } private static class reconcileKeyRecordValues_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, reconcileKeyRecordValues_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, 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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class reconcileKeyRecordValues_resultTupleSchemeFactory implements SchemeFactory { public reconcileKeyRecordValues_resultTupleScheme getScheme() { return new reconcileKeyRecordValues_resultTupleScheme(); } } private static class reconcileKeyRecordValues_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, reconcileKeyRecordValues_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetEx()) { optionals.set(0); } if(struct.isSetEx2()) { optionals.set(1); } if(struct.isSetEx3()) { optionals.set(2); } if(struct.isSetEx4()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, reconcileKeyRecordValues_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); 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); } if(incoming.get(3)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class inventory_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "inventory_args"); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new inventory_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new inventory_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CREDS((short) 1, "creds"), TRANSACTION((short) 2, "transaction"), ENVIRONMENT((short) 3, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CREDS return CREDS; case 2: // TRANSACTION return TRANSACTION; case 3: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(inventory_args.class, metaDataMap); } public inventory_args() {} public inventory_args(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public inventory_args(inventory_args other) { if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public inventory_args deepCopy() { return new inventory_args(this); } @Override public void clear() { this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public inventory_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public inventory_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public inventory_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof inventory_args) return this.equals((inventory_args) that); return false; } public boolean equals(inventory_args that) { if(that == null) return false; boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(inventory_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("inventory_args("); boolean first = true; sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class inventory_argsStandardSchemeFactory implements SchemeFactory { public inventory_argsStandardScheme getScheme() { return new inventory_argsStandardScheme(); } } private static class inventory_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, inventory_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, inventory_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class inventory_argsTupleSchemeFactory implements SchemeFactory { public inventory_argsTupleScheme getScheme() { return new inventory_argsTupleScheme(); } } private static class inventory_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, inventory_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCreds()) { optionals.set(0); } if(struct.isSetTransaction()) { optionals.set(1); } if(struct.isSetEnvironment()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, inventory_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if(incoming.get(0)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(1)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(2)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class inventory_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "inventory_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.SET, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new inventory_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new inventory_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(inventory_result.class, metaDataMap); } public inventory_result() {} public inventory_result(Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public inventory_result(inventory_result other) { if(other.isSetSuccess()) { Set __this__success = new LinkedHashSet( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public inventory_result deepCopy() { return new inventory_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(long elem) { if(this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public inventory_result setSuccess(Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public inventory_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public inventory_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public inventory_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Set) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 inventory_resultStandardSchemeFactory implements SchemeFactory { public inventory_resultStandardScheme getScheme() { return new inventory_resultStandardScheme(); } } private static class inventory_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, inventory_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set900 = iprot .readSetBegin(); struct.success = new LinkedHashSet( 2 * _set900.size); long _elem901; for (int _i902 = 0; _i902 < _set900.size; ++_i902) { _elem901 = iprot.readI64(); struct.success.add(_elem901); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, inventory_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, struct.success.size())); for (long _iter903 : struct.success) { oprot.writeI64(_iter903); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class inventory_resultTupleSchemeFactory implements SchemeFactory { public inventory_resultTupleScheme getScheme() { return new inventory_resultTupleScheme(); } } private static class inventory_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, inventory_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (long _iter904 : struct.success) { oprot.writeI64(_iter904); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TSet _set905 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet( 2 * _set905.size); long _elem906; for (int _i907 = 0; _i907 < _set905.size; ++_i907) { _elem906 = iprot.readI64(); struct.success.add(_elem906); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectRecord_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecord_argsTupleSchemeFactory()); } public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short) 1, "record"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORD return RECORD; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(selectRecord_args.class, metaDataMap); } public selectRecord_args() {} public selectRecord_args(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectRecord_args(selectRecord_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectRecord_args deepCopy() { return new selectRecord_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public selectRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectRecord_args) return this.equals((selectRecord_args) that); return false; } public boolean equals(selectRecord_args that) { if(that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectRecord_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectRecord_argsStandardSchemeFactory implements SchemeFactory { public selectRecord_argsStandardScheme getScheme() { return new selectRecord_argsStandardScheme(); } } private static class selectRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecord_argsTupleSchemeFactory implements SchemeFactory { public selectRecord_argsTupleScheme getScheme() { return new selectRecord_argsTupleScheme(); } } private static class selectRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecord()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecord_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectRecord_result.class, metaDataMap); } public selectRecord_result() {} public selectRecord_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectRecord_result(selectRecord_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { String other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); String __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public selectRecord_result deepCopy() { return new selectRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectRecord_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectRecord_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectRecord_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public selectRecord_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 selectRecord_resultStandardSchemeFactory implements SchemeFactory { public selectRecord_resultStandardScheme getScheme() { return new selectRecord_resultStandardScheme(); } } private static class selectRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map908 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map908.size); String _key909; Set _val910; for (int _i911 = 0; _i911 < _map908.size; ++_i911) { _key909 = iprot.readString(); { org.apache.thrift.protocol.TSet _set912 = iprot .readSetBegin(); _val910 = new LinkedHashSet( 2 * _set912.size); com.cinchapi.concourse.thrift.TObject _elem913; for (int _i914 = 0; _i914 < _set912.size; ++_i914) { _elem913 = new com.cinchapi.concourse.thrift.TObject(); _elem913.read(iprot); _val910.add(_elem913); } iprot.readSetEnd(); } struct.success.put(_key909, _val910); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, selectRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter915 : struct.success .entrySet()) { oprot.writeString(_iter915.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter915.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter916 : _iter915 .getValue()) { _iter916.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecord_resultTupleSchemeFactory implements SchemeFactory { public selectRecord_resultTupleScheme getScheme() { return new selectRecord_resultTupleScheme(); } } private static class selectRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter917 : struct.success .entrySet()) { oprot.writeString(_iter917.getKey()); { oprot.writeI32(_iter917.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter918 : _iter917 .getValue()) { _iter918.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map919 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map919.size); String _key920; Set _val921; for (int _i922 = 0; _i922 < _map919.size; ++_i922) { _key920 = iprot.readString(); { org.apache.thrift.protocol.TSet _set923 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val921 = new LinkedHashSet( 2 * _set923.size); com.cinchapi.concourse.thrift.TObject _elem924; for (int _i925 = 0; _i925 < _set923.size; ++_i925) { _elem924 = new com.cinchapi.concourse.thrift.TObject(); _elem924.read(iprot); _val921.add(_elem924); } } struct.success.put(_key920, _val921); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectRecords_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecords_argsTupleSchemeFactory()); } public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short) 1, "records"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORDS return RECORDS; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectRecords_args.class, metaDataMap); } public selectRecords_args() {} public selectRecords_args(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectRecords_args(selectRecords_args other) { if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectRecords_args deepCopy() { return new selectRecords_args(this); } @Override public void clear() { this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public selectRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectRecords_args) return this.equals((selectRecords_args) that); return false; } public boolean equals(selectRecords_args that) { if(that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectRecords_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectRecords_args("); boolean first = true; sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectRecords_argsStandardSchemeFactory implements SchemeFactory { public selectRecords_argsStandardScheme getScheme() { return new selectRecords_argsStandardScheme(); } } private static class selectRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list926 = iprot .readListBegin(); struct.records = new ArrayList( _list926.size); long _elem927; for (int _i928 = 0; _i928 < _list926.size; ++_i928) { _elem927 = iprot.readI64(); struct.records.add(_elem927); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter929 : struct.records) { oprot.writeI64(_iter929); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecords_argsTupleSchemeFactory implements SchemeFactory { public selectRecords_argsTupleScheme getScheme() { return new selectRecords_argsTupleScheme(); } } private static class selectRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecords()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter930 : struct.records) { oprot.writeI64(_iter930); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list931 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list931.size); long _elem932; for (int _i933 = 0; _i933 < _list931.size; ++_i933) { _elem932 = iprot.readI64(); struct.records.add(_elem932); } } struct.setRecordsIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecords_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectRecords_result.class, metaDataMap); } public selectRecords_result() {} public selectRecords_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectRecords_result(selectRecords_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public selectRecords_result deepCopy() { return new selectRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectRecords_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectRecords_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectRecords_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public selectRecords_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 selectRecords_resultStandardSchemeFactory implements SchemeFactory { public selectRecords_resultStandardScheme getScheme() { return new selectRecords_resultStandardScheme(); } } private static class selectRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map934 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map934.size); long _key935; Map> _val936; for (int _i937 = 0; _i937 < _map934.size; ++_i937) { _key935 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map938 = iprot .readMapBegin(); _val936 = new LinkedHashMap>( 2 * _map938.size); String _key939; Set _val940; for (int _i941 = 0; _i941 < _map938.size; ++_i941) { _key939 = iprot.readString(); { org.apache.thrift.protocol.TSet _set942 = iprot .readSetBegin(); _val940 = new LinkedHashSet( 2 * _set942.size); com.cinchapi.concourse.thrift.TObject _elem943; for (int _i944 = 0; _i944 < _set942.size; ++_i944) { _elem943 = new com.cinchapi.concourse.thrift.TObject(); _elem943.read(iprot); _val940.add(_elem943); } iprot.readSetEnd(); } _val936.put(_key939, _val940); } iprot.readMapEnd(); } struct.success.put(_key935, _val936); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, selectRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter945 : struct.success .entrySet()) { oprot.writeI64(_iter945.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter945.getValue().size())); for (Map.Entry> _iter946 : _iter945 .getValue().entrySet()) { oprot.writeString(_iter946.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter946.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter947 : _iter946 .getValue()) { _iter947.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecords_resultTupleSchemeFactory implements SchemeFactory { public selectRecords_resultTupleScheme getScheme() { return new selectRecords_resultTupleScheme(); } } private static class selectRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter948 : struct.success .entrySet()) { oprot.writeI64(_iter948.getKey()); { oprot.writeI32(_iter948.getValue().size()); for (Map.Entry> _iter949 : _iter948 .getValue().entrySet()) { oprot.writeString(_iter949.getKey()); { oprot.writeI32( _iter949.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter950 : _iter949 .getValue()) { _iter950.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map951 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map951.size); long _key952; Map> _val953; for (int _i954 = 0; _i954 < _map951.size; ++_i954) { _key952 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map955 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val953 = new LinkedHashMap>( 2 * _map955.size); String _key956; Set _val957; for (int _i958 = 0; _i958 < _map955.size; ++_i958) { _key956 = iprot.readString(); { org.apache.thrift.protocol.TSet _set959 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val957 = new LinkedHashSet( 2 * _set959.size); com.cinchapi.concourse.thrift.TObject _elem960; for (int _i961 = 0; _i961 < _set959.size; ++_i961) { _elem960 = new com.cinchapi.concourse.thrift.TObject(); _elem960.read(iprot); _val957.add(_elem960); } } _val953.put(_key956, _val957); } } struct.success.put(_key952, _val953); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectRecordTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectRecordTime_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecordTime_argsTupleSchemeFactory()); } public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short) 1, "record"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORD return RECORD; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectRecordTime_args.class, metaDataMap); } public selectRecordTime_args() {} public selectRecordTime_args(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectRecordTime_args(selectRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectRecordTime_args deepCopy() { return new selectRecordTime_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public selectRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public selectRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectRecordTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectRecordTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectRecordTime_args) return this.equals((selectRecordTime_args) that); return false; } public boolean equals(selectRecordTime_args that) { if(that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectRecordTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectRecordTime_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectRecordTime_argsStandardSchemeFactory implements SchemeFactory { public selectRecordTime_argsStandardScheme getScheme() { return new selectRecordTime_argsStandardScheme(); } } private static class selectRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecordTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecordTime_argsTupleSchemeFactory implements SchemeFactory { public selectRecordTime_argsTupleScheme getScheme() { return new selectRecordTime_argsTupleScheme(); } } private static class selectRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecord()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectRecordTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecordTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectRecordTime_result.class, metaDataMap); } public selectRecordTime_result() {} public selectRecordTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectRecordTime_result(selectRecordTime_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { String other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); String __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public selectRecordTime_result deepCopy() { return new selectRecordTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectRecordTime_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectRecordTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectRecordTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public selectRecordTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 selectRecordTime_resultStandardSchemeFactory implements SchemeFactory { public selectRecordTime_resultStandardScheme getScheme() { return new selectRecordTime_resultStandardScheme(); } } private static class selectRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map962 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map962.size); String _key963; Set _val964; for (int _i965 = 0; _i965 < _map962.size; ++_i965) { _key963 = iprot.readString(); { org.apache.thrift.protocol.TSet _set966 = iprot .readSetBegin(); _val964 = new LinkedHashSet( 2 * _set966.size); com.cinchapi.concourse.thrift.TObject _elem967; for (int _i968 = 0; _i968 < _set966.size; ++_i968) { _elem967 = new com.cinchapi.concourse.thrift.TObject(); _elem967.read(iprot); _val964.add(_elem967); } iprot.readSetEnd(); } struct.success.put(_key963, _val964); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, selectRecordTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter969 : struct.success .entrySet()) { oprot.writeString(_iter969.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter969.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter970 : _iter969 .getValue()) { _iter970.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecordTime_resultTupleSchemeFactory implements SchemeFactory { public selectRecordTime_resultTupleScheme getScheme() { return new selectRecordTime_resultTupleScheme(); } } private static class selectRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter971 : struct.success .entrySet()) { oprot.writeString(_iter971.getKey()); { oprot.writeI32(_iter971.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter972 : _iter971 .getValue()) { _iter972.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map973 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map973.size); String _key974; Set _val975; for (int _i976 = 0; _i976 < _map973.size; ++_i976) { _key974 = iprot.readString(); { org.apache.thrift.protocol.TSet _set977 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val975 = new LinkedHashSet( 2 * _set977.size); com.cinchapi.concourse.thrift.TObject _elem978; for (int _i979 = 0; _i979 < _set977.size; ++_i979) { _elem978 = new com.cinchapi.concourse.thrift.TObject(); _elem978.read(iprot); _val975.add(_elem978); } } struct.success.put(_key974, _val975); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectRecordTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectRecordTimestr_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecordTimestr_argsTupleSchemeFactory()); } public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short) 1, "record"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORD return RECORD; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectRecordTimestr_args.class, metaDataMap); } public selectRecordTimestr_args() {} public selectRecordTimestr_args(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectRecordTimestr_args(selectRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectRecordTimestr_args deepCopy() { return new selectRecordTimestr_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public selectRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public selectRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectRecordTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectRecordTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectRecordTimestr_args) return this.equals((selectRecordTimestr_args) that); return false; } public boolean equals(selectRecordTimestr_args that) { if(that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectRecordTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectRecordTimestr_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectRecordTimestr_argsStandardScheme getScheme() { return new selectRecordTimestr_argsStandardScheme(); } } private static class selectRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecordTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectRecordTimestr_argsTupleScheme getScheme() { return new selectRecordTimestr_argsTupleScheme(); } } private static class selectRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecord()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectRecordTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectRecordTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecordTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectRecordTimestr_result.class, metaDataMap); } public selectRecordTimestr_result() {} public selectRecordTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public selectRecordTimestr_result(selectRecordTimestr_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { String other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); String __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectRecordTimestr_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectRecordTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectRecordTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectRecordTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public selectRecordTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectRecordTimestr_resultStandardScheme getScheme() { return new selectRecordTimestr_resultStandardScheme(); } } private static class selectRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecordTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map980 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map980.size); String _key981; Set _val982; for (int _i983 = 0; _i983 < _map980.size; ++_i983) { _key981 = iprot.readString(); { org.apache.thrift.protocol.TSet _set984 = iprot .readSetBegin(); _val982 = new LinkedHashSet( 2 * _set984.size); com.cinchapi.concourse.thrift.TObject _elem985; for (int _i986 = 0; _i986 < _set984.size; ++_i986) { _elem985 = new com.cinchapi.concourse.thrift.TObject(); _elem985.read(iprot); _val982.add(_elem985); } iprot.readSetEnd(); } struct.success.put(_key981, _val982); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectRecordTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter987 : struct.success .entrySet()) { oprot.writeString(_iter987.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter987.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter988 : _iter987 .getValue()) { _iter988.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectRecordTimestr_resultTupleScheme getScheme() { return new selectRecordTimestr_resultTupleScheme(); } } private static class selectRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter989 : struct.success .entrySet()) { oprot.writeString(_iter989.getKey()); { oprot.writeI32(_iter989.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter990 : _iter989 .getValue()) { _iter990.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map991 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map991.size); String _key992; Set _val993; for (int _i994 = 0; _i994 < _map991.size; ++_i994) { _key992 = iprot.readString(); { org.apache.thrift.protocol.TSet _set995 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val993 = new LinkedHashSet( 2 * _set995.size); com.cinchapi.concourse.thrift.TObject _elem996; for (int _i997 = 0; _i997 < _set995.size; ++_i997) { _elem996 = new com.cinchapi.concourse.thrift.TObject(); _elem996.read(iprot); _val993.add(_elem996); } } struct.success.put(_key992, _val993); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class selectRecordsTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectRecordsTime_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecordsTime_argsTupleSchemeFactory()); } public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short) 1, "records"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORDS return RECORDS; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectRecordsTime_args.class, metaDataMap); } public selectRecordsTime_args() {} public selectRecordsTime_args(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectRecordsTime_args(selectRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectRecordsTime_args deepCopy() { return new selectRecordsTime_args(this); } @Override public void clear() { this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public selectRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public selectRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectRecordsTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectRecordsTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectRecordsTime_args) return this.equals((selectRecordsTime_args) that); return false; } public boolean equals(selectRecordsTime_args that) { if(that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectRecordsTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectRecordsTime_args("); boolean first = true; sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public selectRecordsTime_argsStandardScheme getScheme() { return new selectRecordsTime_argsStandardScheme(); } } private static class selectRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecordsTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list998 = iprot .readListBegin(); struct.records = new ArrayList( _list998.size); long _elem999; for (int _i1000 = 0; _i1000 < _list998.size; ++_i1000) { _elem999 = iprot.readI64(); struct.records.add(_elem999); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1001 : struct.records) { oprot.writeI64(_iter1001); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public selectRecordsTime_argsTupleScheme getScheme() { return new selectRecordsTime_argsTupleScheme(); } } private static class selectRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecords()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1002 : struct.records) { oprot.writeI64(_iter1002); } } } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list1003 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1003.size); long _elem1004; for (int _i1005 = 0; _i1005 < _list1003.size; ++_i1005) { _elem1004 = iprot.readI64(); struct.records.add(_elem1004); } } struct.setRecordsIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectRecordsTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecordsTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectRecordsTime_result.class, metaDataMap); } public selectRecordsTime_result() {} public selectRecordsTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectRecordsTime_result(selectRecordsTime_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public selectRecordsTime_result deepCopy() { return new selectRecordsTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectRecordsTime_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectRecordsTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectRecordsTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public selectRecordsTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 selectRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public selectRecordsTime_resultStandardScheme getScheme() { return new selectRecordsTime_resultStandardScheme(); } } private static class selectRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecordsTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1006 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map1006.size); long _key1007; Map> _val1008; for (int _i1009 = 0; _i1009 < _map1006.size; ++_i1009) { _key1007 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1010 = iprot .readMapBegin(); _val1008 = new LinkedHashMap>( 2 * _map1010.size); String _key1011; Set _val1012; for (int _i1013 = 0; _i1013 < _map1010.size; ++_i1013) { _key1011 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1014 = iprot .readSetBegin(); _val1012 = new LinkedHashSet( 2 * _set1014.size); com.cinchapi.concourse.thrift.TObject _elem1015; for (int _i1016 = 0; _i1016 < _set1014.size; ++_i1016) { _elem1015 = new com.cinchapi.concourse.thrift.TObject(); _elem1015.read(iprot); _val1012.add(_elem1015); } iprot.readSetEnd(); } _val1008.put(_key1011, _val1012); } iprot.readMapEnd(); } struct.success.put(_key1007, _val1008); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, selectRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1017 : struct.success .entrySet()) { oprot.writeI64(_iter1017.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1017.getValue().size())); for (Map.Entry> _iter1018 : _iter1017 .getValue().entrySet()) { oprot.writeString(_iter1018.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1018.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter1019 : _iter1018 .getValue()) { _iter1019.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public selectRecordsTime_resultTupleScheme getScheme() { return new selectRecordsTime_resultTupleScheme(); } } private static class selectRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1020 : struct.success .entrySet()) { oprot.writeI64(_iter1020.getKey()); { oprot.writeI32(_iter1020.getValue().size()); for (Map.Entry> _iter1021 : _iter1020 .getValue().entrySet()) { oprot.writeString(_iter1021.getKey()); { oprot.writeI32( _iter1021.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1022 : _iter1021 .getValue()) { _iter1022.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1023 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map1023.size); long _key1024; Map> _val1025; for (int _i1026 = 0; _i1026 < _map1023.size; ++_i1026) { _key1024 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1027 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1025 = new LinkedHashMap>( 2 * _map1027.size); String _key1028; Set _val1029; for (int _i1030 = 0; _i1030 < _map1027.size; ++_i1030) { _key1028 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1031 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1029 = new LinkedHashSet( 2 * _set1031.size); com.cinchapi.concourse.thrift.TObject _elem1032; for (int _i1033 = 0; _i1033 < _set1031.size; ++_i1033) { _elem1032 = new com.cinchapi.concourse.thrift.TObject(); _elem1032.read(iprot); _val1029.add(_elem1032); } } _val1025.put(_key1028, _val1029); } } struct.success.put(_key1024, _val1025); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectRecordsTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecordsTimestr_argsTupleSchemeFactory()); } public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short) 1, "records"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORDS return RECORDS; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectRecordsTimestr_args.class, metaDataMap); } public selectRecordsTimestr_args() {} public selectRecordsTimestr_args(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectRecordsTimestr_args(selectRecordsTimestr_args other) { if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectRecordsTimestr_args deepCopy() { return new selectRecordsTimestr_args(this); } @Override public void clear() { this.records = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public selectRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public selectRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectRecordsTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectRecordsTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectRecordsTimestr_args) return this.equals((selectRecordsTimestr_args) that); return false; } public boolean equals(selectRecordsTimestr_args that) { if(that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectRecordsTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectRecordsTimestr_args("); boolean first = true; sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectRecordsTimestr_argsStandardScheme getScheme() { return new selectRecordsTimestr_argsStandardScheme(); } } private static class selectRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecordsTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1034 = iprot .readListBegin(); struct.records = new ArrayList( _list1034.size); long _elem1035; for (int _i1036 = 0; _i1036 < _list1034.size; ++_i1036) { _elem1035 = iprot.readI64(); struct.records.add(_elem1035); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1037 : struct.records) { oprot.writeI64(_iter1037); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectRecordsTimestr_argsTupleScheme getScheme() { return new selectRecordsTimestr_argsTupleScheme(); } } private static class selectRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecords()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1038 : struct.records) { oprot.writeI64(_iter1038); } } } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list1039 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1039.size); long _elem1040; for (int _i1041 = 0; _i1041 < _list1039.size; ++_i1041) { _elem1040 = iprot.readI64(); struct.records.add(_elem1040); } } struct.setRecordsIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectRecordsTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecordsTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectRecordsTimestr_result.class, metaDataMap); } public selectRecordsTimestr_result() {} public selectRecordsTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public selectRecordsTimestr_result(selectRecordsTimestr_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectRecordsTimestr_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectRecordsTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectRecordsTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectRecordsTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public selectRecordsTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectRecordsTimestr_resultStandardScheme getScheme() { return new selectRecordsTimestr_resultStandardScheme(); } } private static class selectRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecordsTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1042 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map1042.size); long _key1043; Map> _val1044; for (int _i1045 = 0; _i1045 < _map1042.size; ++_i1045) { _key1043 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1046 = iprot .readMapBegin(); _val1044 = new LinkedHashMap>( 2 * _map1046.size); String _key1047; Set _val1048; for (int _i1049 = 0; _i1049 < _map1046.size; ++_i1049) { _key1047 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1050 = iprot .readSetBegin(); _val1048 = new LinkedHashSet( 2 * _set1050.size); com.cinchapi.concourse.thrift.TObject _elem1051; for (int _i1052 = 0; _i1052 < _set1050.size; ++_i1052) { _elem1051 = new com.cinchapi.concourse.thrift.TObject(); _elem1051.read(iprot); _val1048.add(_elem1051); } iprot.readSetEnd(); } _val1044.put(_key1047, _val1048); } iprot.readMapEnd(); } struct.success.put(_key1043, _val1044); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectRecordsTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1053 : struct.success .entrySet()) { oprot.writeI64(_iter1053.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1053.getValue().size())); for (Map.Entry> _iter1054 : _iter1053 .getValue().entrySet()) { oprot.writeString(_iter1054.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1054.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter1055 : _iter1054 .getValue()) { _iter1055.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectRecordsTimestr_resultTupleScheme getScheme() { return new selectRecordsTimestr_resultTupleScheme(); } } private static class selectRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1056 : struct.success .entrySet()) { oprot.writeI64(_iter1056.getKey()); { oprot.writeI32(_iter1056.getValue().size()); for (Map.Entry> _iter1057 : _iter1056 .getValue().entrySet()) { oprot.writeString(_iter1057.getKey()); { oprot.writeI32( _iter1057.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1058 : _iter1057 .getValue()) { _iter1058.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1059 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map1059.size); long _key1060; Map> _val1061; for (int _i1062 = 0; _i1062 < _map1059.size; ++_i1062) { _key1060 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1063 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1061 = new LinkedHashMap>( 2 * _map1063.size); String _key1064; Set _val1065; for (int _i1066 = 0; _i1066 < _map1063.size; ++_i1066) { _key1064 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1067 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1065 = new LinkedHashSet( 2 * _set1067.size); com.cinchapi.concourse.thrift.TObject _elem1068; for (int _i1069 = 0; _i1069 < _set1067.size; ++_i1069) { _elem1068 = new com.cinchapi.concourse.thrift.TObject(); _elem1068.read(iprot); _val1065.add(_elem1068); } } _val1061.put(_key1064, _val1065); } } struct.success.put(_key1060, _val1061); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class selectKeyRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecord_argsTupleSchemeFactory()); } public String key; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyRecord_args.class, metaDataMap); } public selectKeyRecord_args() {} public selectKeyRecord_args(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyRecord_args(selectKeyRecord_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyRecord_args deepCopy() { return new selectKeyRecord_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public selectKeyRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeyRecord_args) return this.equals((selectKeyRecord_args) that); return false; } public boolean equals(selectKeyRecord_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectKeyRecord_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeyRecord_argsStandardSchemeFactory implements SchemeFactory { public selectKeyRecord_argsStandardScheme getScheme() { return new selectKeyRecord_argsStandardScheme(); } } private static class selectKeyRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeyRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecord_argsTupleSchemeFactory implements SchemeFactory { public selectKeyRecord_argsTupleScheme getScheme() { return new selectKeyRecord_argsTupleScheme(); } } private static class selectKeyRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.SET, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecord_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyRecord_result.class, metaDataMap); } public selectKeyRecord_result() {} public selectKeyRecord_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeyRecord_result(selectKeyRecord_result other) { if(other.isSetSuccess()) { Set __this__success = new LinkedHashSet( other.success.size()); for (com.cinchapi.concourse.thrift.TObject other_element : other.success) { __this__success .add(new com.cinchapi.concourse.thrift.TObject( other_element)); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public selectKeyRecord_result deepCopy() { return new selectKeyRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(com.cinchapi.concourse.thrift.TObject elem) { if(this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public selectKeyRecord_result setSuccess( Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyRecord_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyRecord_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public selectKeyRecord_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Set) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 selectKeyRecord_resultStandardSchemeFactory implements SchemeFactory { public selectKeyRecord_resultStandardScheme getScheme() { return new selectKeyRecord_resultStandardScheme(); } } private static class selectKeyRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set1070 = iprot .readSetBegin(); struct.success = new LinkedHashSet( 2 * _set1070.size); com.cinchapi.concourse.thrift.TObject _elem1071; for (int _i1072 = 0; _i1072 < _set1070.size; ++_i1072) { _elem1071 = new com.cinchapi.concourse.thrift.TObject(); _elem1071.read(iprot); struct.success.add(_elem1071); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, selectKeyRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (com.cinchapi.concourse.thrift.TObject _iter1073 : struct.success) { _iter1073.write(oprot); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecord_resultTupleSchemeFactory implements SchemeFactory { public selectKeyRecord_resultTupleScheme getScheme() { return new selectKeyRecord_resultTupleScheme(); } } private static class selectKeyRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (com.cinchapi.concourse.thrift.TObject _iter1074 : struct.success) { _iter1074.write(oprot); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TSet _set1075 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashSet( 2 * _set1075.size); com.cinchapi.concourse.thrift.TObject _elem1076; for (int _i1077 = 0; _i1077 < _set1075.size; ++_i1077) { _elem1076 = new com.cinchapi.concourse.thrift.TObject(); _elem1076.read(iprot); struct.success.add(_elem1076); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeyRecordTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyRecordTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecordTime_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyRecordTime_args.class, metaDataMap); } public selectKeyRecordTime_args() {} public selectKeyRecordTime_args(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyRecordTime_args(selectKeyRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyRecordTime_args deepCopy() { return new selectKeyRecordTime_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyRecordTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public selectKeyRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public selectKeyRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyRecordTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyRecordTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeyRecordTime_args) return this.equals((selectKeyRecordTime_args) that); return false; } public boolean equals(selectKeyRecordTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyRecordTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectKeyRecordTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeyRecordTime_argsStandardSchemeFactory implements SchemeFactory { public selectKeyRecordTime_argsStandardScheme getScheme() { return new selectKeyRecordTime_argsStandardScheme(); } } private static class selectKeyRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecordTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeyRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecordTime_argsTupleSchemeFactory implements SchemeFactory { public selectKeyRecordTime_argsTupleScheme getScheme() { return new selectKeyRecordTime_argsTupleScheme(); } } private static class selectKeyRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyRecordTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.SET, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecordTime_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyRecordTime_result.class, metaDataMap); } public selectKeyRecordTime_result() {} public selectKeyRecordTime_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeyRecordTime_result(selectKeyRecordTime_result other) { if(other.isSetSuccess()) { Set __this__success = new LinkedHashSet( other.success.size()); for (com.cinchapi.concourse.thrift.TObject other_element : other.success) { __this__success .add(new com.cinchapi.concourse.thrift.TObject( other_element)); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public selectKeyRecordTime_result deepCopy() { return new selectKeyRecordTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(com.cinchapi.concourse.thrift.TObject elem) { if(this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public selectKeyRecordTime_result setSuccess( Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyRecordTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyRecordTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public selectKeyRecordTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Set) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 selectKeyRecordTime_resultStandardSchemeFactory implements SchemeFactory { public selectKeyRecordTime_resultStandardScheme getScheme() { return new selectKeyRecordTime_resultStandardScheme(); } } private static class selectKeyRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set1078 = iprot .readSetBegin(); struct.success = new LinkedHashSet( 2 * _set1078.size); com.cinchapi.concourse.thrift.TObject _elem1079; for (int _i1080 = 0; _i1080 < _set1078.size; ++_i1080) { _elem1079 = new com.cinchapi.concourse.thrift.TObject(); _elem1079.read(iprot); struct.success.add(_elem1079); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, selectKeyRecordTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (com.cinchapi.concourse.thrift.TObject _iter1081 : struct.success) { _iter1081.write(oprot); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecordTime_resultTupleSchemeFactory implements SchemeFactory { public selectKeyRecordTime_resultTupleScheme getScheme() { return new selectKeyRecordTime_resultTupleScheme(); } } private static class selectKeyRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (com.cinchapi.concourse.thrift.TObject _iter1082 : struct.success) { _iter1082.write(oprot); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TSet _set1083 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashSet( 2 * _set1083.size); com.cinchapi.concourse.thrift.TObject _elem1084; for (int _i1085 = 0; _i1085 < _set1083.size; ++_i1085) { _elem1084 = new com.cinchapi.concourse.thrift.TObject(); _elem1084.read(iprot); struct.success.add(_elem1084); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeyRecordTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecordTimestr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyRecordTimestr_args.class, metaDataMap); } public selectKeyRecordTimestr_args() {} public selectKeyRecordTimestr_args(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyRecordTimestr_args(selectKeyRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyRecordTimestr_args deepCopy() { return new selectKeyRecordTimestr_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyRecordTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public selectKeyRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public selectKeyRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyRecordTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyRecordTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeyRecordTimestr_args) return this.equals((selectKeyRecordTimestr_args) that); return false; } public boolean equals(selectKeyRecordTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyRecordTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "selectKeyRecordTimestr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeyRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectKeyRecordTimestr_argsStandardScheme getScheme() { return new selectKeyRecordTimestr_argsStandardScheme(); } } private static class selectKeyRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecordTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeyRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectKeyRecordTimestr_argsTupleScheme getScheme() { return new selectKeyRecordTimestr_argsTupleScheme(); } } private static class selectKeyRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyRecordTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyRecordTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.SET, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecordTimestr_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyRecordTimestr_result.class, metaDataMap); } public selectKeyRecordTimestr_result() {} public selectKeyRecordTimestr_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public selectKeyRecordTimestr_result( selectKeyRecordTimestr_result other) { if(other.isSetSuccess()) { Set __this__success = new LinkedHashSet( other.success.size()); for (com.cinchapi.concourse.thrift.TObject other_element : other.success) { __this__success .add(new com.cinchapi.concourse.thrift.TObject( other_element)); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(com.cinchapi.concourse.thrift.TObject elem) { if(this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public selectKeyRecordTimestr_result setSuccess( Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyRecordTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyRecordTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeyRecordTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public selectKeyRecordTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Set) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeyRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectKeyRecordTimestr_resultStandardScheme getScheme() { return new selectKeyRecordTimestr_resultStandardScheme(); } } private static class selectKeyRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecordTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set1086 = iprot .readSetBegin(); struct.success = new LinkedHashSet( 2 * _set1086.size); com.cinchapi.concourse.thrift.TObject _elem1087; for (int _i1088 = 0; _i1088 < _set1086.size; ++_i1088) { _elem1087 = new com.cinchapi.concourse.thrift.TObject(); _elem1087.read(iprot); struct.success.add(_elem1087); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeyRecordTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (com.cinchapi.concourse.thrift.TObject _iter1089 : struct.success) { _iter1089.write(oprot); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectKeyRecordTimestr_resultTupleScheme getScheme() { return new selectKeyRecordTimestr_resultTupleScheme(); } } private static class selectKeyRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (com.cinchapi.concourse.thrift.TObject _iter1090 : struct.success) { _iter1090.write(oprot); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TSet _set1091 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashSet( 2 * _set1091.size); com.cinchapi.concourse.thrift.TObject _elem1092; for (int _i1093 = 0; _i1093 < _set1091.size; ++_i1093) { _elem1092 = new com.cinchapi.concourse.thrift.TObject(); _elem1092.read(iprot); struct.success.add(_elem1092); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class selectKeysRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysRecord_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecord_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORD((short) 2, "record"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysRecord_args.class, metaDataMap); } public selectKeysRecord_args() {} public selectKeysRecord_args(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysRecord_args(selectKeysRecord_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysRecord_args deepCopy() { return new selectKeysRecord_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysRecord_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public long getRecord() { return this.record; } public selectKeysRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeysRecord_args) return this.equals((selectKeysRecord_args) that); return false; } public boolean equals(selectKeysRecord_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectKeysRecord_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeysRecord_argsStandardSchemeFactory implements SchemeFactory { public selectKeysRecord_argsStandardScheme getScheme() { return new selectKeysRecord_argsStandardScheme(); } } private static class selectKeysRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1094 = iprot .readListBegin(); struct.keys = new ArrayList( _list1094.size); String _elem1095; for (int _i1096 = 0; _i1096 < _list1094.size; ++_i1096) { _elem1095 = iprot.readString(); struct.keys.add(_elem1095); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeysRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1097 : struct.keys) { oprot.writeString(_iter1097); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecord_argsTupleSchemeFactory implements SchemeFactory { public selectKeysRecord_argsTupleScheme getScheme() { return new selectKeysRecord_argsTupleScheme(); } } private static class selectKeysRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1098 : struct.keys) { oprot.writeString(_iter1098); } } } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list1099 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1099.size); String _elem1100; for (int _i1101 = 0; _i1101 < _list1099.size; ++_i1101) { _elem1100 = iprot.readString(); struct.keys.add(_elem1100); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecord_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysRecord_result.class, metaDataMap); } public selectKeysRecord_result() {} public selectKeysRecord_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeysRecord_result(selectKeysRecord_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { String other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); String __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public selectKeysRecord_result deepCopy() { return new selectKeysRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeysRecord_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysRecord_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysRecord_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public selectKeysRecord_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 selectKeysRecord_resultStandardSchemeFactory implements SchemeFactory { public selectKeysRecord_resultStandardScheme getScheme() { return new selectKeysRecord_resultStandardScheme(); } } private static class selectKeysRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1102 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map1102.size); String _key1103; Set _val1104; for (int _i1105 = 0; _i1105 < _map1102.size; ++_i1105) { _key1103 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1106 = iprot .readSetBegin(); _val1104 = new LinkedHashSet( 2 * _set1106.size); com.cinchapi.concourse.thrift.TObject _elem1107; for (int _i1108 = 0; _i1108 < _set1106.size; ++_i1108) { _elem1107 = new com.cinchapi.concourse.thrift.TObject(); _elem1107.read(iprot); _val1104.add(_elem1107); } iprot.readSetEnd(); } struct.success.put(_key1103, _val1104); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, selectKeysRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1109 : struct.success .entrySet()) { oprot.writeString(_iter1109.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1109.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1110 : _iter1109 .getValue()) { _iter1110.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecord_resultTupleSchemeFactory implements SchemeFactory { public selectKeysRecord_resultTupleScheme getScheme() { return new selectKeysRecord_resultTupleScheme(); } } private static class selectKeysRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1111 : struct.success .entrySet()) { oprot.writeString(_iter1111.getKey()); { oprot.writeI32(_iter1111.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1112 : _iter1111 .getValue()) { _iter1112.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1113 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map1113.size); String _key1114; Set _val1115; for (int _i1116 = 0; _i1116 < _map1113.size; ++_i1116) { _key1114 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1117 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1115 = new LinkedHashSet( 2 * _set1117.size); com.cinchapi.concourse.thrift.TObject _elem1118; for (int _i1119 = 0; _i1119 < _set1117.size; ++_i1119) { _elem1118 = new com.cinchapi.concourse.thrift.TObject(); _elem1118.read(iprot); _val1115.add(_elem1118); } } struct.success.put(_key1114, _val1115); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeysRecordTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysRecordTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecordTime_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysRecordTime_args.class, metaDataMap); } public selectKeysRecordTime_args() {} public selectKeysRecordTime_args(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysRecordTime_args(selectKeysRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysRecordTime_args deepCopy() { return new selectKeysRecordTime_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysRecordTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public long getRecord() { return this.record; } public selectKeysRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public selectKeysRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysRecordTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysRecordTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeysRecordTime_args) return this.equals((selectKeysRecordTime_args) that); return false; } public boolean equals(selectKeysRecordTime_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysRecordTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectKeysRecordTime_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeysRecordTime_argsStandardSchemeFactory implements SchemeFactory { public selectKeysRecordTime_argsStandardScheme getScheme() { return new selectKeysRecordTime_argsStandardScheme(); } } private static class selectKeysRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecordTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1120 = iprot .readListBegin(); struct.keys = new ArrayList( _list1120.size); String _elem1121; for (int _i1122 = 0; _i1122 < _list1120.size; ++_i1122) { _elem1121 = iprot.readString(); struct.keys.add(_elem1121); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeysRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1123 : struct.keys) { oprot.writeString(_iter1123); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecordTime_argsTupleSchemeFactory implements SchemeFactory { public selectKeysRecordTime_argsTupleScheme getScheme() { return new selectKeysRecordTime_argsTupleScheme(); } } private static class selectKeysRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1124 : struct.keys) { oprot.writeString(_iter1124); } } } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list1125 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1125.size); String _elem1126; for (int _i1127 = 0; _i1127 < _list1125.size; ++_i1127) { _elem1126 = iprot.readString(); struct.keys.add(_elem1126); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysRecordTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecordTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysRecordTime_result.class, metaDataMap); } public selectKeysRecordTime_result() {} public selectKeysRecordTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeysRecordTime_result(selectKeysRecordTime_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { String other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); String __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public selectKeysRecordTime_result deepCopy() { return new selectKeysRecordTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeysRecordTime_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysRecordTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysRecordTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public selectKeysRecordTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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( "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; 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 selectKeysRecordTime_resultStandardSchemeFactory implements SchemeFactory { public selectKeysRecordTime_resultStandardScheme getScheme() { return new selectKeysRecordTime_resultStandardScheme(); } } private static class selectKeysRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1128 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map1128.size); String _key1129; Set _val1130; for (int _i1131 = 0; _i1131 < _map1128.size; ++_i1131) { _key1129 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1132 = iprot .readSetBegin(); _val1130 = new LinkedHashSet( 2 * _set1132.size); com.cinchapi.concourse.thrift.TObject _elem1133; for (int _i1134 = 0; _i1134 < _set1132.size; ++_i1134) { _elem1133 = new com.cinchapi.concourse.thrift.TObject(); _elem1133.read(iprot); _val1130.add(_elem1133); } iprot.readSetEnd(); } struct.success.put(_key1129, _val1130); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, selectKeysRecordTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1135 : struct.success .entrySet()) { oprot.writeString(_iter1135.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1135.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1136 : _iter1135 .getValue()) { _iter1136.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecordTime_resultTupleSchemeFactory implements SchemeFactory { public selectKeysRecordTime_resultTupleScheme getScheme() { return new selectKeysRecordTime_resultTupleScheme(); } } private static class selectKeysRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1137 : struct.success .entrySet()) { oprot.writeString(_iter1137.getKey()); { oprot.writeI32(_iter1137.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1138 : _iter1137 .getValue()) { _iter1138.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1139 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map1139.size); String _key1140; Set _val1141; for (int _i1142 = 0; _i1142 < _map1139.size; ++_i1142) { _key1140 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1143 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1141 = new LinkedHashSet( 2 * _set1143.size); com.cinchapi.concourse.thrift.TObject _elem1144; for (int _i1145 = 0; _i1145 < _set1143.size; ++_i1145) { _elem1144 = new com.cinchapi.concourse.thrift.TObject(); _elem1144.read(iprot); _val1141.add(_elem1144); } } struct.success.put(_key1140, _val1141); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeysRecordTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecordTimestr_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysRecordTimestr_args.class, metaDataMap); } public selectKeysRecordTimestr_args() {} public selectKeysRecordTimestr_args(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysRecordTimestr_args( selectKeysRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysRecordTimestr_args deepCopy() { return new selectKeysRecordTimestr_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysRecordTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public long getRecord() { return this.record; } public selectKeysRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public selectKeysRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysRecordTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysRecordTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeysRecordTimestr_args) return this.equals((selectKeysRecordTimestr_args) that); return false; } public boolean equals(selectKeysRecordTimestr_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysRecordTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "selectKeysRecordTimestr_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeysRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectKeysRecordTimestr_argsStandardScheme getScheme() { return new selectKeysRecordTimestr_argsStandardScheme(); } } private static class selectKeysRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecordTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1146 = iprot .readListBegin(); struct.keys = new ArrayList( _list1146.size); String _elem1147; for (int _i1148 = 0; _i1148 < _list1146.size; ++_i1148) { _elem1147 = iprot.readString(); struct.keys.add(_elem1147); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeysRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1149 : struct.keys) { oprot.writeString(_iter1149); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectKeysRecordTimestr_argsTupleScheme getScheme() { return new selectKeysRecordTimestr_argsTupleScheme(); } } private static class selectKeysRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1150 : struct.keys) { oprot.writeString(_iter1150); } } } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list1151 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1151.size); String _elem1152; for (int _i1153 = 0; _i1153 < _list1151.size; ++_i1153) { _elem1152 = iprot.readString(); struct.keys.add(_elem1152); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysRecordTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysRecordTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecordTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysRecordTimestr_result.class, metaDataMap); } public selectKeysRecordTimestr_result() {} public selectKeysRecordTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public selectKeysRecordTimestr_result( selectKeysRecordTimestr_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { String other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); String __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeysRecordTimestr_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysRecordTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysRecordTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeysRecordTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public selectKeysRecordTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeysRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectKeysRecordTimestr_resultStandardScheme getScheme() { return new selectKeysRecordTimestr_resultStandardScheme(); } } private static class selectKeysRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecordTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1154 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map1154.size); String _key1155; Set _val1156; for (int _i1157 = 0; _i1157 < _map1154.size; ++_i1157) { _key1155 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1158 = iprot .readSetBegin(); _val1156 = new LinkedHashSet( 2 * _set1158.size); com.cinchapi.concourse.thrift.TObject _elem1159; for (int _i1160 = 0; _i1160 < _set1158.size; ++_i1160) { _elem1159 = new com.cinchapi.concourse.thrift.TObject(); _elem1159.read(iprot); _val1156.add(_elem1159); } iprot.readSetEnd(); } struct.success.put(_key1155, _val1156); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeysRecordTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1161 : struct.success .entrySet()) { oprot.writeString(_iter1161.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1161.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1162 : _iter1161 .getValue()) { _iter1162.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectKeysRecordTimestr_resultTupleScheme getScheme() { return new selectKeysRecordTimestr_resultTupleScheme(); } } private static class selectKeysRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1163 : struct.success .entrySet()) { oprot.writeString(_iter1163.getKey()); { oprot.writeI32(_iter1163.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1164 : _iter1163 .getValue()) { _iter1164.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1165 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map1165.size); String _key1166; Set _val1167; for (int _i1168 = 0; _i1168 < _map1165.size; ++_i1168) { _key1166 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1169 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1167 = new LinkedHashSet( 2 * _set1169.size); com.cinchapi.concourse.thrift.TObject _elem1170; for (int _i1171 = 0; _i1171 < _set1169.size; ++_i1171) { _elem1170 = new com.cinchapi.concourse.thrift.TObject(); _elem1170.read(iprot); _val1167.add(_elem1170); } } struct.success.put(_key1166, _val1167); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class selectKeysRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysRecords_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecords_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORDS((short) 2, "records"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysRecords_args.class, metaDataMap); } public selectKeysRecords_args() {} public selectKeysRecords_args(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysRecords_args(selectKeysRecords_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysRecords_args deepCopy() { return new selectKeysRecords_args(this); } @Override public void clear() { this.keys = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysRecords_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public selectKeysRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeysRecords_args) return this.equals((selectKeysRecords_args) that); return false; } public boolean equals(selectKeysRecords_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysRecords_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectKeysRecords_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeysRecords_argsStandardSchemeFactory implements SchemeFactory { public selectKeysRecords_argsStandardScheme getScheme() { return new selectKeysRecords_argsStandardScheme(); } } private static class selectKeysRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1172 = iprot .readListBegin(); struct.keys = new ArrayList( _list1172.size); String _elem1173; for (int _i1174 = 0; _i1174 < _list1172.size; ++_i1174) { _elem1173 = iprot.readString(); struct.keys.add(_elem1173); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1175 = iprot .readListBegin(); struct.records = new ArrayList( _list1175.size); long _elem1176; for (int _i1177 = 0; _i1177 < _list1175.size; ++_i1177) { _elem1176 = iprot.readI64(); struct.records.add(_elem1176); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeysRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1178 : struct.keys) { oprot.writeString(_iter1178); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1179 : struct.records) { oprot.writeI64(_iter1179); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecords_argsTupleSchemeFactory implements SchemeFactory { public selectKeysRecords_argsTupleScheme getScheme() { return new selectKeysRecords_argsTupleScheme(); } } private static class selectKeysRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1180 : struct.keys) { oprot.writeString(_iter1180); } } } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1181 : struct.records) { oprot.writeI64(_iter1181); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list1182 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1182.size); String _elem1183; for (int _i1184 = 0; _i1184 < _list1182.size; ++_i1184) { _elem1183 = iprot.readString(); struct.keys.add(_elem1183); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list1185 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1185.size); long _elem1186; for (int _i1187 = 0; _i1187 < _list1185.size; ++_i1187) { _elem1186 = iprot.readI64(); struct.records.add(_elem1186); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecords_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysRecords_result.class, metaDataMap); } public selectKeysRecords_result() {} public selectKeysRecords_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeysRecords_result(selectKeysRecords_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public selectKeysRecords_result deepCopy() { return new selectKeysRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectKeysRecords_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysRecords_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysRecords_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public selectKeysRecords_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 selectKeysRecords_resultStandardSchemeFactory implements SchemeFactory { public selectKeysRecords_resultStandardScheme getScheme() { return new selectKeysRecords_resultStandardScheme(); } } private static class selectKeysRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1188 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map1188.size); long _key1189; Map> _val1190; for (int _i1191 = 0; _i1191 < _map1188.size; ++_i1191) { _key1189 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1192 = iprot .readMapBegin(); _val1190 = new LinkedHashMap>( 2 * _map1192.size); String _key1193; Set _val1194; for (int _i1195 = 0; _i1195 < _map1192.size; ++_i1195) { _key1193 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1196 = iprot .readSetBegin(); _val1194 = new LinkedHashSet( 2 * _set1196.size); com.cinchapi.concourse.thrift.TObject _elem1197; for (int _i1198 = 0; _i1198 < _set1196.size; ++_i1198) { _elem1197 = new com.cinchapi.concourse.thrift.TObject(); _elem1197.read(iprot); _val1194.add(_elem1197); } iprot.readSetEnd(); } _val1190.put(_key1193, _val1194); } iprot.readMapEnd(); } struct.success.put(_key1189, _val1190); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, selectKeysRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1199 : struct.success .entrySet()) { oprot.writeI64(_iter1199.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1199.getValue().size())); for (Map.Entry> _iter1200 : _iter1199 .getValue().entrySet()) { oprot.writeString(_iter1200.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1200.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter1201 : _iter1200 .getValue()) { _iter1201.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecords_resultTupleSchemeFactory implements SchemeFactory { public selectKeysRecords_resultTupleScheme getScheme() { return new selectKeysRecords_resultTupleScheme(); } } private static class selectKeysRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1202 : struct.success .entrySet()) { oprot.writeI64(_iter1202.getKey()); { oprot.writeI32(_iter1202.getValue().size()); for (Map.Entry> _iter1203 : _iter1202 .getValue().entrySet()) { oprot.writeString(_iter1203.getKey()); { oprot.writeI32( _iter1203.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1204 : _iter1203 .getValue()) { _iter1204.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1205 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map1205.size); long _key1206; Map> _val1207; for (int _i1208 = 0; _i1208 < _map1205.size; ++_i1208) { _key1206 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1209 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1207 = new LinkedHashMap>( 2 * _map1209.size); String _key1210; Set _val1211; for (int _i1212 = 0; _i1212 < _map1209.size; ++_i1212) { _key1210 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1213 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1211 = new LinkedHashSet( 2 * _set1213.size); com.cinchapi.concourse.thrift.TObject _elem1214; for (int _i1215 = 0; _i1215 < _set1213.size; ++_i1215) { _elem1214 = new com.cinchapi.concourse.thrift.TObject(); _elem1214.read(iprot); _val1211.add(_elem1214); } } _val1207.put(_key1210, _val1211); } } struct.success.put(_key1206, _val1207); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeyRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyRecords_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecords_argsTupleSchemeFactory()); } public String key; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyRecords_args.class, metaDataMap); } public selectKeyRecords_args() {} public selectKeyRecords_args(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyRecords_args(selectKeyRecords_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyRecords_args deepCopy() { return new selectKeyRecords_args(this); } @Override public void clear() { this.key = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyRecords_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public selectKeyRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeyRecords_args) return this.equals((selectKeyRecords_args) that); return false; } public boolean equals(selectKeyRecords_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyRecords_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectKeyRecords_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeyRecords_argsStandardSchemeFactory implements SchemeFactory { public selectKeyRecords_argsStandardScheme getScheme() { return new selectKeyRecords_argsStandardScheme(); } } private static class selectKeyRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1216 = iprot .readListBegin(); struct.records = new ArrayList( _list1216.size); long _elem1217; for (int _i1218 = 0; _i1218 < _list1216.size; ++_i1218) { _elem1217 = iprot.readI64(); struct.records.add(_elem1217); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeyRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1219 : struct.records) { oprot.writeI64(_iter1219); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecords_argsTupleSchemeFactory implements SchemeFactory { public selectKeyRecords_argsTupleScheme getScheme() { return new selectKeyRecords_argsTupleScheme(); } } private static class selectKeyRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1220 : struct.records) { oprot.writeI64(_iter1220); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list1221 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1221.size); long _elem1222; for (int _i1223 = 0; _i1223 < _list1221.size; ++_i1223) { _elem1222 = iprot.readI64(); struct.records.add(_elem1222); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecords_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyRecords_result.class, metaDataMap); } public selectKeyRecords_result() {} public selectKeyRecords_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeyRecords_result(selectKeyRecords_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public selectKeyRecords_result deepCopy() { return new selectKeyRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeyRecords_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyRecords_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyRecords_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public selectKeyRecords_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 selectKeyRecords_resultStandardSchemeFactory implements SchemeFactory { public selectKeyRecords_resultStandardScheme getScheme() { return new selectKeyRecords_resultStandardScheme(); } } private static class selectKeyRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1224 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map1224.size); long _key1225; Set _val1226; for (int _i1227 = 0; _i1227 < _map1224.size; ++_i1227) { _key1225 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1228 = iprot .readSetBegin(); _val1226 = new LinkedHashSet( 2 * _set1228.size); com.cinchapi.concourse.thrift.TObject _elem1229; for (int _i1230 = 0; _i1230 < _set1228.size; ++_i1230) { _elem1229 = new com.cinchapi.concourse.thrift.TObject(); _elem1229.read(iprot); _val1226.add(_elem1229); } iprot.readSetEnd(); } struct.success.put(_key1225, _val1226); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, selectKeyRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1231 : struct.success .entrySet()) { oprot.writeI64(_iter1231.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1231.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1232 : _iter1231 .getValue()) { _iter1232.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecords_resultTupleSchemeFactory implements SchemeFactory { public selectKeyRecords_resultTupleScheme getScheme() { return new selectKeyRecords_resultTupleScheme(); } } private static class selectKeyRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1233 : struct.success .entrySet()) { oprot.writeI64(_iter1233.getKey()); { oprot.writeI32(_iter1233.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1234 : _iter1233 .getValue()) { _iter1234.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1235 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map1235.size); long _key1236; Set _val1237; for (int _i1238 = 0; _i1238 < _map1235.size; ++_i1238) { _key1236 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1239 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1237 = new LinkedHashSet( 2 * _set1239.size); com.cinchapi.concourse.thrift.TObject _elem1240; for (int _i1241 = 0; _i1241 < _set1239.size; ++_i1241) { _elem1240 = new com.cinchapi.concourse.thrift.TObject(); _elem1240.read(iprot); _val1237.add(_elem1240); } } struct.success.put(_key1236, _val1237); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeyRecordsTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecordsTime_argsTupleSchemeFactory()); } public String key; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyRecordsTime_args.class, metaDataMap); } public selectKeyRecordsTime_args() {} public selectKeyRecordsTime_args(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyRecordsTime_args(selectKeyRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyRecordsTime_args deepCopy() { return new selectKeyRecordsTime_args(this); } @Override public void clear() { this.key = null; this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyRecordsTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public selectKeyRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public selectKeyRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyRecordsTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyRecordsTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeyRecordsTime_args) return this.equals((selectKeyRecordsTime_args) that); return false; } public boolean equals(selectKeyRecordsTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyRecordsTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectKeyRecordsTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeyRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public selectKeyRecordsTime_argsStandardScheme getScheme() { return new selectKeyRecordsTime_argsStandardScheme(); } } private static class selectKeyRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecordsTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1242 = iprot .readListBegin(); struct.records = new ArrayList( _list1242.size); long _elem1243; for (int _i1244 = 0; _i1244 < _list1242.size; ++_i1244) { _elem1243 = iprot.readI64(); struct.records.add(_elem1243); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeyRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1245 : struct.records) { oprot.writeI64(_iter1245); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public selectKeyRecordsTime_argsTupleScheme getScheme() { return new selectKeyRecordsTime_argsTupleScheme(); } } private static class selectKeyRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1246 : struct.records) { oprot.writeI64(_iter1246); } } } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list1247 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1247.size); long _elem1248; for (int _i1249 = 0; _i1249 < _list1247.size; ++_i1249) { _elem1248 = iprot.readI64(); struct.records.add(_elem1248); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyRecordsTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecordsTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyRecordsTime_result.class, metaDataMap); } public selectKeyRecordsTime_result() {} public selectKeyRecordsTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeyRecordsTime_result(selectKeyRecordsTime_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public selectKeyRecordsTime_result deepCopy() { return new selectKeyRecordsTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeyRecordsTime_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyRecordsTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyRecordsTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public selectKeyRecordsTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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( "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; 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 selectKeyRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public selectKeyRecordsTime_resultStandardScheme getScheme() { return new selectKeyRecordsTime_resultStandardScheme(); } } private static class selectKeyRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecordsTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1250 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map1250.size); long _key1251; Set _val1252; for (int _i1253 = 0; _i1253 < _map1250.size; ++_i1253) { _key1251 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1254 = iprot .readSetBegin(); _val1252 = new LinkedHashSet( 2 * _set1254.size); com.cinchapi.concourse.thrift.TObject _elem1255; for (int _i1256 = 0; _i1256 < _set1254.size; ++_i1256) { _elem1255 = new com.cinchapi.concourse.thrift.TObject(); _elem1255.read(iprot); _val1252.add(_elem1255); } iprot.readSetEnd(); } struct.success.put(_key1251, _val1252); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, selectKeyRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1257 : struct.success .entrySet()) { oprot.writeI64(_iter1257.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1257.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1258 : _iter1257 .getValue()) { _iter1258.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public selectKeyRecordsTime_resultTupleScheme getScheme() { return new selectKeyRecordsTime_resultTupleScheme(); } } private static class selectKeyRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1259 : struct.success .entrySet()) { oprot.writeI64(_iter1259.getKey()); { oprot.writeI32(_iter1259.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1260 : _iter1259 .getValue()) { _iter1260.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1261 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map1261.size); long _key1262; Set _val1263; for (int _i1264 = 0; _i1264 < _map1261.size; ++_i1264) { _key1262 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1265 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1263 = new LinkedHashSet( 2 * _set1265.size); com.cinchapi.concourse.thrift.TObject _elem1266; for (int _i1267 = 0; _i1267 < _set1265.size; ++_i1267) { _elem1266 = new com.cinchapi.concourse.thrift.TObject(); _elem1266.read(iprot); _val1263.add(_elem1266); } } struct.success.put(_key1262, _val1263); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeyRecordsTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecordsTimestr_argsTupleSchemeFactory()); } public String key; // required public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyRecordsTimestr_args.class, metaDataMap); } public selectKeyRecordsTimestr_args() {} public selectKeyRecordsTimestr_args(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyRecordsTimestr_args( selectKeyRecordsTimestr_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyRecordsTimestr_args deepCopy() { return new selectKeyRecordsTimestr_args(this); } @Override public void clear() { this.key = null; this.records = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyRecordsTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public selectKeyRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public selectKeyRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyRecordsTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyRecordsTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeyRecordsTimestr_args) return this.equals((selectKeyRecordsTimestr_args) that); return false; } public boolean equals(selectKeyRecordsTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyRecordsTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "selectKeyRecordsTimestr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeyRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectKeyRecordsTimestr_argsStandardScheme getScheme() { return new selectKeyRecordsTimestr_argsStandardScheme(); } } private static class selectKeyRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1268 = iprot .readListBegin(); struct.records = new ArrayList( _list1268.size); long _elem1269; for (int _i1270 = 0; _i1270 < _list1268.size; ++_i1270) { _elem1269 = iprot.readI64(); struct.records.add(_elem1269); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1271 : struct.records) { oprot.writeI64(_iter1271); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectKeyRecordsTimestr_argsTupleScheme getScheme() { return new selectKeyRecordsTimestr_argsTupleScheme(); } } private static class selectKeyRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1272 : struct.records) { oprot.writeI64(_iter1272); } } } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list1273 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1273.size); long _elem1274; for (int _i1275 = 0; _i1275 < _list1273.size; ++_i1275) { _elem1274 = iprot.readI64(); struct.records.add(_elem1274); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyRecordsTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecordsTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyRecordsTimestr_result.class, metaDataMap); } public selectKeyRecordsTimestr_result() {} public selectKeyRecordsTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public selectKeyRecordsTimestr_result( selectKeyRecordsTimestr_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeyRecordsTimestr_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyRecordsTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyRecordsTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeyRecordsTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public selectKeyRecordsTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeyRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectKeyRecordsTimestr_resultStandardScheme getScheme() { return new selectKeyRecordsTimestr_resultStandardScheme(); } } private static class selectKeyRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1276 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map1276.size); long _key1277; Set _val1278; for (int _i1279 = 0; _i1279 < _map1276.size; ++_i1279) { _key1277 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1280 = iprot .readSetBegin(); _val1278 = new LinkedHashSet( 2 * _set1280.size); com.cinchapi.concourse.thrift.TObject _elem1281; for (int _i1282 = 0; _i1282 < _set1280.size; ++_i1282) { _elem1281 = new com.cinchapi.concourse.thrift.TObject(); _elem1281.read(iprot); _val1278.add(_elem1281); } iprot.readSetEnd(); } struct.success.put(_key1277, _val1278); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1283 : struct.success .entrySet()) { oprot.writeI64(_iter1283.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1283.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1284 : _iter1283 .getValue()) { _iter1284.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectKeyRecordsTimestr_resultTupleScheme getScheme() { return new selectKeyRecordsTimestr_resultTupleScheme(); } } private static class selectKeyRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1285 : struct.success .entrySet()) { oprot.writeI64(_iter1285.getKey()); { oprot.writeI32(_iter1285.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1286 : _iter1285 .getValue()) { _iter1286.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1287 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map1287.size); long _key1288; Set _val1289; for (int _i1290 = 0; _i1290 < _map1287.size; ++_i1290) { _key1288 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1291 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1289 = new LinkedHashSet( 2 * _set1291.size); com.cinchapi.concourse.thrift.TObject _elem1292; for (int _i1293 = 0; _i1293 < _set1291.size; ++_i1293) { _elem1292 = new com.cinchapi.concourse.thrift.TObject(); _elem1292.read(iprot); _val1289.add(_elem1292); } } struct.success.put(_key1288, _val1289); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class selectKeysRecordsTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecordsTime_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysRecordsTime_args.class, metaDataMap); } public selectKeysRecordsTime_args() {} public selectKeysRecordsTime_args(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysRecordsTime_args(selectKeysRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysRecordsTime_args deepCopy() { return new selectKeysRecordsTime_args(this); } @Override public void clear() { this.keys = null; this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysRecordsTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public selectKeysRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public selectKeysRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysRecordsTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysRecordsTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeysRecordsTime_args) return this.equals((selectKeysRecordsTime_args) that); return false; } public boolean equals(selectKeysRecordsTime_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysRecordsTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectKeysRecordsTime_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeysRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public selectKeysRecordsTime_argsStandardScheme getScheme() { return new selectKeysRecordsTime_argsStandardScheme(); } } private static class selectKeysRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecordsTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1294 = iprot .readListBegin(); struct.keys = new ArrayList( _list1294.size); String _elem1295; for (int _i1296 = 0; _i1296 < _list1294.size; ++_i1296) { _elem1295 = iprot.readString(); struct.keys.add(_elem1295); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1297 = iprot .readListBegin(); struct.records = new ArrayList( _list1297.size); long _elem1298; for (int _i1299 = 0; _i1299 < _list1297.size; ++_i1299) { _elem1298 = iprot.readI64(); struct.records.add(_elem1298); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeysRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1300 : struct.keys) { oprot.writeString(_iter1300); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1301 : struct.records) { oprot.writeI64(_iter1301); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public selectKeysRecordsTime_argsTupleScheme getScheme() { return new selectKeysRecordsTime_argsTupleScheme(); } } private static class selectKeysRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1302 : struct.keys) { oprot.writeString(_iter1302); } } } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1303 : struct.records) { oprot.writeI64(_iter1303); } } } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list1304 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1304.size); String _elem1305; for (int _i1306 = 0; _i1306 < _list1304.size; ++_i1306) { _elem1305 = iprot.readString(); struct.keys.add(_elem1305); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list1307 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1307.size); long _elem1308; for (int _i1309 = 0; _i1309 < _list1307.size; ++_i1309) { _elem1308 = iprot.readI64(); struct.records.add(_elem1308); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysRecordsTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecordsTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysRecordsTime_result.class, metaDataMap); } public selectKeysRecordsTime_result() {} public selectKeysRecordsTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeysRecordsTime_result( selectKeysRecordsTime_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public selectKeysRecordsTime_result deepCopy() { return new selectKeysRecordsTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectKeysRecordsTime_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysRecordsTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysRecordsTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public selectKeysRecordsTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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( "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; 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 selectKeysRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public selectKeysRecordsTime_resultStandardScheme getScheme() { return new selectKeysRecordsTime_resultStandardScheme(); } } private static class selectKeysRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecordsTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1310 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map1310.size); long _key1311; Map> _val1312; for (int _i1313 = 0; _i1313 < _map1310.size; ++_i1313) { _key1311 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1314 = iprot .readMapBegin(); _val1312 = new LinkedHashMap>( 2 * _map1314.size); String _key1315; Set _val1316; for (int _i1317 = 0; _i1317 < _map1314.size; ++_i1317) { _key1315 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1318 = iprot .readSetBegin(); _val1316 = new LinkedHashSet( 2 * _set1318.size); com.cinchapi.concourse.thrift.TObject _elem1319; for (int _i1320 = 0; _i1320 < _set1318.size; ++_i1320) { _elem1319 = new com.cinchapi.concourse.thrift.TObject(); _elem1319.read(iprot); _val1316.add(_elem1319); } iprot.readSetEnd(); } _val1312.put(_key1315, _val1316); } iprot.readMapEnd(); } struct.success.put(_key1311, _val1312); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, selectKeysRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1321 : struct.success .entrySet()) { oprot.writeI64(_iter1321.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1321.getValue().size())); for (Map.Entry> _iter1322 : _iter1321 .getValue().entrySet()) { oprot.writeString(_iter1322.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1322.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter1323 : _iter1322 .getValue()) { _iter1323.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public selectKeysRecordsTime_resultTupleScheme getScheme() { return new selectKeysRecordsTime_resultTupleScheme(); } } private static class selectKeysRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1324 : struct.success .entrySet()) { oprot.writeI64(_iter1324.getKey()); { oprot.writeI32(_iter1324.getValue().size()); for (Map.Entry> _iter1325 : _iter1324 .getValue().entrySet()) { oprot.writeString(_iter1325.getKey()); { oprot.writeI32( _iter1325.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1326 : _iter1325 .getValue()) { _iter1326.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1327 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map1327.size); long _key1328; Map> _val1329; for (int _i1330 = 0; _i1330 < _map1327.size; ++_i1330) { _key1328 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1331 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1329 = new LinkedHashMap>( 2 * _map1331.size); String _key1332; Set _val1333; for (int _i1334 = 0; _i1334 < _map1331.size; ++_i1334) { _key1332 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1335 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1333 = new LinkedHashSet( 2 * _set1335.size); com.cinchapi.concourse.thrift.TObject _elem1336; for (int _i1337 = 0; _i1337 < _set1335.size; ++_i1337) { _elem1336 = new com.cinchapi.concourse.thrift.TObject(); _elem1336.read(iprot); _val1333.add(_elem1336); } } _val1329.put(_key1332, _val1333); } } struct.success.put(_key1328, _val1329); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeysRecordsTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecordsTimestr_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysRecordsTimestr_args.class, metaDataMap); } public selectKeysRecordsTimestr_args() {} public selectKeysRecordsTimestr_args(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysRecordsTimestr_args( selectKeysRecordsTimestr_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysRecordsTimestr_args deepCopy() { return new selectKeysRecordsTimestr_args(this); } @Override public void clear() { this.keys = null; this.records = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysRecordsTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public selectKeysRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public selectKeysRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysRecordsTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysRecordsTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysRecordsTimestr_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeysRecordsTimestr_args) return this.equals((selectKeysRecordsTimestr_args) that); return false; } public boolean equals(selectKeysRecordsTimestr_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysRecordsTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "selectKeysRecordsTimestr_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeysRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectKeysRecordsTimestr_argsStandardScheme getScheme() { return new selectKeysRecordsTimestr_argsStandardScheme(); } } private static class selectKeysRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1338 = iprot .readListBegin(); struct.keys = new ArrayList( _list1338.size); String _elem1339; for (int _i1340 = 0; _i1340 < _list1338.size; ++_i1340) { _elem1339 = iprot.readString(); struct.keys.add(_elem1339); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1341 = iprot .readListBegin(); struct.records = new ArrayList( _list1341.size); long _elem1342; for (int _i1343 = 0; _i1343 < _list1341.size; ++_i1343) { _elem1342 = iprot.readI64(); struct.records.add(_elem1342); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1344 : struct.keys) { oprot.writeString(_iter1344); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1345 : struct.records) { oprot.writeI64(_iter1345); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectKeysRecordsTimestr_argsTupleScheme getScheme() { return new selectKeysRecordsTimestr_argsTupleScheme(); } } private static class selectKeysRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1346 : struct.keys) { oprot.writeString(_iter1346); } } } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1347 : struct.records) { oprot.writeI64(_iter1347); } } } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list1348 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1348.size); String _elem1349; for (int _i1350 = 0; _i1350 < _list1348.size; ++_i1350) { _elem1349 = iprot.readString(); struct.keys.add(_elem1349); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list1351 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1351.size); long _elem1352; for (int _i1353 = 0; _i1353 < _list1351.size; ++_i1353) { _elem1352 = iprot.readI64(); struct.records.add(_elem1352); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysRecordsTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecordsTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysRecordsTimestr_result.class, metaDataMap); } public selectKeysRecordsTimestr_result() {} public selectKeysRecordsTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public selectKeysRecordsTimestr_result( selectKeysRecordsTimestr_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectKeysRecordsTimestr_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysRecordsTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysRecordsTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeysRecordsTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public selectKeysRecordsTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeysRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectKeysRecordsTimestr_resultStandardScheme getScheme() { return new selectKeysRecordsTimestr_resultStandardScheme(); } } private static class selectKeysRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1354 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map1354.size); long _key1355; Map> _val1356; for (int _i1357 = 0; _i1357 < _map1354.size; ++_i1357) { _key1355 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1358 = iprot .readMapBegin(); _val1356 = new LinkedHashMap>( 2 * _map1358.size); String _key1359; Set _val1360; for (int _i1361 = 0; _i1361 < _map1358.size; ++_i1361) { _key1359 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1362 = iprot .readSetBegin(); _val1360 = new LinkedHashSet( 2 * _set1362.size); com.cinchapi.concourse.thrift.TObject _elem1363; for (int _i1364 = 0; _i1364 < _set1362.size; ++_i1364) { _elem1363 = new com.cinchapi.concourse.thrift.TObject(); _elem1363.read(iprot); _val1360.add(_elem1363); } iprot.readSetEnd(); } _val1356.put(_key1359, _val1360); } iprot.readMapEnd(); } struct.success.put(_key1355, _val1356); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1365 : struct.success .entrySet()) { oprot.writeI64(_iter1365.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1365.getValue().size())); for (Map.Entry> _iter1366 : _iter1365 .getValue().entrySet()) { oprot.writeString(_iter1366.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1366.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter1367 : _iter1366 .getValue()) { _iter1367.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectKeysRecordsTimestr_resultTupleScheme getScheme() { return new selectKeysRecordsTimestr_resultTupleScheme(); } } private static class selectKeysRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1368 : struct.success .entrySet()) { oprot.writeI64(_iter1368.getKey()); { oprot.writeI32(_iter1368.getValue().size()); for (Map.Entry> _iter1369 : _iter1368 .getValue().entrySet()) { oprot.writeString(_iter1369.getKey()); { oprot.writeI32( _iter1369.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1370 : _iter1369 .getValue()) { _iter1370.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1371 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map1371.size); long _key1372; Map> _val1373; for (int _i1374 = 0; _i1374 < _map1371.size; ++_i1374) { _key1372 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1375 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1373 = new LinkedHashMap>( 2 * _map1375.size); String _key1376; Set _val1377; for (int _i1378 = 0; _i1378 < _map1375.size; ++_i1378) { _key1376 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1379 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1377 = new LinkedHashSet( 2 * _set1379.size); com.cinchapi.concourse.thrift.TObject _elem1380; for (int _i1381 = 0; _i1381 < _set1379.size; ++_i1381) { _elem1380 = new com.cinchapi.concourse.thrift.TObject(); _elem1380.read(iprot); _val1377.add(_elem1380); } } _val1373.put(_key1376, _val1377); } } struct.success.put(_key1372, _val1373); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class selectCriteria_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectCriteria_args"); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCriteria_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CRITERIA((short) 1, "criteria"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CRITERIA return CRITERIA; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectCriteria_args.class, metaDataMap); } public selectCriteria_args() {} public selectCriteria_args( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectCriteria_args(selectCriteria_args other) { if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectCriteria_args deepCopy() { return new selectCriteria_args(this); } @Override public void clear() { this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public selectCriteria_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectCriteria_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectCriteria_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectCriteria_args) return this.equals((selectCriteria_args) that); return false; } public boolean equals(selectCriteria_args that) { if(that == null) return false; boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectCriteria_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectCriteria_args("); boolean first = true; sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectCriteria_argsStandardSchemeFactory implements SchemeFactory { public selectCriteria_argsStandardScheme getScheme() { return new selectCriteria_argsStandardScheme(); } } private static class selectCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCriteria_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCriteria_argsTupleSchemeFactory implements SchemeFactory { public selectCriteria_argsTupleScheme getScheme() { return new selectCriteria_argsTupleScheme(); } } private static class selectCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCriteria()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectCriteria_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCriteria_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectCriteria_result.class, metaDataMap); } public selectCriteria_result() {} public selectCriteria_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectCriteria_result(selectCriteria_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public selectCriteria_result deepCopy() { return new selectCriteria_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectCriteria_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectCriteria_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectCriteria_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public selectCriteria_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 selectCriteria_resultStandardSchemeFactory implements SchemeFactory { public selectCriteria_resultStandardScheme getScheme() { return new selectCriteria_resultStandardScheme(); } } private static class selectCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCriteria_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1382 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map1382.size); long _key1383; Map> _val1384; for (int _i1385 = 0; _i1385 < _map1382.size; ++_i1385) { _key1383 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1386 = iprot .readMapBegin(); _val1384 = new LinkedHashMap>( 2 * _map1386.size); String _key1387; Set _val1388; for (int _i1389 = 0; _i1389 < _map1386.size; ++_i1389) { _key1387 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1390 = iprot .readSetBegin(); _val1388 = new LinkedHashSet( 2 * _set1390.size); com.cinchapi.concourse.thrift.TObject _elem1391; for (int _i1392 = 0; _i1392 < _set1390.size; ++_i1392) { _elem1391 = new com.cinchapi.concourse.thrift.TObject(); _elem1391.read(iprot); _val1388.add(_elem1391); } iprot.readSetEnd(); } _val1384.put(_key1387, _val1388); } iprot.readMapEnd(); } struct.success.put(_key1383, _val1384); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, selectCriteria_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1393 : struct.success .entrySet()) { oprot.writeI64(_iter1393.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1393.getValue().size())); for (Map.Entry> _iter1394 : _iter1393 .getValue().entrySet()) { oprot.writeString(_iter1394.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1394.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter1395 : _iter1394 .getValue()) { _iter1395.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCriteria_resultTupleSchemeFactory implements SchemeFactory { public selectCriteria_resultTupleScheme getScheme() { return new selectCriteria_resultTupleScheme(); } } private static class selectCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1396 : struct.success .entrySet()) { oprot.writeI64(_iter1396.getKey()); { oprot.writeI32(_iter1396.getValue().size()); for (Map.Entry> _iter1397 : _iter1396 .getValue().entrySet()) { oprot.writeString(_iter1397.getKey()); { oprot.writeI32( _iter1397.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1398 : _iter1397 .getValue()) { _iter1398.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1399 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map1399.size); long _key1400; Map> _val1401; for (int _i1402 = 0; _i1402 < _map1399.size; ++_i1402) { _key1400 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1403 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1401 = new LinkedHashMap>( 2 * _map1403.size); String _key1404; Set _val1405; for (int _i1406 = 0; _i1406 < _map1403.size; ++_i1406) { _key1404 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1407 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1405 = new LinkedHashSet( 2 * _set1407.size); com.cinchapi.concourse.thrift.TObject _elem1408; for (int _i1409 = 0; _i1409 < _set1407.size; ++_i1409) { _elem1408 = new com.cinchapi.concourse.thrift.TObject(); _elem1408.read(iprot); _val1405.add(_elem1408); } } _val1401.put(_key1404, _val1405); } } struct.success.put(_key1400, _val1401); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectCcl_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectCcl_args"); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCcl_argsTupleSchemeFactory()); } public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CCL((short) 1, "ccl"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CCL return CCL; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(selectCcl_args.class, metaDataMap); } public selectCcl_args() {} public selectCcl_args(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectCcl_args(selectCcl_args other) { if(other.isSetCcl()) { this.ccl = other.ccl; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectCcl_args deepCopy() { return new selectCcl_args(this); } @Override public void clear() { this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public String getCcl() { return this.ccl; } public selectCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectCcl_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectCcl_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectCcl_args) return this.equals((selectCcl_args) that); return false; } public boolean equals(selectCcl_args that) { if(that == null) return false; boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectCcl_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectCcl_args("); boolean first = true; sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectCcl_argsStandardSchemeFactory implements SchemeFactory { public selectCcl_argsStandardScheme getScheme() { return new selectCcl_argsStandardScheme(); } } private static class selectCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCcl_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCcl_argsTupleSchemeFactory implements SchemeFactory { public selectCcl_argsTupleScheme getScheme() { return new selectCcl_argsTupleScheme(); } } private static class selectCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCcl()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectCcl_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCcl_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(selectCcl_result.class, metaDataMap); } public selectCcl_result() {} public selectCcl_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public selectCcl_result(selectCcl_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectCcl_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectCcl_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectCcl_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectCcl_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public selectCcl_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectCcl_resultStandardSchemeFactory implements SchemeFactory { public selectCcl_resultStandardScheme getScheme() { return new selectCcl_resultStandardScheme(); } } private static class selectCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCcl_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1410 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map1410.size); long _key1411; Map> _val1412; for (int _i1413 = 0; _i1413 < _map1410.size; ++_i1413) { _key1411 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1414 = iprot .readMapBegin(); _val1412 = new LinkedHashMap>( 2 * _map1414.size); String _key1415; Set _val1416; for (int _i1417 = 0; _i1417 < _map1414.size; ++_i1417) { _key1415 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1418 = iprot .readSetBegin(); _val1416 = new LinkedHashSet( 2 * _set1418.size); com.cinchapi.concourse.thrift.TObject _elem1419; for (int _i1420 = 0; _i1420 < _set1418.size; ++_i1420) { _elem1419 = new com.cinchapi.concourse.thrift.TObject(); _elem1419.read(iprot); _val1416.add(_elem1419); } iprot.readSetEnd(); } _val1412.put(_key1415, _val1416); } iprot.readMapEnd(); } struct.success.put(_key1411, _val1412); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1421 : struct.success .entrySet()) { oprot.writeI64(_iter1421.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1421.getValue().size())); for (Map.Entry> _iter1422 : _iter1421 .getValue().entrySet()) { oprot.writeString(_iter1422.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1422.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter1423 : _iter1422 .getValue()) { _iter1423.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCcl_resultTupleSchemeFactory implements SchemeFactory { public selectCcl_resultTupleScheme getScheme() { return new selectCcl_resultTupleScheme(); } } private static class selectCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1424 : struct.success .entrySet()) { oprot.writeI64(_iter1424.getKey()); { oprot.writeI32(_iter1424.getValue().size()); for (Map.Entry> _iter1425 : _iter1424 .getValue().entrySet()) { oprot.writeString(_iter1425.getKey()); { oprot.writeI32( _iter1425.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1426 : _iter1425 .getValue()) { _iter1426.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1427 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map1427.size); long _key1428; Map> _val1429; for (int _i1430 = 0; _i1430 < _map1427.size; ++_i1430) { _key1428 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1431 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1429 = new LinkedHashMap>( 2 * _map1431.size); String _key1432; Set _val1433; for (int _i1434 = 0; _i1434 < _map1431.size; ++_i1434) { _key1432 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1435 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1433 = new LinkedHashSet( 2 * _set1435.size); com.cinchapi.concourse.thrift.TObject _elem1436; for (int _i1437 = 0; _i1437 < _set1435.size; ++_i1437) { _elem1436 = new com.cinchapi.concourse.thrift.TObject(); _elem1436.read(iprot); _val1433.add(_elem1436); } } _val1429.put(_key1432, _val1433); } } struct.success.put(_key1428, _val1429); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class selectCriteriaTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectCriteriaTime_args"); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCriteriaTime_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CRITERIA((short) 1, "criteria"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CRITERIA return CRITERIA; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectCriteriaTime_args.class, metaDataMap); } public selectCriteriaTime_args() {} public selectCriteriaTime_args( com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectCriteriaTime_args(selectCriteriaTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectCriteriaTime_args deepCopy() { return new selectCriteriaTime_args(this); } @Override public void clear() { this.criteria = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public selectCriteriaTime_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public long getTimestamp() { return this.timestamp; } public selectCriteriaTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectCriteriaTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectCriteriaTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectCriteriaTime_args) return this.equals((selectCriteriaTime_args) that); return false; } public boolean equals(selectCriteriaTime_args that) { if(that == null) return false; boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectCriteriaTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectCriteriaTime_args("); boolean first = true; sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public selectCriteriaTime_argsStandardScheme getScheme() { return new selectCriteriaTime_argsStandardScheme(); } } private static class selectCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCriteriaTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectCriteriaTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public selectCriteriaTime_argsTupleScheme getScheme() { return new selectCriteriaTime_argsTupleScheme(); } } private static class selectCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCriteria()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectCriteriaTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCriteriaTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectCriteriaTime_result.class, metaDataMap); } public selectCriteriaTime_result() {} public selectCriteriaTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectCriteriaTime_result(selectCriteriaTime_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public selectCriteriaTime_result deepCopy() { return new selectCriteriaTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectCriteriaTime_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectCriteriaTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectCriteriaTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public selectCriteriaTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 selectCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public selectCriteriaTime_resultStandardScheme getScheme() { return new selectCriteriaTime_resultStandardScheme(); } } private static class selectCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCriteriaTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1438 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map1438.size); long _key1439; Map> _val1440; for (int _i1441 = 0; _i1441 < _map1438.size; ++_i1441) { _key1439 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1442 = iprot .readMapBegin(); _val1440 = new LinkedHashMap>( 2 * _map1442.size); String _key1443; Set _val1444; for (int _i1445 = 0; _i1445 < _map1442.size; ++_i1445) { _key1443 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1446 = iprot .readSetBegin(); _val1444 = new LinkedHashSet( 2 * _set1446.size); com.cinchapi.concourse.thrift.TObject _elem1447; for (int _i1448 = 0; _i1448 < _set1446.size; ++_i1448) { _elem1447 = new com.cinchapi.concourse.thrift.TObject(); _elem1447.read(iprot); _val1444.add(_elem1447); } iprot.readSetEnd(); } _val1440.put(_key1443, _val1444); } iprot.readMapEnd(); } struct.success.put(_key1439, _val1440); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, selectCriteriaTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1449 : struct.success .entrySet()) { oprot.writeI64(_iter1449.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1449.getValue().size())); for (Map.Entry> _iter1450 : _iter1449 .getValue().entrySet()) { oprot.writeString(_iter1450.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1450.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter1451 : _iter1450 .getValue()) { _iter1451.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public selectCriteriaTime_resultTupleScheme getScheme() { return new selectCriteriaTime_resultTupleScheme(); } } private static class selectCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1452 : struct.success .entrySet()) { oprot.writeI64(_iter1452.getKey()); { oprot.writeI32(_iter1452.getValue().size()); for (Map.Entry> _iter1453 : _iter1452 .getValue().entrySet()) { oprot.writeString(_iter1453.getKey()); { oprot.writeI32( _iter1453.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1454 : _iter1453 .getValue()) { _iter1454.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1455 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map1455.size); long _key1456; Map> _val1457; for (int _i1458 = 0; _i1458 < _map1455.size; ++_i1458) { _key1456 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1459 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1457 = new LinkedHashMap>( 2 * _map1459.size); String _key1460; Set _val1461; for (int _i1462 = 0; _i1462 < _map1459.size; ++_i1462) { _key1460 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1463 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1461 = new LinkedHashSet( 2 * _set1463.size); com.cinchapi.concourse.thrift.TObject _elem1464; for (int _i1465 = 0; _i1465 < _set1463.size; ++_i1465) { _elem1464 = new com.cinchapi.concourse.thrift.TObject(); _elem1464.read(iprot); _val1461.add(_elem1464); } } _val1457.put(_key1460, _val1461); } } struct.success.put(_key1456, _val1457); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectCriteriaTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectCriteriaTimestr_args"); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCriteriaTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCriteriaTimestr_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CRITERIA((short) 1, "criteria"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CRITERIA return CRITERIA; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectCriteriaTimestr_args.class, metaDataMap); } public selectCriteriaTimestr_args() {} public selectCriteriaTimestr_args( com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectCriteriaTimestr_args(selectCriteriaTimestr_args other) { if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectCriteriaTimestr_args deepCopy() { return new selectCriteriaTimestr_args(this); } @Override public void clear() { this.criteria = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public selectCriteriaTimestr_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public String getTimestamp() { return this.timestamp; } public selectCriteriaTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectCriteriaTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectCriteriaTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectCriteriaTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectCriteriaTimestr_args) return this.equals((selectCriteriaTimestr_args) that); return false; } public boolean equals(selectCriteriaTimestr_args that) { if(that == null) return false; boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectCriteriaTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectCriteriaTimestr_args("); boolean first = true; sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectCriteriaTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectCriteriaTimestr_argsStandardScheme getScheme() { return new selectCriteriaTimestr_argsStandardScheme(); } } private static class selectCriteriaTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCriteriaTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectCriteriaTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCriteriaTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectCriteriaTimestr_argsTupleScheme getScheme() { return new selectCriteriaTimestr_argsTupleScheme(); } } private static class selectCriteriaTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCriteria()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectCriteriaTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectCriteriaTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCriteriaTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCriteriaTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectCriteriaTimestr_result.class, metaDataMap); } public selectCriteriaTimestr_result() {} public selectCriteriaTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public selectCriteriaTimestr_result( selectCriteriaTimestr_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectCriteriaTimestr_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectCriteriaTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectCriteriaTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectCriteriaTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public selectCriteriaTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectCriteriaTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectCriteriaTimestr_resultStandardScheme getScheme() { return new selectCriteriaTimestr_resultStandardScheme(); } } private static class selectCriteriaTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCriteriaTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1466 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map1466.size); long _key1467; Map> _val1468; for (int _i1469 = 0; _i1469 < _map1466.size; ++_i1469) { _key1467 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1470 = iprot .readMapBegin(); _val1468 = new LinkedHashMap>( 2 * _map1470.size); String _key1471; Set _val1472; for (int _i1473 = 0; _i1473 < _map1470.size; ++_i1473) { _key1471 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1474 = iprot .readSetBegin(); _val1472 = new LinkedHashSet( 2 * _set1474.size); com.cinchapi.concourse.thrift.TObject _elem1475; for (int _i1476 = 0; _i1476 < _set1474.size; ++_i1476) { _elem1475 = new com.cinchapi.concourse.thrift.TObject(); _elem1475.read(iprot); _val1472.add(_elem1475); } iprot.readSetEnd(); } _val1468.put(_key1471, _val1472); } iprot.readMapEnd(); } struct.success.put(_key1467, _val1468); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectCriteriaTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1477 : struct.success .entrySet()) { oprot.writeI64(_iter1477.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1477.getValue().size())); for (Map.Entry> _iter1478 : _iter1477 .getValue().entrySet()) { oprot.writeString(_iter1478.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1478.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter1479 : _iter1478 .getValue()) { _iter1479.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCriteriaTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectCriteriaTimestr_resultTupleScheme getScheme() { return new selectCriteriaTimestr_resultTupleScheme(); } } private static class selectCriteriaTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1480 : struct.success .entrySet()) { oprot.writeI64(_iter1480.getKey()); { oprot.writeI32(_iter1480.getValue().size()); for (Map.Entry> _iter1481 : _iter1480 .getValue().entrySet()) { oprot.writeString(_iter1481.getKey()); { oprot.writeI32( _iter1481.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1482 : _iter1481 .getValue()) { _iter1482.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1483 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map1483.size); long _key1484; Map> _val1485; for (int _i1486 = 0; _i1486 < _map1483.size; ++_i1486) { _key1484 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1487 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1485 = new LinkedHashMap>( 2 * _map1487.size); String _key1488; Set _val1489; for (int _i1490 = 0; _i1490 < _map1487.size; ++_i1490) { _key1488 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1491 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1489 = new LinkedHashSet( 2 * _set1491.size); com.cinchapi.concourse.thrift.TObject _elem1492; for (int _i1493 = 0; _i1493 < _set1491.size; ++_i1493) { _elem1492 = new com.cinchapi.concourse.thrift.TObject(); _elem1492.read(iprot); _val1489.add(_elem1492); } } _val1485.put(_key1488, _val1489); } } struct.success.put(_key1484, _val1485); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class selectCclTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectCclTime_args"); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCclTime_argsTupleSchemeFactory()); } public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CCL((short) 1, "ccl"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CCL return CCL; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectCclTime_args.class, metaDataMap); } public selectCclTime_args() {} public selectCclTime_args(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectCclTime_args(selectCclTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetCcl()) { this.ccl = other.ccl; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectCclTime_args deepCopy() { return new selectCclTime_args(this); } @Override public void clear() { this.ccl = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getCcl() { return this.ccl; } public selectCclTime_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public long getTimestamp() { return this.timestamp; } public selectCclTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectCclTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectCclTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectCclTime_args) return this.equals((selectCclTime_args) that); return false; } public boolean equals(selectCclTime_args that) { if(that == null) return false; boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectCclTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectCclTime_args("); boolean first = true; sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectCclTime_argsStandardSchemeFactory implements SchemeFactory { public selectCclTime_argsStandardScheme getScheme() { return new selectCclTime_argsStandardScheme(); } } private static class selectCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCclTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectCclTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCclTime_argsTupleSchemeFactory implements SchemeFactory { public selectCclTime_argsTupleScheme getScheme() { return new selectCclTime_argsTupleScheme(); } } private static class selectCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCcl()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectCclTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectCclTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCclTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectCclTime_result.class, metaDataMap); } public selectCclTime_result() {} public selectCclTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public selectCclTime_result(selectCclTime_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectCclTime_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectCclTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectCclTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectCclTime_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public selectCclTime_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectCclTime_resultStandardSchemeFactory implements SchemeFactory { public selectCclTime_resultStandardScheme getScheme() { return new selectCclTime_resultStandardScheme(); } } private static class selectCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCclTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1494 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map1494.size); long _key1495; Map> _val1496; for (int _i1497 = 0; _i1497 < _map1494.size; ++_i1497) { _key1495 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1498 = iprot .readMapBegin(); _val1496 = new LinkedHashMap>( 2 * _map1498.size); String _key1499; Set _val1500; for (int _i1501 = 0; _i1501 < _map1498.size; ++_i1501) { _key1499 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1502 = iprot .readSetBegin(); _val1500 = new LinkedHashSet( 2 * _set1502.size); com.cinchapi.concourse.thrift.TObject _elem1503; for (int _i1504 = 0; _i1504 < _set1502.size; ++_i1504) { _elem1503 = new com.cinchapi.concourse.thrift.TObject(); _elem1503.read(iprot); _val1500.add(_elem1503); } iprot.readSetEnd(); } _val1496.put(_key1499, _val1500); } iprot.readMapEnd(); } struct.success.put(_key1495, _val1496); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectCclTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1505 : struct.success .entrySet()) { oprot.writeI64(_iter1505.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1505.getValue().size())); for (Map.Entry> _iter1506 : _iter1505 .getValue().entrySet()) { oprot.writeString(_iter1506.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1506.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter1507 : _iter1506 .getValue()) { _iter1507.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCclTime_resultTupleSchemeFactory implements SchemeFactory { public selectCclTime_resultTupleScheme getScheme() { return new selectCclTime_resultTupleScheme(); } } private static class selectCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1508 : struct.success .entrySet()) { oprot.writeI64(_iter1508.getKey()); { oprot.writeI32(_iter1508.getValue().size()); for (Map.Entry> _iter1509 : _iter1508 .getValue().entrySet()) { oprot.writeString(_iter1509.getKey()); { oprot.writeI32( _iter1509.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1510 : _iter1509 .getValue()) { _iter1510.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1511 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map1511.size); long _key1512; Map> _val1513; for (int _i1514 = 0; _i1514 < _map1511.size; ++_i1514) { _key1512 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1515 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1513 = new LinkedHashMap>( 2 * _map1515.size); String _key1516; Set _val1517; for (int _i1518 = 0; _i1518 < _map1515.size; ++_i1518) { _key1516 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1519 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1517 = new LinkedHashSet( 2 * _set1519.size); com.cinchapi.concourse.thrift.TObject _elem1520; for (int _i1521 = 0; _i1521 < _set1519.size; ++_i1521) { _elem1520 = new com.cinchapi.concourse.thrift.TObject(); _elem1520.read(iprot); _val1517.add(_elem1520); } } _val1513.put(_key1516, _val1517); } } struct.success.put(_key1512, _val1513); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class selectCclTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectCclTimestr_args"); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCclTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCclTimestr_argsTupleSchemeFactory()); } public String ccl; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CCL((short) 1, "ccl"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CCL return CCL; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectCclTimestr_args.class, metaDataMap); } public selectCclTimestr_args() {} public selectCclTimestr_args(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectCclTimestr_args(selectCclTimestr_args other) { if(other.isSetCcl()) { this.ccl = other.ccl; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectCclTimestr_args deepCopy() { return new selectCclTimestr_args(this); } @Override public void clear() { this.ccl = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getCcl() { return this.ccl; } public selectCclTimestr_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public String getTimestamp() { return this.timestamp; } public selectCclTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectCclTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectCclTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectCclTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectCclTimestr_args) return this.equals((selectCclTimestr_args) that); return false; } public boolean equals(selectCclTimestr_args that) { if(that == null) return false; boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectCclTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectCclTimestr_args("); boolean first = true; sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectCclTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectCclTimestr_argsStandardScheme getScheme() { return new selectCclTimestr_argsStandardScheme(); } } private static class selectCclTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCclTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectCclTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCclTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectCclTimestr_argsTupleScheme getScheme() { return new selectCclTimestr_argsTupleScheme(); } } private static class selectCclTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCcl()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectCclTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectCclTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCclTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCclTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectCclTimestr_result.class, metaDataMap); } public selectCclTimestr_result() {} public selectCclTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public selectCclTimestr_result(selectCclTimestr_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectCclTimestr_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectCclTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectCclTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectCclTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public selectCclTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectCclTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectCclTimestr_resultStandardScheme getScheme() { return new selectCclTimestr_resultStandardScheme(); } } private static class selectCclTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCclTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1522 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map1522.size); long _key1523; Map> _val1524; for (int _i1525 = 0; _i1525 < _map1522.size; ++_i1525) { _key1523 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1526 = iprot .readMapBegin(); _val1524 = new LinkedHashMap>( 2 * _map1526.size); String _key1527; Set _val1528; for (int _i1529 = 0; _i1529 < _map1526.size; ++_i1529) { _key1527 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1530 = iprot .readSetBegin(); _val1528 = new LinkedHashSet( 2 * _set1530.size); com.cinchapi.concourse.thrift.TObject _elem1531; for (int _i1532 = 0; _i1532 < _set1530.size; ++_i1532) { _elem1531 = new com.cinchapi.concourse.thrift.TObject(); _elem1531.read(iprot); _val1528.add(_elem1531); } iprot.readSetEnd(); } _val1524.put(_key1527, _val1528); } iprot.readMapEnd(); } struct.success.put(_key1523, _val1524); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectCclTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1533 : struct.success .entrySet()) { oprot.writeI64(_iter1533.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1533.getValue().size())); for (Map.Entry> _iter1534 : _iter1533 .getValue().entrySet()) { oprot.writeString(_iter1534.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1534.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter1535 : _iter1534 .getValue()) { _iter1535.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCclTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectCclTimestr_resultTupleScheme getScheme() { return new selectCclTimestr_resultTupleScheme(); } } private static class selectCclTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1536 : struct.success .entrySet()) { oprot.writeI64(_iter1536.getKey()); { oprot.writeI32(_iter1536.getValue().size()); for (Map.Entry> _iter1537 : _iter1536 .getValue().entrySet()) { oprot.writeString(_iter1537.getKey()); { oprot.writeI32( _iter1537.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1538 : _iter1537 .getValue()) { _iter1538.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1539 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map1539.size); long _key1540; Map> _val1541; for (int _i1542 = 0; _i1542 < _map1539.size; ++_i1542) { _key1540 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1543 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1541 = new LinkedHashMap>( 2 * _map1543.size); String _key1544; Set _val1545; for (int _i1546 = 0; _i1546 < _map1543.size; ++_i1546) { _key1544 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1547 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1545 = new LinkedHashSet( 2 * _set1547.size); com.cinchapi.concourse.thrift.TObject _elem1548; for (int _i1549 = 0; _i1549 < _set1547.size; ++_i1549) { _elem1548 = new com.cinchapi.concourse.thrift.TObject(); _elem1548.read(iprot); _val1545.add(_elem1548); } } _val1541.put(_key1544, _val1545); } } struct.success.put(_key1540, _val1541); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class selectKeyCriteria_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyCriteria_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCriteria_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyCriteria_args.class, metaDataMap); } public selectKeyCriteria_args() {} public selectKeyCriteria_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyCriteria_args(selectKeyCriteria_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyCriteria_args deepCopy() { return new selectKeyCriteria_args(this); } @Override public void clear() { this.key = null; this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyCriteria_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public selectKeyCriteria_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyCriteria_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyCriteria_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeyCriteria_args) return this.equals((selectKeyCriteria_args) that); return false; } public boolean equals(selectKeyCriteria_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyCriteria_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectKeyCriteria_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeyCriteria_argsStandardSchemeFactory implements SchemeFactory { public selectKeyCriteria_argsStandardScheme getScheme() { return new selectKeyCriteria_argsStandardScheme(); } } private static class selectKeyCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCriteria_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeyCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCriteria_argsTupleSchemeFactory implements SchemeFactory { public selectKeyCriteria_argsTupleScheme getScheme() { return new selectKeyCriteria_argsTupleScheme(); } } private static class selectKeyCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyCriteria_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCriteria_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyCriteria_result.class, metaDataMap); } public selectKeyCriteria_result() {} public selectKeyCriteria_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeyCriteria_result(selectKeyCriteria_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public selectKeyCriteria_result deepCopy() { return new selectKeyCriteria_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeyCriteria_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyCriteria_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyCriteria_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public selectKeyCriteria_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 selectKeyCriteria_resultStandardSchemeFactory implements SchemeFactory { public selectKeyCriteria_resultStandardScheme getScheme() { return new selectKeyCriteria_resultStandardScheme(); } } private static class selectKeyCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCriteria_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1550 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map1550.size); long _key1551; Set _val1552; for (int _i1553 = 0; _i1553 < _map1550.size; ++_i1553) { _key1551 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1554 = iprot .readSetBegin(); _val1552 = new LinkedHashSet( 2 * _set1554.size); com.cinchapi.concourse.thrift.TObject _elem1555; for (int _i1556 = 0; _i1556 < _set1554.size; ++_i1556) { _elem1555 = new com.cinchapi.concourse.thrift.TObject(); _elem1555.read(iprot); _val1552.add(_elem1555); } iprot.readSetEnd(); } struct.success.put(_key1551, _val1552); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, selectKeyCriteria_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1557 : struct.success .entrySet()) { oprot.writeI64(_iter1557.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1557.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1558 : _iter1557 .getValue()) { _iter1558.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCriteria_resultTupleSchemeFactory implements SchemeFactory { public selectKeyCriteria_resultTupleScheme getScheme() { return new selectKeyCriteria_resultTupleScheme(); } } private static class selectKeyCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1559 : struct.success .entrySet()) { oprot.writeI64(_iter1559.getKey()); { oprot.writeI32(_iter1559.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1560 : _iter1559 .getValue()) { _iter1560.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1561 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map1561.size); long _key1562; Set _val1563; for (int _i1564 = 0; _i1564 < _map1561.size; ++_i1564) { _key1562 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1565 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1563 = new LinkedHashSet( 2 * _set1565.size); com.cinchapi.concourse.thrift.TObject _elem1566; for (int _i1567 = 0; _i1567 < _set1565.size; ++_i1567) { _elem1566 = new com.cinchapi.concourse.thrift.TObject(); _elem1566.read(iprot); _val1563.add(_elem1566); } } struct.success.put(_key1562, _val1563); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeyCcl_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyCcl_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCcl_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(selectKeyCcl_args.class, metaDataMap); } public selectKeyCcl_args() {} public selectKeyCcl_args(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyCcl_args(selectKeyCcl_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetCcl()) { this.ccl = other.ccl; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyCcl_args deepCopy() { return new selectKeyCcl_args(this); } @Override public void clear() { this.key = null; this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyCcl_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public String getCcl() { return this.ccl; } public selectKeyCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyCcl_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyCcl_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeyCcl_args) return this.equals((selectKeyCcl_args) that); return false; } public boolean equals(selectKeyCcl_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyCcl_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectKeyCcl_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeyCcl_argsStandardSchemeFactory implements SchemeFactory { public selectKeyCcl_argsStandardScheme getScheme() { return new selectKeyCcl_argsStandardScheme(); } } private static class selectKeyCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCcl_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeyCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCcl_argsTupleSchemeFactory implements SchemeFactory { public selectKeyCcl_argsTupleScheme getScheme() { return new selectKeyCcl_argsTupleScheme(); } } private static class selectKeyCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyCcl_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCcl_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyCcl_result.class, metaDataMap); } public selectKeyCcl_result() {} public selectKeyCcl_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public selectKeyCcl_result(selectKeyCcl_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeyCcl_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyCcl_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyCcl_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeyCcl_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public selectKeyCcl_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeyCcl_resultStandardSchemeFactory implements SchemeFactory { public selectKeyCcl_resultStandardScheme getScheme() { return new selectKeyCcl_resultStandardScheme(); } } private static class selectKeyCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCcl_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1568 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map1568.size); long _key1569; Set _val1570; for (int _i1571 = 0; _i1571 < _map1568.size; ++_i1571) { _key1569 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1572 = iprot .readSetBegin(); _val1570 = new LinkedHashSet( 2 * _set1572.size); com.cinchapi.concourse.thrift.TObject _elem1573; for (int _i1574 = 0; _i1574 < _set1572.size; ++_i1574) { _elem1573 = new com.cinchapi.concourse.thrift.TObject(); _elem1573.read(iprot); _val1570.add(_elem1573); } iprot.readSetEnd(); } struct.success.put(_key1569, _val1570); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeyCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1575 : struct.success .entrySet()) { oprot.writeI64(_iter1575.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1575.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1576 : _iter1575 .getValue()) { _iter1576.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCcl_resultTupleSchemeFactory implements SchemeFactory { public selectKeyCcl_resultTupleScheme getScheme() { return new selectKeyCcl_resultTupleScheme(); } } private static class selectKeyCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1577 : struct.success .entrySet()) { oprot.writeI64(_iter1577.getKey()); { oprot.writeI32(_iter1577.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1578 : _iter1577 .getValue()) { _iter1578.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1579 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map1579.size); long _key1580; Set _val1581; for (int _i1582 = 0; _i1582 < _map1579.size; ++_i1582) { _key1580 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1583 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1581 = new LinkedHashSet( 2 * _set1583.size); com.cinchapi.concourse.thrift.TObject _elem1584; for (int _i1585 = 0; _i1585 < _set1583.size; ++_i1585) { _elem1584 = new com.cinchapi.concourse.thrift.TObject(); _elem1584.read(iprot); _val1581.add(_elem1584); } } struct.success.put(_key1580, _val1581); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class selectKeyCriteriaTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyCriteriaTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCriteriaTime_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyCriteriaTime_args.class, metaDataMap); } public selectKeyCriteriaTime_args() {} public selectKeyCriteriaTime_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyCriteriaTime_args(selectKeyCriteriaTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyCriteriaTime_args deepCopy() { return new selectKeyCriteriaTime_args(this); } @Override public void clear() { this.key = null; this.criteria = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyCriteriaTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public selectKeyCriteriaTime_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public long getTimestamp() { return this.timestamp; } public selectKeyCriteriaTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyCriteriaTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyCriteriaTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeyCriteriaTime_args) return this.equals((selectKeyCriteriaTime_args) that); return false; } public boolean equals(selectKeyCriteriaTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyCriteriaTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectKeyCriteriaTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeyCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public selectKeyCriteriaTime_argsStandardScheme getScheme() { return new selectKeyCriteriaTime_argsStandardScheme(); } } private static class selectKeyCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCriteriaTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeyCriteriaTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public selectKeyCriteriaTime_argsTupleScheme getScheme() { return new selectKeyCriteriaTime_argsTupleScheme(); } } private static class selectKeyCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyCriteriaTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCriteriaTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyCriteriaTime_result.class, metaDataMap); } public selectKeyCriteriaTime_result() {} public selectKeyCriteriaTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeyCriteriaTime_result( selectKeyCriteriaTime_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public selectKeyCriteriaTime_result deepCopy() { return new selectKeyCriteriaTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeyCriteriaTime_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyCriteriaTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyCriteriaTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public selectKeyCriteriaTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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( "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; 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 selectKeyCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public selectKeyCriteriaTime_resultStandardScheme getScheme() { return new selectKeyCriteriaTime_resultStandardScheme(); } } private static class selectKeyCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCriteriaTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1586 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map1586.size); long _key1587; Set _val1588; for (int _i1589 = 0; _i1589 < _map1586.size; ++_i1589) { _key1587 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1590 = iprot .readSetBegin(); _val1588 = new LinkedHashSet( 2 * _set1590.size); com.cinchapi.concourse.thrift.TObject _elem1591; for (int _i1592 = 0; _i1592 < _set1590.size; ++_i1592) { _elem1591 = new com.cinchapi.concourse.thrift.TObject(); _elem1591.read(iprot); _val1588.add(_elem1591); } iprot.readSetEnd(); } struct.success.put(_key1587, _val1588); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, selectKeyCriteriaTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1593 : struct.success .entrySet()) { oprot.writeI64(_iter1593.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1593.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1594 : _iter1593 .getValue()) { _iter1594.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public selectKeyCriteriaTime_resultTupleScheme getScheme() { return new selectKeyCriteriaTime_resultTupleScheme(); } } private static class selectKeyCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1595 : struct.success .entrySet()) { oprot.writeI64(_iter1595.getKey()); { oprot.writeI32(_iter1595.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1596 : _iter1595 .getValue()) { _iter1596.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1597 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map1597.size); long _key1598; Set _val1599; for (int _i1600 = 0; _i1600 < _map1597.size; ++_i1600) { _key1598 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1601 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1599 = new LinkedHashSet( 2 * _set1601.size); com.cinchapi.concourse.thrift.TObject _elem1602; for (int _i1603 = 0; _i1603 < _set1601.size; ++_i1603) { _elem1602 = new com.cinchapi.concourse.thrift.TObject(); _elem1602.read(iprot); _val1599.add(_elem1602); } } struct.success.put(_key1598, _val1599); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeyCriteriaTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyCriteriaTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCriteriaTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCriteriaTimestr_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyCriteriaTimestr_args.class, metaDataMap); } public selectKeyCriteriaTimestr_args() {} public selectKeyCriteriaTimestr_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyCriteriaTimestr_args( selectKeyCriteriaTimestr_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyCriteriaTimestr_args deepCopy() { return new selectKeyCriteriaTimestr_args(this); } @Override public void clear() { this.key = null; this.criteria = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyCriteriaTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public selectKeyCriteriaTimestr_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public String getTimestamp() { return this.timestamp; } public selectKeyCriteriaTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyCriteriaTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyCriteriaTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyCriteriaTimestr_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeyCriteriaTimestr_args) return this.equals((selectKeyCriteriaTimestr_args) that); return false; } public boolean equals(selectKeyCriteriaTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyCriteriaTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "selectKeyCriteriaTimestr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeyCriteriaTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectKeyCriteriaTimestr_argsStandardScheme getScheme() { return new selectKeyCriteriaTimestr_argsStandardScheme(); } } private static class selectKeyCriteriaTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCriteriaTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectKeyCriteriaTimestr_argsTupleScheme getScheme() { return new selectKeyCriteriaTimestr_argsTupleScheme(); } } private static class selectKeyCriteriaTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyCriteriaTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyCriteriaTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCriteriaTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCriteriaTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyCriteriaTimestr_result.class, metaDataMap); } public selectKeyCriteriaTimestr_result() {} public selectKeyCriteriaTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public selectKeyCriteriaTimestr_result( selectKeyCriteriaTimestr_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeyCriteriaTimestr_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyCriteriaTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyCriteriaTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeyCriteriaTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public selectKeyCriteriaTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeyCriteriaTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectKeyCriteriaTimestr_resultStandardScheme getScheme() { return new selectKeyCriteriaTimestr_resultStandardScheme(); } } private static class selectKeyCriteriaTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1604 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map1604.size); long _key1605; Set _val1606; for (int _i1607 = 0; _i1607 < _map1604.size; ++_i1607) { _key1605 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1608 = iprot .readSetBegin(); _val1606 = new LinkedHashSet( 2 * _set1608.size); com.cinchapi.concourse.thrift.TObject _elem1609; for (int _i1610 = 0; _i1610 < _set1608.size; ++_i1610) { _elem1609 = new com.cinchapi.concourse.thrift.TObject(); _elem1609.read(iprot); _val1606.add(_elem1609); } iprot.readSetEnd(); } struct.success.put(_key1605, _val1606); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1611 : struct.success .entrySet()) { oprot.writeI64(_iter1611.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1611.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1612 : _iter1611 .getValue()) { _iter1612.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCriteriaTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectKeyCriteriaTimestr_resultTupleScheme getScheme() { return new selectKeyCriteriaTimestr_resultTupleScheme(); } } private static class selectKeyCriteriaTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1613 : struct.success .entrySet()) { oprot.writeI64(_iter1613.getKey()); { oprot.writeI32(_iter1613.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1614 : _iter1613 .getValue()) { _iter1614.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1615 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map1615.size); long _key1616; Set _val1617; for (int _i1618 = 0; _i1618 < _map1615.size; ++_i1618) { _key1616 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1619 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1617 = new LinkedHashSet( 2 * _set1619.size); com.cinchapi.concourse.thrift.TObject _elem1620; for (int _i1621 = 0; _i1621 < _set1619.size; ++_i1621) { _elem1620 = new com.cinchapi.concourse.thrift.TObject(); _elem1620.read(iprot); _val1617.add(_elem1620); } } struct.success.put(_key1616, _val1617); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class selectKeyCclTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyCclTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCclTime_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyCclTime_args.class, metaDataMap); } public selectKeyCclTime_args() {} public selectKeyCclTime_args(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyCclTime_args(selectKeyCclTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetCcl()) { this.ccl = other.ccl; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyCclTime_args deepCopy() { return new selectKeyCclTime_args(this); } @Override public void clear() { this.key = null; this.ccl = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyCclTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public String getCcl() { return this.ccl; } public selectKeyCclTime_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public long getTimestamp() { return this.timestamp; } public selectKeyCclTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyCclTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyCclTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeyCclTime_args) return this.equals((selectKeyCclTime_args) that); return false; } public boolean equals(selectKeyCclTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyCclTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectKeyCclTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeyCclTime_argsStandardSchemeFactory implements SchemeFactory { public selectKeyCclTime_argsStandardScheme getScheme() { return new selectKeyCclTime_argsStandardScheme(); } } private static class selectKeyCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCclTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeyCclTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCclTime_argsTupleSchemeFactory implements SchemeFactory { public selectKeyCclTime_argsTupleScheme getScheme() { return new selectKeyCclTime_argsTupleScheme(); } } private static class selectKeyCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyCclTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyCclTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCclTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyCclTime_result.class, metaDataMap); } public selectKeyCclTime_result() {} public selectKeyCclTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public selectKeyCclTime_result(selectKeyCclTime_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeyCclTime_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyCclTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyCclTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeyCclTime_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public selectKeyCclTime_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeyCclTime_resultStandardSchemeFactory implements SchemeFactory { public selectKeyCclTime_resultStandardScheme getScheme() { return new selectKeyCclTime_resultStandardScheme(); } } private static class selectKeyCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCclTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1622 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map1622.size); long _key1623; Set _val1624; for (int _i1625 = 0; _i1625 < _map1622.size; ++_i1625) { _key1623 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1626 = iprot .readSetBegin(); _val1624 = new LinkedHashSet( 2 * _set1626.size); com.cinchapi.concourse.thrift.TObject _elem1627; for (int _i1628 = 0; _i1628 < _set1626.size; ++_i1628) { _elem1627 = new com.cinchapi.concourse.thrift.TObject(); _elem1627.read(iprot); _val1624.add(_elem1627); } iprot.readSetEnd(); } struct.success.put(_key1623, _val1624); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeyCclTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1629 : struct.success .entrySet()) { oprot.writeI64(_iter1629.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1629.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1630 : _iter1629 .getValue()) { _iter1630.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCclTime_resultTupleSchemeFactory implements SchemeFactory { public selectKeyCclTime_resultTupleScheme getScheme() { return new selectKeyCclTime_resultTupleScheme(); } } private static class selectKeyCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1631 : struct.success .entrySet()) { oprot.writeI64(_iter1631.getKey()); { oprot.writeI32(_iter1631.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1632 : _iter1631 .getValue()) { _iter1632.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1633 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map1633.size); long _key1634; Set _val1635; for (int _i1636 = 0; _i1636 < _map1633.size; ++_i1636) { _key1634 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1637 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1635 = new LinkedHashSet( 2 * _set1637.size); com.cinchapi.concourse.thrift.TObject _elem1638; for (int _i1639 = 0; _i1639 < _set1637.size; ++_i1639) { _elem1638 = new com.cinchapi.concourse.thrift.TObject(); _elem1638.read(iprot); _val1635.add(_elem1638); } } struct.success.put(_key1634, _val1635); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class selectKeyCclTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyCclTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCclTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCclTimestr_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyCclTimestr_args.class, metaDataMap); } public selectKeyCclTimestr_args() {} public selectKeyCclTimestr_args(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyCclTimestr_args(selectKeyCclTimestr_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetCcl()) { this.ccl = other.ccl; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyCclTimestr_args deepCopy() { return new selectKeyCclTimestr_args(this); } @Override public void clear() { this.key = null; this.ccl = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyCclTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public String getCcl() { return this.ccl; } public selectKeyCclTimestr_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public String getTimestamp() { return this.timestamp; } public selectKeyCclTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyCclTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyCclTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyCclTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeyCclTimestr_args) return this.equals((selectKeyCclTimestr_args) that); return false; } public boolean equals(selectKeyCclTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyCclTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectKeyCclTimestr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeyCclTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectKeyCclTimestr_argsStandardScheme getScheme() { return new selectKeyCclTimestr_argsStandardScheme(); } } private static class selectKeyCclTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCclTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeyCclTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCclTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectKeyCclTimestr_argsTupleScheme getScheme() { return new selectKeyCclTimestr_argsTupleScheme(); } } private static class selectKeyCclTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyCclTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeyCclTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCclTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCclTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeyCclTimestr_result.class, metaDataMap); } public selectKeyCclTimestr_result() {} public selectKeyCclTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public selectKeyCclTimestr_result(selectKeyCclTimestr_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeyCclTimestr_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyCclTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyCclTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeyCclTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public selectKeyCclTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeyCclTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectKeyCclTimestr_resultStandardScheme getScheme() { return new selectKeyCclTimestr_resultStandardScheme(); } } private static class selectKeyCclTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCclTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1640 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map1640.size); long _key1641; Set _val1642; for (int _i1643 = 0; _i1643 < _map1640.size; ++_i1643) { _key1641 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1644 = iprot .readSetBegin(); _val1642 = new LinkedHashSet( 2 * _set1644.size); com.cinchapi.concourse.thrift.TObject _elem1645; for (int _i1646 = 0; _i1646 < _set1644.size; ++_i1646) { _elem1645 = new com.cinchapi.concourse.thrift.TObject(); _elem1645.read(iprot); _val1642.add(_elem1645); } iprot.readSetEnd(); } struct.success.put(_key1641, _val1642); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeyCclTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1647 : struct.success .entrySet()) { oprot.writeI64(_iter1647.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1647.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1648 : _iter1647 .getValue()) { _iter1648.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCclTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectKeyCclTimestr_resultTupleScheme getScheme() { return new selectKeyCclTimestr_resultTupleScheme(); } } private static class selectKeyCclTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1649 : struct.success .entrySet()) { oprot.writeI64(_iter1649.getKey()); { oprot.writeI32(_iter1649.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1650 : _iter1649 .getValue()) { _iter1650.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1651 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map1651.size); long _key1652; Set _val1653; for (int _i1654 = 0; _i1654 < _map1651.size; ++_i1654) { _key1652 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1655 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1653 = new LinkedHashSet( 2 * _set1655.size); com.cinchapi.concourse.thrift.TObject _elem1656; for (int _i1657 = 0; _i1657 < _set1655.size; ++_i1657) { _elem1656 = new com.cinchapi.concourse.thrift.TObject(); _elem1656.read(iprot); _val1653.add(_elem1656); } } struct.success.put(_key1652, _val1653); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class selectKeysCriteria_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysCriteria_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCriteria_argsTupleSchemeFactory()); } public List keys; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), CRITERIA((short) 2, "criteria"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // CRITERIA return CRITERIA; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysCriteria_args.class, metaDataMap); } public selectKeysCriteria_args() {} public selectKeysCriteria_args(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysCriteria_args(selectKeysCriteria_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysCriteria_args deepCopy() { return new selectKeysCriteria_args(this); } @Override public void clear() { this.keys = null; this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysCriteria_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public selectKeysCriteria_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysCriteria_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysCriteria_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeysCriteria_args) return this.equals((selectKeysCriteria_args) that); return false; } public boolean equals(selectKeysCriteria_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysCriteria_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectKeysCriteria_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeysCriteria_argsStandardSchemeFactory implements SchemeFactory { public selectKeysCriteria_argsStandardScheme getScheme() { return new selectKeysCriteria_argsStandardScheme(); } } private static class selectKeysCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCriteria_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1658 = iprot .readListBegin(); struct.keys = new ArrayList( _list1658.size); String _elem1659; for (int _i1660 = 0; _i1660 < _list1658.size; ++_i1660) { _elem1659 = iprot.readString(); struct.keys.add(_elem1659); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeysCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1661 : struct.keys) { oprot.writeString(_iter1661); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCriteria_argsTupleSchemeFactory implements SchemeFactory { public selectKeysCriteria_argsTupleScheme getScheme() { return new selectKeysCriteria_argsTupleScheme(); } } private static class selectKeysCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1662 : struct.keys) { oprot.writeString(_iter1662); } } } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list1663 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1663.size); String _elem1664; for (int _i1665 = 0; _i1665 < _list1663.size; ++_i1665) { _elem1664 = iprot.readString(); struct.keys.add(_elem1664); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysCriteria_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCriteria_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysCriteria_result.class, metaDataMap); } public selectKeysCriteria_result() {} public selectKeysCriteria_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeysCriteria_result(selectKeysCriteria_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public selectKeysCriteria_result deepCopy() { return new selectKeysCriteria_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectKeysCriteria_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysCriteria_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysCriteria_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public selectKeysCriteria_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 selectKeysCriteria_resultStandardSchemeFactory implements SchemeFactory { public selectKeysCriteria_resultStandardScheme getScheme() { return new selectKeysCriteria_resultStandardScheme(); } } private static class selectKeysCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCriteria_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1666 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map1666.size); long _key1667; Map> _val1668; for (int _i1669 = 0; _i1669 < _map1666.size; ++_i1669) { _key1667 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1670 = iprot .readMapBegin(); _val1668 = new LinkedHashMap>( 2 * _map1670.size); String _key1671; Set _val1672; for (int _i1673 = 0; _i1673 < _map1670.size; ++_i1673) { _key1671 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1674 = iprot .readSetBegin(); _val1672 = new LinkedHashSet( 2 * _set1674.size); com.cinchapi.concourse.thrift.TObject _elem1675; for (int _i1676 = 0; _i1676 < _set1674.size; ++_i1676) { _elem1675 = new com.cinchapi.concourse.thrift.TObject(); _elem1675.read(iprot); _val1672.add(_elem1675); } iprot.readSetEnd(); } _val1668.put(_key1671, _val1672); } iprot.readMapEnd(); } struct.success.put(_key1667, _val1668); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, selectKeysCriteria_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1677 : struct.success .entrySet()) { oprot.writeI64(_iter1677.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1677.getValue().size())); for (Map.Entry> _iter1678 : _iter1677 .getValue().entrySet()) { oprot.writeString(_iter1678.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1678.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter1679 : _iter1678 .getValue()) { _iter1679.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCriteria_resultTupleSchemeFactory implements SchemeFactory { public selectKeysCriteria_resultTupleScheme getScheme() { return new selectKeysCriteria_resultTupleScheme(); } } private static class selectKeysCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1680 : struct.success .entrySet()) { oprot.writeI64(_iter1680.getKey()); { oprot.writeI32(_iter1680.getValue().size()); for (Map.Entry> _iter1681 : _iter1680 .getValue().entrySet()) { oprot.writeString(_iter1681.getKey()); { oprot.writeI32( _iter1681.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1682 : _iter1681 .getValue()) { _iter1682.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1683 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map1683.size); long _key1684; Map> _val1685; for (int _i1686 = 0; _i1686 < _map1683.size; ++_i1686) { _key1684 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1687 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1685 = new LinkedHashMap>( 2 * _map1687.size); String _key1688; Set _val1689; for (int _i1690 = 0; _i1690 < _map1687.size; ++_i1690) { _key1688 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1691 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1689 = new LinkedHashSet( 2 * _set1691.size); com.cinchapi.concourse.thrift.TObject _elem1692; for (int _i1693 = 0; _i1693 < _set1691.size; ++_i1693) { _elem1692 = new com.cinchapi.concourse.thrift.TObject(); _elem1692.read(iprot); _val1689.add(_elem1692); } } _val1685.put(_key1688, _val1689); } } struct.success.put(_key1684, _val1685); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeysCcl_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysCcl_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCcl_argsTupleSchemeFactory()); } public List keys; // required public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), CCL((short) 2, "ccl"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // CCL return CCL; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysCcl_args.class, metaDataMap); } public selectKeysCcl_args() {} public selectKeysCcl_args(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysCcl_args(selectKeysCcl_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetCcl()) { this.ccl = other.ccl; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysCcl_args deepCopy() { return new selectKeysCcl_args(this); } @Override public void clear() { this.keys = null; this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysCcl_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public String getCcl() { return this.ccl; } public selectKeysCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysCcl_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysCcl_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeysCcl_args) return this.equals((selectKeysCcl_args) that); return false; } public boolean equals(selectKeysCcl_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysCcl_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectKeysCcl_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeysCcl_argsStandardSchemeFactory implements SchemeFactory { public selectKeysCcl_argsStandardScheme getScheme() { return new selectKeysCcl_argsStandardScheme(); } } private static class selectKeysCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCcl_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1694 = iprot .readListBegin(); struct.keys = new ArrayList( _list1694.size); String _elem1695; for (int _i1696 = 0; _i1696 < _list1694.size; ++_i1696) { _elem1695 = iprot.readString(); struct.keys.add(_elem1695); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeysCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1697 : struct.keys) { oprot.writeString(_iter1697); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCcl_argsTupleSchemeFactory implements SchemeFactory { public selectKeysCcl_argsTupleScheme getScheme() { return new selectKeysCcl_argsTupleScheme(); } } private static class selectKeysCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1698 : struct.keys) { oprot.writeString(_iter1698); } } } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list1699 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1699.size); String _elem1700; for (int _i1701 = 0; _i1701 < _list1699.size; ++_i1701) { _elem1700 = iprot.readString(); struct.keys.add(_elem1700); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysCcl_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCcl_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysCcl_result.class, metaDataMap); } public selectKeysCcl_result() {} public selectKeysCcl_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public selectKeysCcl_result(selectKeysCcl_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectKeysCcl_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysCcl_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysCcl_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeysCcl_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public selectKeysCcl_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeysCcl_resultStandardSchemeFactory implements SchemeFactory { public selectKeysCcl_resultStandardScheme getScheme() { return new selectKeysCcl_resultStandardScheme(); } } private static class selectKeysCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCcl_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1702 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map1702.size); long _key1703; Map> _val1704; for (int _i1705 = 0; _i1705 < _map1702.size; ++_i1705) { _key1703 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1706 = iprot .readMapBegin(); _val1704 = new LinkedHashMap>( 2 * _map1706.size); String _key1707; Set _val1708; for (int _i1709 = 0; _i1709 < _map1706.size; ++_i1709) { _key1707 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1710 = iprot .readSetBegin(); _val1708 = new LinkedHashSet( 2 * _set1710.size); com.cinchapi.concourse.thrift.TObject _elem1711; for (int _i1712 = 0; _i1712 < _set1710.size; ++_i1712) { _elem1711 = new com.cinchapi.concourse.thrift.TObject(); _elem1711.read(iprot); _val1708.add(_elem1711); } iprot.readSetEnd(); } _val1704.put(_key1707, _val1708); } iprot.readMapEnd(); } struct.success.put(_key1703, _val1704); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeysCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1713 : struct.success .entrySet()) { oprot.writeI64(_iter1713.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1713.getValue().size())); for (Map.Entry> _iter1714 : _iter1713 .getValue().entrySet()) { oprot.writeString(_iter1714.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1714.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter1715 : _iter1714 .getValue()) { _iter1715.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCcl_resultTupleSchemeFactory implements SchemeFactory { public selectKeysCcl_resultTupleScheme getScheme() { return new selectKeysCcl_resultTupleScheme(); } } private static class selectKeysCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1716 : struct.success .entrySet()) { oprot.writeI64(_iter1716.getKey()); { oprot.writeI32(_iter1716.getValue().size()); for (Map.Entry> _iter1717 : _iter1716 .getValue().entrySet()) { oprot.writeString(_iter1717.getKey()); { oprot.writeI32( _iter1717.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1718 : _iter1717 .getValue()) { _iter1718.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1719 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map1719.size); long _key1720; Map> _val1721; for (int _i1722 = 0; _i1722 < _map1719.size; ++_i1722) { _key1720 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1723 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1721 = new LinkedHashMap>( 2 * _map1723.size); String _key1724; Set _val1725; for (int _i1726 = 0; _i1726 < _map1723.size; ++_i1726) { _key1724 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1727 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1725 = new LinkedHashSet( 2 * _set1727.size); com.cinchapi.concourse.thrift.TObject _elem1728; for (int _i1729 = 0; _i1729 < _set1727.size; ++_i1729) { _elem1728 = new com.cinchapi.concourse.thrift.TObject(); _elem1728.read(iprot); _val1725.add(_elem1728); } } _val1721.put(_key1724, _val1725); } } struct.success.put(_key1720, _val1721); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class selectKeysCriteriaTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysCriteriaTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCriteriaTime_argsTupleSchemeFactory()); } public List keys; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysCriteriaTime_args.class, metaDataMap); } public selectKeysCriteriaTime_args() {} public selectKeysCriteriaTime_args(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysCriteriaTime_args(selectKeysCriteriaTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysCriteriaTime_args deepCopy() { return new selectKeysCriteriaTime_args(this); } @Override public void clear() { this.keys = null; this.criteria = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysCriteriaTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public selectKeysCriteriaTime_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public long getTimestamp() { return this.timestamp; } public selectKeysCriteriaTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysCriteriaTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysCriteriaTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeysCriteriaTime_args) return this.equals((selectKeysCriteriaTime_args) that); return false; } public boolean equals(selectKeysCriteriaTime_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysCriteriaTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "selectKeysCriteriaTime_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeysCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public selectKeysCriteriaTime_argsStandardScheme getScheme() { return new selectKeysCriteriaTime_argsStandardScheme(); } } private static class selectKeysCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCriteriaTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1730 = iprot .readListBegin(); struct.keys = new ArrayList( _list1730.size); String _elem1731; for (int _i1732 = 0; _i1732 < _list1730.size; ++_i1732) { _elem1731 = iprot.readString(); struct.keys.add(_elem1731); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeysCriteriaTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1733 : struct.keys) { oprot.writeString(_iter1733); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public selectKeysCriteriaTime_argsTupleScheme getScheme() { return new selectKeysCriteriaTime_argsTupleScheme(); } } private static class selectKeysCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1734 : struct.keys) { oprot.writeString(_iter1734); } } } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list1735 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1735.size); String _elem1736; for (int _i1737 = 0; _i1737 < _list1735.size; ++_i1737) { _elem1736 = iprot.readString(); struct.keys.add(_elem1736); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysCriteriaTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCriteriaTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysCriteriaTime_result.class, metaDataMap); } public selectKeysCriteriaTime_result() {} public selectKeysCriteriaTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeysCriteriaTime_result( selectKeysCriteriaTime_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public selectKeysCriteriaTime_result deepCopy() { return new selectKeysCriteriaTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectKeysCriteriaTime_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysCriteriaTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysCriteriaTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public selectKeysCriteriaTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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( "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; 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 selectKeysCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public selectKeysCriteriaTime_resultStandardScheme getScheme() { return new selectKeysCriteriaTime_resultStandardScheme(); } } private static class selectKeysCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCriteriaTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1738 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map1738.size); long _key1739; Map> _val1740; for (int _i1741 = 0; _i1741 < _map1738.size; ++_i1741) { _key1739 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1742 = iprot .readMapBegin(); _val1740 = new LinkedHashMap>( 2 * _map1742.size); String _key1743; Set _val1744; for (int _i1745 = 0; _i1745 < _map1742.size; ++_i1745) { _key1743 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1746 = iprot .readSetBegin(); _val1744 = new LinkedHashSet( 2 * _set1746.size); com.cinchapi.concourse.thrift.TObject _elem1747; for (int _i1748 = 0; _i1748 < _set1746.size; ++_i1748) { _elem1747 = new com.cinchapi.concourse.thrift.TObject(); _elem1747.read(iprot); _val1744.add(_elem1747); } iprot.readSetEnd(); } _val1740.put(_key1743, _val1744); } iprot.readMapEnd(); } struct.success.put(_key1739, _val1740); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, selectKeysCriteriaTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1749 : struct.success .entrySet()) { oprot.writeI64(_iter1749.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1749.getValue().size())); for (Map.Entry> _iter1750 : _iter1749 .getValue().entrySet()) { oprot.writeString(_iter1750.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1750.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter1751 : _iter1750 .getValue()) { _iter1751.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public selectKeysCriteriaTime_resultTupleScheme getScheme() { return new selectKeysCriteriaTime_resultTupleScheme(); } } private static class selectKeysCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1752 : struct.success .entrySet()) { oprot.writeI64(_iter1752.getKey()); { oprot.writeI32(_iter1752.getValue().size()); for (Map.Entry> _iter1753 : _iter1752 .getValue().entrySet()) { oprot.writeString(_iter1753.getKey()); { oprot.writeI32( _iter1753.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1754 : _iter1753 .getValue()) { _iter1754.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1755 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map1755.size); long _key1756; Map> _val1757; for (int _i1758 = 0; _i1758 < _map1755.size; ++_i1758) { _key1756 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1759 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1757 = new LinkedHashMap>( 2 * _map1759.size); String _key1760; Set _val1761; for (int _i1762 = 0; _i1762 < _map1759.size; ++_i1762) { _key1760 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1763 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1761 = new LinkedHashSet( 2 * _set1763.size); com.cinchapi.concourse.thrift.TObject _elem1764; for (int _i1765 = 0; _i1765 < _set1763.size; ++_i1765) { _elem1764 = new com.cinchapi.concourse.thrift.TObject(); _elem1764.read(iprot); _val1761.add(_elem1764); } } _val1757.put(_key1760, _val1761); } } struct.success.put(_key1756, _val1757); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeysCriteriaTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysCriteriaTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCriteriaTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCriteriaTimestr_argsTupleSchemeFactory()); } public List keys; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysCriteriaTimestr_args.class, metaDataMap); } public selectKeysCriteriaTimestr_args() {} public selectKeysCriteriaTimestr_args(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysCriteriaTimestr_args( selectKeysCriteriaTimestr_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysCriteriaTimestr_args deepCopy() { return new selectKeysCriteriaTimestr_args(this); } @Override public void clear() { this.keys = null; this.criteria = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysCriteriaTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public selectKeysCriteriaTimestr_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public String getTimestamp() { return this.timestamp; } public selectKeysCriteriaTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysCriteriaTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysCriteriaTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysCriteriaTimestr_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeysCriteriaTimestr_args) return this.equals((selectKeysCriteriaTimestr_args) that); return false; } public boolean equals(selectKeysCriteriaTimestr_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysCriteriaTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "selectKeysCriteriaTimestr_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeysCriteriaTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectKeysCriteriaTimestr_argsStandardScheme getScheme() { return new selectKeysCriteriaTimestr_argsStandardScheme(); } } private static class selectKeysCriteriaTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCriteriaTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1766 = iprot .readListBegin(); struct.keys = new ArrayList( _list1766.size); String _elem1767; for (int _i1768 = 0; _i1768 < _list1766.size; ++_i1768) { _elem1767 = iprot.readString(); struct.keys.add(_elem1767); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeysCriteriaTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1769 : struct.keys) { oprot.writeString(_iter1769); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCriteriaTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectKeysCriteriaTimestr_argsTupleScheme getScheme() { return new selectKeysCriteriaTimestr_argsTupleScheme(); } } private static class selectKeysCriteriaTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1770 : struct.keys) { oprot.writeString(_iter1770); } } } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list1771 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1771.size); String _elem1772; for (int _i1773 = 0; _i1773 < _list1771.size; ++_i1773) { _elem1772 = iprot.readString(); struct.keys.add(_elem1772); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysCriteriaTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysCriteriaTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCriteriaTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCriteriaTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysCriteriaTimestr_result.class, metaDataMap); } public selectKeysCriteriaTimestr_result() {} public selectKeysCriteriaTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public selectKeysCriteriaTimestr_result( selectKeysCriteriaTimestr_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectKeysCriteriaTimestr_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysCriteriaTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysCriteriaTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeysCriteriaTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public selectKeysCriteriaTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeysCriteriaTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectKeysCriteriaTimestr_resultStandardScheme getScheme() { return new selectKeysCriteriaTimestr_resultStandardScheme(); } } private static class selectKeysCriteriaTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCriteriaTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1774 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map1774.size); long _key1775; Map> _val1776; for (int _i1777 = 0; _i1777 < _map1774.size; ++_i1777) { _key1775 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1778 = iprot .readMapBegin(); _val1776 = new LinkedHashMap>( 2 * _map1778.size); String _key1779; Set _val1780; for (int _i1781 = 0; _i1781 < _map1778.size; ++_i1781) { _key1779 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1782 = iprot .readSetBegin(); _val1780 = new LinkedHashSet( 2 * _set1782.size); com.cinchapi.concourse.thrift.TObject _elem1783; for (int _i1784 = 0; _i1784 < _set1782.size; ++_i1784) { _elem1783 = new com.cinchapi.concourse.thrift.TObject(); _elem1783.read(iprot); _val1780.add(_elem1783); } iprot.readSetEnd(); } _val1776.put(_key1779, _val1780); } iprot.readMapEnd(); } struct.success.put(_key1775, _val1776); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeysCriteriaTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1785 : struct.success .entrySet()) { oprot.writeI64(_iter1785.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1785.getValue().size())); for (Map.Entry> _iter1786 : _iter1785 .getValue().entrySet()) { oprot.writeString(_iter1786.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1786.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter1787 : _iter1786 .getValue()) { _iter1787.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCriteriaTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectKeysCriteriaTimestr_resultTupleScheme getScheme() { return new selectKeysCriteriaTimestr_resultTupleScheme(); } } private static class selectKeysCriteriaTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1788 : struct.success .entrySet()) { oprot.writeI64(_iter1788.getKey()); { oprot.writeI32(_iter1788.getValue().size()); for (Map.Entry> _iter1789 : _iter1788 .getValue().entrySet()) { oprot.writeString(_iter1789.getKey()); { oprot.writeI32( _iter1789.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1790 : _iter1789 .getValue()) { _iter1790.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1791 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map1791.size); long _key1792; Map> _val1793; for (int _i1794 = 0; _i1794 < _map1791.size; ++_i1794) { _key1792 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1795 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1793 = new LinkedHashMap>( 2 * _map1795.size); String _key1796; Set _val1797; for (int _i1798 = 0; _i1798 < _map1795.size; ++_i1798) { _key1796 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1799 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1797 = new LinkedHashSet( 2 * _set1799.size); com.cinchapi.concourse.thrift.TObject _elem1800; for (int _i1801 = 0; _i1801 < _set1799.size; ++_i1801) { _elem1800 = new com.cinchapi.concourse.thrift.TObject(); _elem1800.read(iprot); _val1797.add(_elem1800); } } _val1793.put(_key1796, _val1797); } } struct.success.put(_key1792, _val1793); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class selectKeysCclTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysCclTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCclTime_argsTupleSchemeFactory()); } public List keys; // required public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysCclTime_args.class, metaDataMap); } public selectKeysCclTime_args() {} public selectKeysCclTime_args(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysCclTime_args(selectKeysCclTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetCcl()) { this.ccl = other.ccl; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysCclTime_args deepCopy() { return new selectKeysCclTime_args(this); } @Override public void clear() { this.keys = null; this.ccl = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysCclTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public String getCcl() { return this.ccl; } public selectKeysCclTime_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public long getTimestamp() { return this.timestamp; } public selectKeysCclTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysCclTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysCclTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeysCclTime_args) return this.equals((selectKeysCclTime_args) that); return false; } public boolean equals(selectKeysCclTime_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysCclTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectKeysCclTime_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeysCclTime_argsStandardSchemeFactory implements SchemeFactory { public selectKeysCclTime_argsStandardScheme getScheme() { return new selectKeysCclTime_argsStandardScheme(); } } private static class selectKeysCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCclTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1802 = iprot .readListBegin(); struct.keys = new ArrayList( _list1802.size); String _elem1803; for (int _i1804 = 0; _i1804 < _list1802.size; ++_i1804) { _elem1803 = iprot.readString(); struct.keys.add(_elem1803); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeysCclTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1805 : struct.keys) { oprot.writeString(_iter1805); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCclTime_argsTupleSchemeFactory implements SchemeFactory { public selectKeysCclTime_argsTupleScheme getScheme() { return new selectKeysCclTime_argsTupleScheme(); } } private static class selectKeysCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1806 : struct.keys) { oprot.writeString(_iter1806); } } } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list1807 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1807.size); String _elem1808; for (int _i1809 = 0; _i1809 < _list1807.size; ++_i1809) { _elem1808 = iprot.readString(); struct.keys.add(_elem1808); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysCclTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysCclTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCclTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysCclTime_result.class, metaDataMap); } public selectKeysCclTime_result() {} public selectKeysCclTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public selectKeysCclTime_result(selectKeysCclTime_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectKeysCclTime_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysCclTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysCclTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeysCclTime_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public selectKeysCclTime_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeysCclTime_resultStandardSchemeFactory implements SchemeFactory { public selectKeysCclTime_resultStandardScheme getScheme() { return new selectKeysCclTime_resultStandardScheme(); } } private static class selectKeysCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCclTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1810 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map1810.size); long _key1811; Map> _val1812; for (int _i1813 = 0; _i1813 < _map1810.size; ++_i1813) { _key1811 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1814 = iprot .readMapBegin(); _val1812 = new LinkedHashMap>( 2 * _map1814.size); String _key1815; Set _val1816; for (int _i1817 = 0; _i1817 < _map1814.size; ++_i1817) { _key1815 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1818 = iprot .readSetBegin(); _val1816 = new LinkedHashSet( 2 * _set1818.size); com.cinchapi.concourse.thrift.TObject _elem1819; for (int _i1820 = 0; _i1820 < _set1818.size; ++_i1820) { _elem1819 = new com.cinchapi.concourse.thrift.TObject(); _elem1819.read(iprot); _val1816.add(_elem1819); } iprot.readSetEnd(); } _val1812.put(_key1815, _val1816); } iprot.readMapEnd(); } struct.success.put(_key1811, _val1812); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeysCclTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1821 : struct.success .entrySet()) { oprot.writeI64(_iter1821.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1821.getValue().size())); for (Map.Entry> _iter1822 : _iter1821 .getValue().entrySet()) { oprot.writeString(_iter1822.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1822.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter1823 : _iter1822 .getValue()) { _iter1823.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCclTime_resultTupleSchemeFactory implements SchemeFactory { public selectKeysCclTime_resultTupleScheme getScheme() { return new selectKeysCclTime_resultTupleScheme(); } } private static class selectKeysCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1824 : struct.success .entrySet()) { oprot.writeI64(_iter1824.getKey()); { oprot.writeI32(_iter1824.getValue().size()); for (Map.Entry> _iter1825 : _iter1824 .getValue().entrySet()) { oprot.writeString(_iter1825.getKey()); { oprot.writeI32( _iter1825.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1826 : _iter1825 .getValue()) { _iter1826.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1827 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map1827.size); long _key1828; Map> _val1829; for (int _i1830 = 0; _i1830 < _map1827.size; ++_i1830) { _key1828 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1831 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1829 = new LinkedHashMap>( 2 * _map1831.size); String _key1832; Set _val1833; for (int _i1834 = 0; _i1834 < _map1831.size; ++_i1834) { _key1832 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1835 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1833 = new LinkedHashSet( 2 * _set1835.size); com.cinchapi.concourse.thrift.TObject _elem1836; for (int _i1837 = 0; _i1837 < _set1835.size; ++_i1837) { _elem1836 = new com.cinchapi.concourse.thrift.TObject(); _elem1836.read(iprot); _val1833.add(_elem1836); } } _val1829.put(_key1832, _val1833); } } struct.success.put(_key1828, _val1829); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class selectKeysCclTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysCclTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCclTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCclTimestr_argsTupleSchemeFactory()); } public List keys; // required public String ccl; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysCclTimestr_args.class, metaDataMap); } public selectKeysCclTimestr_args() {} public selectKeysCclTimestr_args(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysCclTimestr_args(selectKeysCclTimestr_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetCcl()) { this.ccl = other.ccl; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysCclTimestr_args deepCopy() { return new selectKeysCclTimestr_args(this); } @Override public void clear() { this.keys = null; this.ccl = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysCclTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public String getCcl() { return this.ccl; } public selectKeysCclTimestr_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public String getTimestamp() { return this.timestamp; } public selectKeysCclTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysCclTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysCclTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysCclTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof selectKeysCclTimestr_args) return this.equals((selectKeysCclTimestr_args) that); return false; } public boolean equals(selectKeysCclTimestr_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysCclTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("selectKeysCclTimestr_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeysCclTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectKeysCclTimestr_argsStandardScheme getScheme() { return new selectKeysCclTimestr_argsStandardScheme(); } } private static class selectKeysCclTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCclTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1838 = iprot .readListBegin(); struct.keys = new ArrayList( _list1838.size); String _elem1839; for (int _i1840 = 0; _i1840 < _list1838.size; ++_i1840) { _elem1839 = iprot.readString(); struct.keys.add(_elem1839); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeysCclTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1841 : struct.keys) { oprot.writeString(_iter1841); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCclTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectKeysCclTimestr_argsTupleScheme getScheme() { return new selectKeysCclTimestr_argsTupleScheme(); } } private static class selectKeysCclTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1842 : struct.keys) { oprot.writeString(_iter1842); } } } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list1843 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1843.size); String _elem1844; for (int _i1845 = 0; _i1845 < _list1843.size; ++_i1845) { _elem1844 = iprot.readString(); struct.keys.add(_elem1844); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysCclTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "selectKeysCclTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCclTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCclTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( selectKeysCclTimestr_result.class, metaDataMap); } public selectKeysCclTimestr_result() {} public selectKeysCclTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public selectKeysCclTimestr_result(selectKeysCclTimestr_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectKeysCclTimestr_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysCclTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysCclTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeysCclTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public selectKeysCclTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class selectKeysCclTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectKeysCclTimestr_resultStandardScheme getScheme() { return new selectKeysCclTimestr_resultStandardScheme(); } } private static class selectKeysCclTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCclTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1846 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map1846.size); long _key1847; Map> _val1848; for (int _i1849 = 0; _i1849 < _map1846.size; ++_i1849) { _key1847 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1850 = iprot .readMapBegin(); _val1848 = new LinkedHashMap>( 2 * _map1850.size); String _key1851; Set _val1852; for (int _i1853 = 0; _i1853 < _map1850.size; ++_i1853) { _key1851 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1854 = iprot .readSetBegin(); _val1852 = new LinkedHashSet( 2 * _set1854.size); com.cinchapi.concourse.thrift.TObject _elem1855; for (int _i1856 = 0; _i1856 < _set1854.size; ++_i1856) { _elem1855 = new com.cinchapi.concourse.thrift.TObject(); _elem1855.read(iprot); _val1852.add(_elem1855); } iprot.readSetEnd(); } _val1848.put(_key1851, _val1852); } iprot.readMapEnd(); } struct.success.put(_key1847, _val1848); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, selectKeysCclTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1857 : struct.success .entrySet()) { oprot.writeI64(_iter1857.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1857.getValue().size())); for (Map.Entry> _iter1858 : _iter1857 .getValue().entrySet()) { oprot.writeString(_iter1858.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter1858.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter1859 : _iter1858 .getValue()) { _iter1859.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCclTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectKeysCclTimestr_resultTupleScheme getScheme() { return new selectKeysCclTimestr_resultTupleScheme(); } } private static class selectKeysCclTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1860 : struct.success .entrySet()) { oprot.writeI64(_iter1860.getKey()); { oprot.writeI32(_iter1860.getValue().size()); for (Map.Entry> _iter1861 : _iter1860 .getValue().entrySet()) { oprot.writeString(_iter1861.getKey()); { oprot.writeI32( _iter1861.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1862 : _iter1861 .getValue()) { _iter1862.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1863 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map1863.size); long _key1864; Map> _val1865; for (int _i1866 = 0; _i1866 < _map1863.size; ++_i1866) { _key1864 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1867 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1865 = new LinkedHashMap>( 2 * _map1867.size); String _key1868; Set _val1869; for (int _i1870 = 0; _i1870 < _map1867.size; ++_i1870) { _key1868 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1871 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1869 = new LinkedHashSet( 2 * _set1871.size); com.cinchapi.concourse.thrift.TObject _elem1872; for (int _i1873 = 0; _i1873 < _set1871.size; ++_i1873) { _elem1872 = new com.cinchapi.concourse.thrift.TObject(); _elem1872.read(iprot); _val1869.add(_elem1872); } } _val1865.put(_key1868, _val1869); } } struct.success.put(_key1864, _val1865); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class getKeyRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyRecord_argsTupleSchemeFactory()); } public String key; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(getKeyRecord_args.class, metaDataMap); } public getKeyRecord_args() {} public getKeyRecord_args(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyRecord_args(getKeyRecord_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyRecord_args deepCopy() { return new getKeyRecord_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public getKeyRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeyRecord_args) return this.equals((getKeyRecord_args) that); return false; } public boolean equals(getKeyRecord_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeyRecord_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeyRecord_argsStandardSchemeFactory implements SchemeFactory { public getKeyRecord_argsStandardScheme getScheme() { return new getKeyRecord_argsStandardScheme(); } } private static class getKeyRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeyRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecord_argsTupleSchemeFactory implements SchemeFactory { public getKeyRecord_argsTupleScheme getScheme() { return new getKeyRecord_argsTupleScheme(); } } private static class getKeyRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( 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, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeyRecord_result(getKeyRecord_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public getKeyRecord_result deepCopy() { return new getKeyRecord_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 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 com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public getKeyRecord_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 getKeyRecord_resultStandardSchemeFactory implements SchemeFactory { public getKeyRecord_resultStandardScheme getScheme() { return new getKeyRecord_resultStandardScheme(); } } private static class getKeyRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, 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(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecord_resultTupleSchemeFactory implements SchemeFactory { public getKeyRecord_resultTupleScheme getScheme() { return new getKeyRecord_resultTupleScheme(); } } private static class getKeyRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, getKeyRecord_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeyRecordTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyRecordTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyRecordTime_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeyRecordTime_args.class, metaDataMap); } public getKeyRecordTime_args() {} public getKeyRecordTime_args(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyRecordTime_args(getKeyRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyRecordTime_args deepCopy() { return new getKeyRecordTime_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyRecordTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public getKeyRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public getKeyRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyRecordTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyRecordTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeyRecordTime_args) return this.equals((getKeyRecordTime_args) that); return false; } public boolean equals(getKeyRecordTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyRecordTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeyRecordTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeyRecordTime_argsStandardSchemeFactory implements SchemeFactory { public getKeyRecordTime_argsStandardScheme getScheme() { return new getKeyRecordTime_argsStandardScheme(); } } private static class getKeyRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecordTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeyRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecordTime_argsTupleSchemeFactory implements SchemeFactory { public getKeyRecordTime_argsTupleScheme getScheme() { return new getKeyRecordTime_argsTupleScheme(); } } private static class getKeyRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyRecordTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( 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, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeyRecordTime_result(getKeyRecordTime_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public getKeyRecordTime_result deepCopy() { return new getKeyRecordTime_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 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 com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public getKeyRecordTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 getKeyRecordTime_resultStandardSchemeFactory implements SchemeFactory { public getKeyRecordTime_resultStandardScheme getScheme() { return new getKeyRecordTime_resultStandardScheme(); } } private static class getKeyRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, 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(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecordTime_resultTupleSchemeFactory implements SchemeFactory { public getKeyRecordTime_resultTupleScheme getScheme() { return new getKeyRecordTime_resultTupleScheme(); } } private static class getKeyRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, getKeyRecordTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeyRecordTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyRecordTimestr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeyRecordTimestr_args.class, metaDataMap); } public getKeyRecordTimestr_args() {} public getKeyRecordTimestr_args(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyRecordTimestr_args(getKeyRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyRecordTimestr_args deepCopy() { return new getKeyRecordTimestr_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyRecordTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public getKeyRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public getKeyRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyRecordTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyRecordTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeyRecordTimestr_args) return this.equals((getKeyRecordTimestr_args) that); return false; } public boolean equals(getKeyRecordTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyRecordTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeyRecordTimestr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeyRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public getKeyRecordTimestr_argsStandardScheme getScheme() { return new getKeyRecordTimestr_argsStandardScheme(); } } private static class getKeyRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecordTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeyRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public getKeyRecordTimestr_argsTupleScheme getScheme() { return new getKeyRecordTimestr_argsTupleScheme(); } } private static class getKeyRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyRecordTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyRecordTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( 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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public getKeyRecordTimestr_result(getKeyRecordTimestr_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = 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 com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public getKeyRecordTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(success != null) { success.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeyRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public getKeyRecordTimestr_resultStandardScheme getScheme() { return new getKeyRecordTimestr_resultStandardScheme(); } } private static class getKeyRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecordTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, 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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public getKeyRecordTimestr_resultTupleScheme getScheme() { return new getKeyRecordTimestr_resultTupleScheme(); } } private static class getKeyRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); 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); } if(struct.isSetEx4()) { struct.ex4.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(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class getKeysRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysRecord_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecord_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORD((short) 2, "record"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysRecord_args.class, metaDataMap); } public getKeysRecord_args() {} public getKeysRecord_args(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysRecord_args(getKeysRecord_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysRecord_args deepCopy() { return new getKeysRecord_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysRecord_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public long getRecord() { return this.record; } public getKeysRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeysRecord_args) return this.equals((getKeysRecord_args) that); return false; } public boolean equals(getKeysRecord_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeysRecord_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeysRecord_argsStandardSchemeFactory implements SchemeFactory { public getKeysRecord_argsStandardScheme getScheme() { return new getKeysRecord_argsStandardScheme(); } } private static class getKeysRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1874 = iprot .readListBegin(); struct.keys = new ArrayList( _list1874.size); String _elem1875; for (int _i1876 = 0; _i1876 < _list1874.size; ++_i1876) { _elem1875 = iprot.readString(); struct.keys.add(_elem1875); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeysRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1877 : struct.keys) { oprot.writeString(_iter1877); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecord_argsTupleSchemeFactory implements SchemeFactory { public getKeysRecord_argsTupleScheme getScheme() { return new getKeysRecord_argsTupleScheme(); } } private static class getKeysRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1878 : struct.keys) { oprot.writeString(_iter1878); } } } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list1879 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1879.size); String _elem1880; for (int _i1881 = 0; _i1881 < _list1879.size; ++_i1881) { _elem1880 = iprot.readString(); struct.keys.add(_elem1880); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecord_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysRecord_result.class, metaDataMap); } public getKeysRecord_result() {} public getKeysRecord_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeysRecord_result(getKeysRecord_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success.size()); for (Map.Entry other_element : other.success .entrySet()) { String other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element .getValue(); String __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public getKeysRecord_result deepCopy() { return new getKeysRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, com.cinchapi.concourse.thrift.TObject val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeysRecord_result setSuccess( Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysRecord_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysRecord_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public getKeysRecord_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 getKeysRecord_resultStandardSchemeFactory implements SchemeFactory { public getKeysRecord_resultStandardScheme getScheme() { return new getKeysRecord_resultStandardScheme(); } } private static class getKeysRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1882 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map1882.size); String _key1883; com.cinchapi.concourse.thrift.TObject _val1884; for (int _i1885 = 0; _i1885 < _map1882.size; ++_i1885) { _key1883 = iprot.readString(); _val1884 = new com.cinchapi.concourse.thrift.TObject(); _val1884.read(iprot); struct.success.put(_key1883, _val1884); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, getKeysRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter1886 : struct.success .entrySet()) { oprot.writeString(_iter1886.getKey()); _iter1886.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecord_resultTupleSchemeFactory implements SchemeFactory { public getKeysRecord_resultTupleScheme getScheme() { return new getKeysRecord_resultTupleScheme(); } } private static class getKeysRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter1887 : struct.success .entrySet()) { oprot.writeString(_iter1887.getKey()); _iter1887.getValue().write(oprot); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1888 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map1888.size); String _key1889; com.cinchapi.concourse.thrift.TObject _val1890; for (int _i1891 = 0; _i1891 < _map1888.size; ++_i1891) { _key1889 = iprot.readString(); _val1890 = new com.cinchapi.concourse.thrift.TObject(); _val1890.read(iprot); struct.success.put(_key1889, _val1890); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeysRecordTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysRecordTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecordTime_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysRecordTime_args.class, metaDataMap); } public getKeysRecordTime_args() {} public getKeysRecordTime_args(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysRecordTime_args(getKeysRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysRecordTime_args deepCopy() { return new getKeysRecordTime_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysRecordTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public long getRecord() { return this.record; } public getKeysRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public getKeysRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysRecordTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysRecordTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeysRecordTime_args) return this.equals((getKeysRecordTime_args) that); return false; } public boolean equals(getKeysRecordTime_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysRecordTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeysRecordTime_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeysRecordTime_argsStandardSchemeFactory implements SchemeFactory { public getKeysRecordTime_argsStandardScheme getScheme() { return new getKeysRecordTime_argsStandardScheme(); } } private static class getKeysRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecordTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1892 = iprot .readListBegin(); struct.keys = new ArrayList( _list1892.size); String _elem1893; for (int _i1894 = 0; _i1894 < _list1892.size; ++_i1894) { _elem1893 = iprot.readString(); struct.keys.add(_elem1893); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeysRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1895 : struct.keys) { oprot.writeString(_iter1895); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecordTime_argsTupleSchemeFactory implements SchemeFactory { public getKeysRecordTime_argsTupleScheme getScheme() { return new getKeysRecordTime_argsTupleScheme(); } } private static class getKeysRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1896 : struct.keys) { oprot.writeString(_iter1896); } } } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list1897 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1897.size); String _elem1898; for (int _i1899 = 0; _i1899 < _list1897.size; ++_i1899) { _elem1898 = iprot.readString(); struct.keys.add(_elem1898); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysRecordTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecordTime_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysRecordTime_result.class, metaDataMap); } public getKeysRecordTime_result() {} public getKeysRecordTime_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeysRecordTime_result(getKeysRecordTime_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success.size()); for (Map.Entry other_element : other.success .entrySet()) { String other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element .getValue(); String __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public getKeysRecordTime_result deepCopy() { return new getKeysRecordTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, com.cinchapi.concourse.thrift.TObject val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeysRecordTime_result setSuccess( Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysRecordTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysRecordTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public getKeysRecordTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 getKeysRecordTime_resultStandardSchemeFactory implements SchemeFactory { public getKeysRecordTime_resultStandardScheme getScheme() { return new getKeysRecordTime_resultStandardScheme(); } } private static class getKeysRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1900 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map1900.size); String _key1901; com.cinchapi.concourse.thrift.TObject _val1902; for (int _i1903 = 0; _i1903 < _map1900.size; ++_i1903) { _key1901 = iprot.readString(); _val1902 = new com.cinchapi.concourse.thrift.TObject(); _val1902.read(iprot); struct.success.put(_key1901, _val1902); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, getKeysRecordTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter1904 : struct.success .entrySet()) { oprot.writeString(_iter1904.getKey()); _iter1904.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecordTime_resultTupleSchemeFactory implements SchemeFactory { public getKeysRecordTime_resultTupleScheme getScheme() { return new getKeysRecordTime_resultTupleScheme(); } } private static class getKeysRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter1905 : struct.success .entrySet()) { oprot.writeString(_iter1905.getKey()); _iter1905.getValue().write(oprot); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1906 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map1906.size); String _key1907; com.cinchapi.concourse.thrift.TObject _val1908; for (int _i1909 = 0; _i1909 < _map1906.size; ++_i1909) { _key1907 = iprot.readString(); _val1908 = new com.cinchapi.concourse.thrift.TObject(); _val1908.read(iprot); struct.success.put(_key1907, _val1908); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeysRecordTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecordTimestr_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysRecordTimestr_args.class, metaDataMap); } public getKeysRecordTimestr_args() {} public getKeysRecordTimestr_args(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysRecordTimestr_args(getKeysRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysRecordTimestr_args deepCopy() { return new getKeysRecordTimestr_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysRecordTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public long getRecord() { return this.record; } public getKeysRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public getKeysRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysRecordTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysRecordTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeysRecordTimestr_args) return this.equals((getKeysRecordTimestr_args) that); return false; } public boolean equals(getKeysRecordTimestr_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysRecordTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeysRecordTimestr_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeysRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public getKeysRecordTimestr_argsStandardScheme getScheme() { return new getKeysRecordTimestr_argsStandardScheme(); } } private static class getKeysRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecordTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1910 = iprot .readListBegin(); struct.keys = new ArrayList( _list1910.size); String _elem1911; for (int _i1912 = 0; _i1912 < _list1910.size; ++_i1912) { _elem1911 = iprot.readString(); struct.keys.add(_elem1911); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeysRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1913 : struct.keys) { oprot.writeString(_iter1913); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public getKeysRecordTimestr_argsTupleScheme getScheme() { return new getKeysRecordTimestr_argsTupleScheme(); } } private static class getKeysRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1914 : struct.keys) { oprot.writeString(_iter1914); } } } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list1915 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1915.size); String _elem1916; for (int _i1917 = 0; _i1917 < _list1915.size; ++_i1917) { _elem1916 = iprot.readString(); struct.keys.add(_elem1916); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysRecordTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysRecordTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecordTimestr_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysRecordTimestr_result.class, metaDataMap); } public getKeysRecordTimestr_result() {} public getKeysRecordTimestr_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public getKeysRecordTimestr_result(getKeysRecordTimestr_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success.size()); for (Map.Entry other_element : other.success .entrySet()) { String other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element .getValue(); String __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, com.cinchapi.concourse.thrift.TObject val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeysRecordTimestr_result setSuccess( Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysRecordTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysRecordTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeysRecordTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public getKeysRecordTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeysRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public getKeysRecordTimestr_resultStandardScheme getScheme() { return new getKeysRecordTimestr_resultStandardScheme(); } } private static class getKeysRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecordTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1918 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map1918.size); String _key1919; com.cinchapi.concourse.thrift.TObject _val1920; for (int _i1921 = 0; _i1921 < _map1918.size; ++_i1921) { _key1919 = iprot.readString(); _val1920 = new com.cinchapi.concourse.thrift.TObject(); _val1920.read(iprot); struct.success.put(_key1919, _val1920); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeysRecordTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter1922 : struct.success .entrySet()) { oprot.writeString(_iter1922.getKey()); _iter1922.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public getKeysRecordTimestr_resultTupleScheme getScheme() { return new getKeysRecordTimestr_resultTupleScheme(); } } private static class getKeysRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter1923 : struct.success .entrySet()) { oprot.writeString(_iter1923.getKey()); _iter1923.getValue().write(oprot); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1924 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map1924.size); String _key1925; com.cinchapi.concourse.thrift.TObject _val1926; for (int _i1927 = 0; _i1927 < _map1924.size; ++_i1927) { _key1925 = iprot.readString(); _val1926 = new com.cinchapi.concourse.thrift.TObject(); _val1926.read(iprot); struct.success.put(_key1925, _val1926); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class getKeysRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysRecords_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecords_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORDS((short) 2, "records"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysRecords_args.class, metaDataMap); } public getKeysRecords_args() {} public getKeysRecords_args(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysRecords_args(getKeysRecords_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysRecords_args deepCopy() { return new getKeysRecords_args(this); } @Override public void clear() { this.keys = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysRecords_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public getKeysRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeysRecords_args) return this.equals((getKeysRecords_args) that); return false; } public boolean equals(getKeysRecords_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysRecords_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeysRecords_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeysRecords_argsStandardSchemeFactory implements SchemeFactory { public getKeysRecords_argsStandardScheme getScheme() { return new getKeysRecords_argsStandardScheme(); } } private static class getKeysRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1928 = iprot .readListBegin(); struct.keys = new ArrayList( _list1928.size); String _elem1929; for (int _i1930 = 0; _i1930 < _list1928.size; ++_i1930) { _elem1929 = iprot.readString(); struct.keys.add(_elem1929); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1931 = iprot .readListBegin(); struct.records = new ArrayList( _list1931.size); long _elem1932; for (int _i1933 = 0; _i1933 < _list1931.size; ++_i1933) { _elem1932 = iprot.readI64(); struct.records.add(_elem1932); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeysRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1934 : struct.keys) { oprot.writeString(_iter1934); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1935 : struct.records) { oprot.writeI64(_iter1935); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecords_argsTupleSchemeFactory implements SchemeFactory { public getKeysRecords_argsTupleScheme getScheme() { return new getKeysRecords_argsTupleScheme(); } } private static class getKeysRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1936 : struct.keys) { oprot.writeString(_iter1936); } } } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1937 : struct.records) { oprot.writeI64(_iter1937); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list1938 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1938.size); String _elem1939; for (int _i1940 = 0; _i1940 < _list1938.size; ++_i1940) { _elem1939 = iprot.readString(); struct.keys.add(_elem1939); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list1941 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1941.size); long _elem1942; for (int _i1943 = 0; _i1943 < _list1941.size; ++_i1943) { _elem1942 = iprot.readI64(); struct.records.add(_elem1942); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecords_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysRecords_result.class, metaDataMap); } public getKeysRecords_result() {} public getKeysRecords_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeysRecords_result(getKeysRecords_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap( other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public getKeysRecords_result deepCopy() { return new getKeysRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getKeysRecords_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysRecords_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysRecords_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public getKeysRecords_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 getKeysRecords_resultStandardSchemeFactory implements SchemeFactory { public getKeysRecords_resultStandardScheme getScheme() { return new getKeysRecords_resultStandardScheme(); } } private static class getKeysRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1944 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map1944.size); long _key1945; Map _val1946; for (int _i1947 = 0; _i1947 < _map1944.size; ++_i1947) { _key1945 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1948 = iprot .readMapBegin(); _val1946 = new LinkedHashMap( 2 * _map1948.size); String _key1949; com.cinchapi.concourse.thrift.TObject _val1950; for (int _i1951 = 0; _i1951 < _map1948.size; ++_i1951) { _key1949 = iprot.readString(); _val1950 = new com.cinchapi.concourse.thrift.TObject(); _val1950.read(iprot); _val1946.put(_key1949, _val1950); } iprot.readMapEnd(); } struct.success.put(_key1945, _val1946); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, getKeysRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter1952 : struct.success .entrySet()) { oprot.writeI64(_iter1952.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter1952.getValue().size())); for (Map.Entry _iter1953 : _iter1952 .getValue().entrySet()) { oprot.writeString(_iter1953.getKey()); _iter1953.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecords_resultTupleSchemeFactory implements SchemeFactory { public getKeysRecords_resultTupleScheme getScheme() { return new getKeysRecords_resultTupleScheme(); } } private static class getKeysRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1954 : struct.success .entrySet()) { oprot.writeI64(_iter1954.getKey()); { oprot.writeI32(_iter1954.getValue().size()); for (Map.Entry _iter1955 : _iter1954 .getValue().entrySet()) { oprot.writeString(_iter1955.getKey()); _iter1955.getValue().write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1956 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map1956.size); long _key1957; Map _val1958; for (int _i1959 = 0; _i1959 < _map1956.size; ++_i1959) { _key1957 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1960 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1958 = new LinkedHashMap( 2 * _map1960.size); String _key1961; com.cinchapi.concourse.thrift.TObject _val1962; for (int _i1963 = 0; _i1963 < _map1960.size; ++_i1963) { _key1961 = iprot.readString(); _val1962 = new com.cinchapi.concourse.thrift.TObject(); _val1962.read(iprot); _val1958.put(_key1961, _val1962); } } struct.success.put(_key1957, _val1958); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeyRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyRecords_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyRecords_argsTupleSchemeFactory()); } public String key; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeyRecords_args.class, metaDataMap); } public getKeyRecords_args() {} public getKeyRecords_args(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyRecords_args(getKeyRecords_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyRecords_args deepCopy() { return new getKeyRecords_args(this); } @Override public void clear() { this.key = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyRecords_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public getKeyRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeyRecords_args) return this.equals((getKeyRecords_args) that); return false; } public boolean equals(getKeyRecords_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyRecords_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeyRecords_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeyRecords_argsStandardSchemeFactory implements SchemeFactory { public getKeyRecords_argsStandardScheme getScheme() { return new getKeyRecords_argsStandardScheme(); } } private static class getKeyRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1964 = iprot .readListBegin(); struct.records = new ArrayList( _list1964.size); long _elem1965; for (int _i1966 = 0; _i1966 < _list1964.size; ++_i1966) { _elem1965 = iprot.readI64(); struct.records.add(_elem1965); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeyRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1967 : struct.records) { oprot.writeI64(_iter1967); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecords_argsTupleSchemeFactory implements SchemeFactory { public getKeyRecords_argsTupleScheme getScheme() { return new getKeyRecords_argsTupleScheme(); } } private static class getKeyRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1968 : struct.records) { oprot.writeI64(_iter1968); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list1969 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1969.size); long _elem1970; for (int _i1971 = 0; _i1971 < _list1969.size; ++_i1971) { _elem1970 = iprot.readI64(); struct.records.add(_elem1970); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyRecords_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeyRecords_result.class, metaDataMap); } public getKeyRecords_result() {} public getKeyRecords_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeyRecords_result(getKeyRecords_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success.size()); for (Map.Entry other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public getKeyRecords_result deepCopy() { return new getKeyRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, com.cinchapi.concourse.thrift.TObject val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeyRecords_result setSuccess( Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeyRecords_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeyRecords_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public getKeyRecords_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 getKeyRecords_resultStandardSchemeFactory implements SchemeFactory { public getKeyRecords_resultStandardScheme getScheme() { return new getKeyRecords_resultStandardScheme(); } } private static class getKeyRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1972 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map1972.size); long _key1973; com.cinchapi.concourse.thrift.TObject _val1974; for (int _i1975 = 0; _i1975 < _map1972.size; ++_i1975) { _key1973 = iprot.readI64(); _val1974 = new com.cinchapi.concourse.thrift.TObject(); _val1974.read(iprot); struct.success.put(_key1973, _val1974); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, getKeyRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter1976 : struct.success .entrySet()) { oprot.writeI64(_iter1976.getKey()); _iter1976.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecords_resultTupleSchemeFactory implements SchemeFactory { public getKeyRecords_resultTupleScheme getScheme() { return new getKeyRecords_resultTupleScheme(); } } private static class getKeyRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter1977 : struct.success .entrySet()) { oprot.writeI64(_iter1977.getKey()); _iter1977.getValue().write(oprot); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1978 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map1978.size); long _key1979; com.cinchapi.concourse.thrift.TObject _val1980; for (int _i1981 = 0; _i1981 < _map1978.size; ++_i1981) { _key1979 = iprot.readI64(); _val1980 = new com.cinchapi.concourse.thrift.TObject(); _val1980.read(iprot); struct.success.put(_key1979, _val1980); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeyRecordsTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyRecordsTime_argsTupleSchemeFactory()); } public String key; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeyRecordsTime_args.class, metaDataMap); } public getKeyRecordsTime_args() {} public getKeyRecordsTime_args(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyRecordsTime_args(getKeyRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyRecordsTime_args deepCopy() { return new getKeyRecordsTime_args(this); } @Override public void clear() { this.key = null; this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyRecordsTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public getKeyRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public getKeyRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyRecordsTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyRecordsTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeyRecordsTime_args) return this.equals((getKeyRecordsTime_args) that); return false; } public boolean equals(getKeyRecordsTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyRecordsTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeyRecordsTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeyRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public getKeyRecordsTime_argsStandardScheme getScheme() { return new getKeyRecordsTime_argsStandardScheme(); } } private static class getKeyRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecordsTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1982 = iprot .readListBegin(); struct.records = new ArrayList( _list1982.size); long _elem1983; for (int _i1984 = 0; _i1984 < _list1982.size; ++_i1984) { _elem1983 = iprot.readI64(); struct.records.add(_elem1983); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeyRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1985 : struct.records) { oprot.writeI64(_iter1985); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public getKeyRecordsTime_argsTupleScheme getScheme() { return new getKeyRecordsTime_argsTupleScheme(); } } private static class getKeyRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1986 : struct.records) { oprot.writeI64(_iter1986); } } } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list1987 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1987.size); long _elem1988; for (int _i1989 = 0; _i1989 < _list1987.size; ++_i1989) { _elem1988 = iprot.readI64(); struct.records.add(_elem1988); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyRecordsTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyRecordsTime_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeyRecordsTime_result.class, metaDataMap); } public getKeyRecordsTime_result() {} public getKeyRecordsTime_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeyRecordsTime_result(getKeyRecordsTime_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success.size()); for (Map.Entry other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public getKeyRecordsTime_result deepCopy() { return new getKeyRecordsTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, com.cinchapi.concourse.thrift.TObject val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeyRecordsTime_result setSuccess( Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeyRecordsTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeyRecordsTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public getKeyRecordsTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 getKeyRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public getKeyRecordsTime_resultStandardScheme getScheme() { return new getKeyRecordsTime_resultStandardScheme(); } } private static class getKeyRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecordsTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map1990 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map1990.size); long _key1991; com.cinchapi.concourse.thrift.TObject _val1992; for (int _i1993 = 0; _i1993 < _map1990.size; ++_i1993) { _key1991 = iprot.readI64(); _val1992 = new com.cinchapi.concourse.thrift.TObject(); _val1992.read(iprot); struct.success.put(_key1991, _val1992); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, getKeyRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter1994 : struct.success .entrySet()) { oprot.writeI64(_iter1994.getKey()); _iter1994.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public getKeyRecordsTime_resultTupleScheme getScheme() { return new getKeyRecordsTime_resultTupleScheme(); } } private static class getKeyRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter1995 : struct.success .entrySet()) { oprot.writeI64(_iter1995.getKey()); _iter1995.getValue().write(oprot); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1996 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map1996.size); long _key1997; com.cinchapi.concourse.thrift.TObject _val1998; for (int _i1999 = 0; _i1999 < _map1996.size; ++_i1999) { _key1997 = iprot.readI64(); _val1998 = new com.cinchapi.concourse.thrift.TObject(); _val1998.read(iprot); struct.success.put(_key1997, _val1998); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeyRecordsTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyRecordsTimestr_argsTupleSchemeFactory()); } public String key; // required public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeyRecordsTimestr_args.class, metaDataMap); } public getKeyRecordsTimestr_args() {} public getKeyRecordsTimestr_args(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyRecordsTimestr_args(getKeyRecordsTimestr_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyRecordsTimestr_args deepCopy() { return new getKeyRecordsTimestr_args(this); } @Override public void clear() { this.key = null; this.records = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyRecordsTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public getKeyRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public getKeyRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyRecordsTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyRecordsTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeyRecordsTimestr_args) return this.equals((getKeyRecordsTimestr_args) that); return false; } public boolean equals(getKeyRecordsTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyRecordsTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeyRecordsTimestr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeyRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public getKeyRecordsTimestr_argsStandardScheme getScheme() { return new getKeyRecordsTimestr_argsStandardScheme(); } } private static class getKeyRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2000 = iprot .readListBegin(); struct.records = new ArrayList( _list2000.size); long _elem2001; for (int _i2002 = 0; _i2002 < _list2000.size; ++_i2002) { _elem2001 = iprot.readI64(); struct.records.add(_elem2001); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2003 : struct.records) { oprot.writeI64(_iter2003); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public getKeyRecordsTimestr_argsTupleScheme getScheme() { return new getKeyRecordsTimestr_argsTupleScheme(); } } private static class getKeyRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2004 : struct.records) { oprot.writeI64(_iter2004); } } } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list2005 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2005.size); long _elem2006; for (int _i2007 = 0; _i2007 < _list2005.size; ++_i2007) { _elem2006 = iprot.readI64(); struct.records.add(_elem2006); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyRecordsTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyRecordsTimestr_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeyRecordsTimestr_result.class, metaDataMap); } public getKeyRecordsTimestr_result() {} public getKeyRecordsTimestr_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public getKeyRecordsTimestr_result(getKeyRecordsTimestr_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success.size()); for (Map.Entry other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, com.cinchapi.concourse.thrift.TObject val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeyRecordsTimestr_result setSuccess( Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeyRecordsTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeyRecordsTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeyRecordsTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public getKeyRecordsTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeyRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public getKeyRecordsTimestr_resultStandardScheme getScheme() { return new getKeyRecordsTimestr_resultStandardScheme(); } } private static class getKeyRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2008 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map2008.size); long _key2009; com.cinchapi.concourse.thrift.TObject _val2010; for (int _i2011 = 0; _i2011 < _map2008.size; ++_i2011) { _key2009 = iprot.readI64(); _val2010 = new com.cinchapi.concourse.thrift.TObject(); _val2010.read(iprot); struct.success.put(_key2009, _val2010); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter2012 : struct.success .entrySet()) { oprot.writeI64(_iter2012.getKey()); _iter2012.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public getKeyRecordsTimestr_resultTupleScheme getScheme() { return new getKeyRecordsTimestr_resultTupleScheme(); } } private static class getKeyRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter2013 : struct.success .entrySet()) { oprot.writeI64(_iter2013.getKey()); _iter2013.getValue().write(oprot); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2014 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map2014.size); long _key2015; com.cinchapi.concourse.thrift.TObject _val2016; for (int _i2017 = 0; _i2017 < _map2014.size; ++_i2017) { _key2015 = iprot.readI64(); _val2016 = new com.cinchapi.concourse.thrift.TObject(); _val2016.read(iprot); struct.success.put(_key2015, _val2016); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class getKeysRecordsTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecordsTime_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysRecordsTime_args.class, metaDataMap); } public getKeysRecordsTime_args() {} public getKeysRecordsTime_args(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysRecordsTime_args(getKeysRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysRecordsTime_args deepCopy() { return new getKeysRecordsTime_args(this); } @Override public void clear() { this.keys = null; this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysRecordsTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public getKeysRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public getKeysRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysRecordsTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysRecordsTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeysRecordsTime_args) return this.equals((getKeysRecordsTime_args) that); return false; } public boolean equals(getKeysRecordsTime_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysRecordsTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeysRecordsTime_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeysRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public getKeysRecordsTime_argsStandardScheme getScheme() { return new getKeysRecordsTime_argsStandardScheme(); } } private static class getKeysRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecordsTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2018 = iprot .readListBegin(); struct.keys = new ArrayList( _list2018.size); String _elem2019; for (int _i2020 = 0; _i2020 < _list2018.size; ++_i2020) { _elem2019 = iprot.readString(); struct.keys.add(_elem2019); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2021 = iprot .readListBegin(); struct.records = new ArrayList( _list2021.size); long _elem2022; for (int _i2023 = 0; _i2023 < _list2021.size; ++_i2023) { _elem2022 = iprot.readI64(); struct.records.add(_elem2022); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeysRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2024 : struct.keys) { oprot.writeString(_iter2024); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2025 : struct.records) { oprot.writeI64(_iter2025); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public getKeysRecordsTime_argsTupleScheme getScheme() { return new getKeysRecordsTime_argsTupleScheme(); } } private static class getKeysRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2026 : struct.keys) { oprot.writeString(_iter2026); } } } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2027 : struct.records) { oprot.writeI64(_iter2027); } } } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list2028 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2028.size); String _elem2029; for (int _i2030 = 0; _i2030 < _list2028.size; ++_i2030) { _elem2029 = iprot.readString(); struct.keys.add(_elem2029); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list2031 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2031.size); long _elem2032; for (int _i2033 = 0; _i2033 < _list2031.size; ++_i2033) { _elem2032 = iprot.readI64(); struct.records.add(_elem2032); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysRecordsTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecordsTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysRecordsTime_result.class, metaDataMap); } public getKeysRecordsTime_result() {} public getKeysRecordsTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeysRecordsTime_result(getKeysRecordsTime_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap( other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public getKeysRecordsTime_result deepCopy() { return new getKeysRecordsTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getKeysRecordsTime_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysRecordsTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysRecordsTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public getKeysRecordsTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 getKeysRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public getKeysRecordsTime_resultStandardScheme getScheme() { return new getKeysRecordsTime_resultStandardScheme(); } } private static class getKeysRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecordsTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2034 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map2034.size); long _key2035; Map _val2036; for (int _i2037 = 0; _i2037 < _map2034.size; ++_i2037) { _key2035 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2038 = iprot .readMapBegin(); _val2036 = new LinkedHashMap( 2 * _map2038.size); String _key2039; com.cinchapi.concourse.thrift.TObject _val2040; for (int _i2041 = 0; _i2041 < _map2038.size; ++_i2041) { _key2039 = iprot.readString(); _val2040 = new com.cinchapi.concourse.thrift.TObject(); _val2040.read(iprot); _val2036.put(_key2039, _val2040); } iprot.readMapEnd(); } struct.success.put(_key2035, _val2036); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, getKeysRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2042 : struct.success .entrySet()) { oprot.writeI64(_iter2042.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2042.getValue().size())); for (Map.Entry _iter2043 : _iter2042 .getValue().entrySet()) { oprot.writeString(_iter2043.getKey()); _iter2043.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public getKeysRecordsTime_resultTupleScheme getScheme() { return new getKeysRecordsTime_resultTupleScheme(); } } private static class getKeysRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2044 : struct.success .entrySet()) { oprot.writeI64(_iter2044.getKey()); { oprot.writeI32(_iter2044.getValue().size()); for (Map.Entry _iter2045 : _iter2044 .getValue().entrySet()) { oprot.writeString(_iter2045.getKey()); _iter2045.getValue().write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2046 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map2046.size); long _key2047; Map _val2048; for (int _i2049 = 0; _i2049 < _map2046.size; ++_i2049) { _key2047 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2050 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2048 = new LinkedHashMap( 2 * _map2050.size); String _key2051; com.cinchapi.concourse.thrift.TObject _val2052; for (int _i2053 = 0; _i2053 < _map2050.size; ++_i2053) { _key2051 = iprot.readString(); _val2052 = new com.cinchapi.concourse.thrift.TObject(); _val2052.read(iprot); _val2048.put(_key2051, _val2052); } } struct.success.put(_key2047, _val2048); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeysRecordsTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecordsTimestr_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysRecordsTimestr_args.class, metaDataMap); } public getKeysRecordsTimestr_args() {} public getKeysRecordsTimestr_args(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysRecordsTimestr_args(getKeysRecordsTimestr_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysRecordsTimestr_args deepCopy() { return new getKeysRecordsTimestr_args(this); } @Override public void clear() { this.keys = null; this.records = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysRecordsTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public getKeysRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public getKeysRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysRecordsTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysRecordsTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeysRecordsTimestr_args) return this.equals((getKeysRecordsTimestr_args) that); return false; } public boolean equals(getKeysRecordsTimestr_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysRecordsTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeysRecordsTimestr_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeysRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public getKeysRecordsTimestr_argsStandardScheme getScheme() { return new getKeysRecordsTimestr_argsStandardScheme(); } } private static class getKeysRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2054 = iprot .readListBegin(); struct.keys = new ArrayList( _list2054.size); String _elem2055; for (int _i2056 = 0; _i2056 < _list2054.size; ++_i2056) { _elem2055 = iprot.readString(); struct.keys.add(_elem2055); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2057 = iprot .readListBegin(); struct.records = new ArrayList( _list2057.size); long _elem2058; for (int _i2059 = 0; _i2059 < _list2057.size; ++_i2059) { _elem2058 = iprot.readI64(); struct.records.add(_elem2058); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2060 : struct.keys) { oprot.writeString(_iter2060); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2061 : struct.records) { oprot.writeI64(_iter2061); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public getKeysRecordsTimestr_argsTupleScheme getScheme() { return new getKeysRecordsTimestr_argsTupleScheme(); } } private static class getKeysRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2062 : struct.keys) { oprot.writeString(_iter2062); } } } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2063 : struct.records) { oprot.writeI64(_iter2063); } } } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list2064 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2064.size); String _elem2065; for (int _i2066 = 0; _i2066 < _list2064.size; ++_i2066) { _elem2065 = iprot.readString(); struct.keys.add(_elem2065); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list2067 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2067.size); long _elem2068; for (int _i2069 = 0; _i2069 < _list2067.size; ++_i2069) { _elem2068 = iprot.readI64(); struct.records.add(_elem2068); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysRecordsTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecordsTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysRecordsTimestr_result.class, metaDataMap); } public getKeysRecordsTimestr_result() {} public getKeysRecordsTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public getKeysRecordsTimestr_result( getKeysRecordsTimestr_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap( other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getKeysRecordsTimestr_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysRecordsTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysRecordsTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeysRecordsTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public getKeysRecordsTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeysRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public getKeysRecordsTimestr_resultStandardScheme getScheme() { return new getKeysRecordsTimestr_resultStandardScheme(); } } private static class getKeysRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2070 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map2070.size); long _key2071; Map _val2072; for (int _i2073 = 0; _i2073 < _map2070.size; ++_i2073) { _key2071 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2074 = iprot .readMapBegin(); _val2072 = new LinkedHashMap( 2 * _map2074.size); String _key2075; com.cinchapi.concourse.thrift.TObject _val2076; for (int _i2077 = 0; _i2077 < _map2074.size; ++_i2077) { _key2075 = iprot.readString(); _val2076 = new com.cinchapi.concourse.thrift.TObject(); _val2076.read(iprot); _val2072.put(_key2075, _val2076); } iprot.readMapEnd(); } struct.success.put(_key2071, _val2072); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2078 : struct.success .entrySet()) { oprot.writeI64(_iter2078.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2078.getValue().size())); for (Map.Entry _iter2079 : _iter2078 .getValue().entrySet()) { oprot.writeString(_iter2079.getKey()); _iter2079.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public getKeysRecordsTimestr_resultTupleScheme getScheme() { return new getKeysRecordsTimestr_resultTupleScheme(); } } private static class getKeysRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2080 : struct.success .entrySet()) { oprot.writeI64(_iter2080.getKey()); { oprot.writeI32(_iter2080.getValue().size()); for (Map.Entry _iter2081 : _iter2080 .getValue().entrySet()) { oprot.writeString(_iter2081.getKey()); _iter2081.getValue().write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2082 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map2082.size); long _key2083; Map _val2084; for (int _i2085 = 0; _i2085 < _map2082.size; ++_i2085) { _key2083 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2086 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2084 = new LinkedHashMap( 2 * _map2086.size); String _key2087; com.cinchapi.concourse.thrift.TObject _val2088; for (int _i2089 = 0; _i2089 < _map2086.size; ++_i2089) { _key2087 = iprot.readString(); _val2088 = new com.cinchapi.concourse.thrift.TObject(); _val2088.read(iprot); _val2084.put(_key2087, _val2088); } } struct.success.put(_key2083, _val2084); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class getKeyCriteria_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyCriteria_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCriteria_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeyCriteria_args.class, metaDataMap); } public getKeyCriteria_args() {} public getKeyCriteria_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyCriteria_args(getKeyCriteria_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyCriteria_args deepCopy() { return new getKeyCriteria_args(this); } @Override public void clear() { this.key = null; this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyCriteria_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public getKeyCriteria_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyCriteria_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyCriteria_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeyCriteria_args) return this.equals((getKeyCriteria_args) that); return false; } public boolean equals(getKeyCriteria_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyCriteria_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeyCriteria_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeyCriteria_argsStandardSchemeFactory implements SchemeFactory { public getKeyCriteria_argsStandardScheme getScheme() { return new getKeyCriteria_argsStandardScheme(); } } private static class getKeyCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCriteria_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeyCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCriteria_argsTupleSchemeFactory implements SchemeFactory { public getKeyCriteria_argsTupleScheme getScheme() { return new getKeyCriteria_argsTupleScheme(); } } private static class getKeyCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyCriteria_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCriteria_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeyCriteria_result.class, metaDataMap); } public getKeyCriteria_result() {} public getKeyCriteria_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeyCriteria_result(getKeyCriteria_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success.size()); for (Map.Entry other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public getKeyCriteria_result deepCopy() { return new getKeyCriteria_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, com.cinchapi.concourse.thrift.TObject val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeyCriteria_result setSuccess( Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeyCriteria_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeyCriteria_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public getKeyCriteria_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 getKeyCriteria_resultStandardSchemeFactory implements SchemeFactory { public getKeyCriteria_resultStandardScheme getScheme() { return new getKeyCriteria_resultStandardScheme(); } } private static class getKeyCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCriteria_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2090 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map2090.size); long _key2091; com.cinchapi.concourse.thrift.TObject _val2092; for (int _i2093 = 0; _i2093 < _map2090.size; ++_i2093) { _key2091 = iprot.readI64(); _val2092 = new com.cinchapi.concourse.thrift.TObject(); _val2092.read(iprot); struct.success.put(_key2091, _val2092); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, getKeyCriteria_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter2094 : struct.success .entrySet()) { oprot.writeI64(_iter2094.getKey()); _iter2094.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCriteria_resultTupleSchemeFactory implements SchemeFactory { public getKeyCriteria_resultTupleScheme getScheme() { return new getKeyCriteria_resultTupleScheme(); } } private static class getKeyCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter2095 : struct.success .entrySet()) { oprot.writeI64(_iter2095.getKey()); _iter2095.getValue().write(oprot); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2096 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map2096.size); long _key2097; com.cinchapi.concourse.thrift.TObject _val2098; for (int _i2099 = 0; _i2099 < _map2096.size; ++_i2099) { _key2097 = iprot.readI64(); _val2098 = new com.cinchapi.concourse.thrift.TObject(); _val2098.read(iprot); struct.success.put(_key2097, _val2098); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getCriteria_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getCriteria_args"); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCriteria_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CRITERIA((short) 1, "criteria"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CRITERIA return CRITERIA; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(getCriteria_args.class, metaDataMap); } public getCriteria_args() {} public getCriteria_args( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getCriteria_args(getCriteria_args other) { if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getCriteria_args deepCopy() { return new getCriteria_args(this); } @Override public void clear() { this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public getCriteria_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getCriteria_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getCriteria_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getCriteria_args) return this.equals((getCriteria_args) that); return false; } public boolean equals(getCriteria_args that) { if(that == null) return false; boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getCriteria_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getCriteria_args("); boolean first = true; sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getCriteria_argsStandardSchemeFactory implements SchemeFactory { public getCriteria_argsStandardScheme getScheme() { return new getCriteria_argsStandardScheme(); } } private static class getCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCriteria_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCriteria_argsTupleSchemeFactory implements SchemeFactory { public getCriteria_argsTupleScheme getScheme() { return new getCriteria_argsTupleScheme(); } } private static class getCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCriteria()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getCriteria_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCriteria_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getCriteria_result.class, metaDataMap); } public getCriteria_result() {} public getCriteria_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getCriteria_result(getCriteria_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap( other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public getCriteria_result deepCopy() { return new getCriteria_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getCriteria_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getCriteria_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getCriteria_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public getCriteria_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 getCriteria_resultStandardSchemeFactory implements SchemeFactory { public getCriteria_resultStandardScheme getScheme() { return new getCriteria_resultStandardScheme(); } } private static class getCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCriteria_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2100 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map2100.size); long _key2101; Map _val2102; for (int _i2103 = 0; _i2103 < _map2100.size; ++_i2103) { _key2101 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2104 = iprot .readMapBegin(); _val2102 = new LinkedHashMap( 2 * _map2104.size); String _key2105; com.cinchapi.concourse.thrift.TObject _val2106; for (int _i2107 = 0; _i2107 < _map2104.size; ++_i2107) { _key2105 = iprot.readString(); _val2106 = new com.cinchapi.concourse.thrift.TObject(); _val2106.read(iprot); _val2102.put(_key2105, _val2106); } iprot.readMapEnd(); } struct.success.put(_key2101, _val2102); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, getCriteria_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2108 : struct.success .entrySet()) { oprot.writeI64(_iter2108.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2108.getValue().size())); for (Map.Entry _iter2109 : _iter2108 .getValue().entrySet()) { oprot.writeString(_iter2109.getKey()); _iter2109.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCriteria_resultTupleSchemeFactory implements SchemeFactory { public getCriteria_resultTupleScheme getScheme() { return new getCriteria_resultTupleScheme(); } } private static class getCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2110 : struct.success .entrySet()) { oprot.writeI64(_iter2110.getKey()); { oprot.writeI32(_iter2110.getValue().size()); for (Map.Entry _iter2111 : _iter2110 .getValue().entrySet()) { oprot.writeString(_iter2111.getKey()); _iter2111.getValue().write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2112 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map2112.size); long _key2113; Map _val2114; for (int _i2115 = 0; _i2115 < _map2112.size; ++_i2115) { _key2113 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2116 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2114 = new LinkedHashMap( 2 * _map2116.size); String _key2117; com.cinchapi.concourse.thrift.TObject _val2118; for (int _i2119 = 0; _i2119 < _map2116.size; ++_i2119) { _key2117 = iprot.readString(); _val2118 = new com.cinchapi.concourse.thrift.TObject(); _val2118.read(iprot); _val2114.put(_key2117, _val2118); } } struct.success.put(_key2113, _val2114); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getCcl_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getCcl_args"); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCcl_argsTupleSchemeFactory()); } public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CCL((short) 1, "ccl"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CCL return CCL; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(getCcl_args.class, metaDataMap); } public getCcl_args() {} public getCcl_args(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getCcl_args(getCcl_args other) { if(other.isSetCcl()) { this.ccl = other.ccl; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getCcl_args deepCopy() { return new getCcl_args(this); } @Override public void clear() { this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public String getCcl() { return this.ccl; } public getCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getCcl_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getCcl_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getCcl_args) return this.equals((getCcl_args) that); return false; } public boolean equals(getCcl_args that) { if(that == null) return false; boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getCcl_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getCcl_args("); boolean first = true; sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getCcl_argsStandardSchemeFactory implements SchemeFactory { public getCcl_argsStandardScheme getScheme() { return new getCcl_argsStandardScheme(); } } private static class getCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCcl_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCcl_argsTupleSchemeFactory implements SchemeFactory { public getCcl_argsTupleScheme getScheme() { return new getCcl_argsTupleScheme(); } } private static class getCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCcl()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getCcl_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCcl_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(getCcl_result.class, metaDataMap); } public getCcl_result() {} public getCcl_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public getCcl_result(getCcl_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap( other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getCcl_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getCcl_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getCcl_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getCcl_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public getCcl_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getCcl_resultStandardSchemeFactory implements SchemeFactory { public getCcl_resultStandardScheme getScheme() { return new getCcl_resultStandardScheme(); } } private static class getCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCcl_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2120 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map2120.size); long _key2121; Map _val2122; for (int _i2123 = 0; _i2123 < _map2120.size; ++_i2123) { _key2121 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2124 = iprot .readMapBegin(); _val2122 = new LinkedHashMap( 2 * _map2124.size); String _key2125; com.cinchapi.concourse.thrift.TObject _val2126; for (int _i2127 = 0; _i2127 < _map2124.size; ++_i2127) { _key2125 = iprot.readString(); _val2126 = new com.cinchapi.concourse.thrift.TObject(); _val2126.read(iprot); _val2122.put(_key2125, _val2126); } iprot.readMapEnd(); } struct.success.put(_key2121, _val2122); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2128 : struct.success .entrySet()) { oprot.writeI64(_iter2128.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2128.getValue().size())); for (Map.Entry _iter2129 : _iter2128 .getValue().entrySet()) { oprot.writeString(_iter2129.getKey()); _iter2129.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCcl_resultTupleSchemeFactory implements SchemeFactory { public getCcl_resultTupleScheme getScheme() { return new getCcl_resultTupleScheme(); } } private static class getCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2130 : struct.success .entrySet()) { oprot.writeI64(_iter2130.getKey()); { oprot.writeI32(_iter2130.getValue().size()); for (Map.Entry _iter2131 : _iter2130 .getValue().entrySet()) { oprot.writeString(_iter2131.getKey()); _iter2131.getValue().write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2132 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map2132.size); long _key2133; Map _val2134; for (int _i2135 = 0; _i2135 < _map2132.size; ++_i2135) { _key2133 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2136 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2134 = new LinkedHashMap( 2 * _map2136.size); String _key2137; com.cinchapi.concourse.thrift.TObject _val2138; for (int _i2139 = 0; _i2139 < _map2136.size; ++_i2139) { _key2137 = iprot.readString(); _val2138 = new com.cinchapi.concourse.thrift.TObject(); _val2138.read(iprot); _val2134.put(_key2137, _val2138); } } struct.success.put(_key2133, _val2134); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class getCriteriaTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getCriteriaTime_args"); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCriteriaTime_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CRITERIA((short) 1, "criteria"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CRITERIA return CRITERIA; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getCriteriaTime_args.class, metaDataMap); } public getCriteriaTime_args() {} public getCriteriaTime_args( com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getCriteriaTime_args(getCriteriaTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getCriteriaTime_args deepCopy() { return new getCriteriaTime_args(this); } @Override public void clear() { this.criteria = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public getCriteriaTime_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public long getTimestamp() { return this.timestamp; } public getCriteriaTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getCriteriaTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getCriteriaTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getCriteriaTime_args) return this.equals((getCriteriaTime_args) that); return false; } public boolean equals(getCriteriaTime_args that) { if(that == null) return false; boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getCriteriaTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getCriteriaTime_args("); boolean first = true; sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public getCriteriaTime_argsStandardScheme getScheme() { return new getCriteriaTime_argsStandardScheme(); } } private static class getCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCriteriaTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getCriteriaTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public getCriteriaTime_argsTupleScheme getScheme() { return new getCriteriaTime_argsTupleScheme(); } } private static class getCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCriteria()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getCriteriaTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCriteriaTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getCriteriaTime_result.class, metaDataMap); } public getCriteriaTime_result() {} public getCriteriaTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getCriteriaTime_result(getCriteriaTime_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap( other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public getCriteriaTime_result deepCopy() { return new getCriteriaTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getCriteriaTime_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getCriteriaTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getCriteriaTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public getCriteriaTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 getCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public getCriteriaTime_resultStandardScheme getScheme() { return new getCriteriaTime_resultStandardScheme(); } } private static class getCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCriteriaTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2140 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map2140.size); long _key2141; Map _val2142; for (int _i2143 = 0; _i2143 < _map2140.size; ++_i2143) { _key2141 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2144 = iprot .readMapBegin(); _val2142 = new LinkedHashMap( 2 * _map2144.size); String _key2145; com.cinchapi.concourse.thrift.TObject _val2146; for (int _i2147 = 0; _i2147 < _map2144.size; ++_i2147) { _key2145 = iprot.readString(); _val2146 = new com.cinchapi.concourse.thrift.TObject(); _val2146.read(iprot); _val2142.put(_key2145, _val2146); } iprot.readMapEnd(); } struct.success.put(_key2141, _val2142); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, getCriteriaTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2148 : struct.success .entrySet()) { oprot.writeI64(_iter2148.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2148.getValue().size())); for (Map.Entry _iter2149 : _iter2148 .getValue().entrySet()) { oprot.writeString(_iter2149.getKey()); _iter2149.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public getCriteriaTime_resultTupleScheme getScheme() { return new getCriteriaTime_resultTupleScheme(); } } private static class getCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2150 : struct.success .entrySet()) { oprot.writeI64(_iter2150.getKey()); { oprot.writeI32(_iter2150.getValue().size()); for (Map.Entry _iter2151 : _iter2150 .getValue().entrySet()) { oprot.writeString(_iter2151.getKey()); _iter2151.getValue().write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2152 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map2152.size); long _key2153; Map _val2154; for (int _i2155 = 0; _i2155 < _map2152.size; ++_i2155) { _key2153 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2156 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2154 = new LinkedHashMap( 2 * _map2156.size); String _key2157; com.cinchapi.concourse.thrift.TObject _val2158; for (int _i2159 = 0; _i2159 < _map2156.size; ++_i2159) { _key2157 = iprot.readString(); _val2158 = new com.cinchapi.concourse.thrift.TObject(); _val2158.read(iprot); _val2154.put(_key2157, _val2158); } } struct.success.put(_key2153, _val2154); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getCriteriaTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getCriteriaTimestr_args"); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCriteriaTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCriteriaTimestr_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CRITERIA((short) 1, "criteria"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CRITERIA return CRITERIA; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getCriteriaTimestr_args.class, metaDataMap); } public getCriteriaTimestr_args() {} public getCriteriaTimestr_args( com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getCriteriaTimestr_args(getCriteriaTimestr_args other) { if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getCriteriaTimestr_args deepCopy() { return new getCriteriaTimestr_args(this); } @Override public void clear() { this.criteria = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public getCriteriaTimestr_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public String getTimestamp() { return this.timestamp; } public getCriteriaTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getCriteriaTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getCriteriaTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getCriteriaTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getCriteriaTimestr_args) return this.equals((getCriteriaTimestr_args) that); return false; } public boolean equals(getCriteriaTimestr_args that) { if(that == null) return false; boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getCriteriaTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getCriteriaTimestr_args("); boolean first = true; sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getCriteriaTimestr_argsStandardSchemeFactory implements SchemeFactory { public getCriteriaTimestr_argsStandardScheme getScheme() { return new getCriteriaTimestr_argsStandardScheme(); } } private static class getCriteriaTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCriteriaTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getCriteriaTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCriteriaTimestr_argsTupleSchemeFactory implements SchemeFactory { public getCriteriaTimestr_argsTupleScheme getScheme() { return new getCriteriaTimestr_argsTupleScheme(); } } private static class getCriteriaTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCriteria()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getCriteriaTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getCriteriaTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCriteriaTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCriteriaTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getCriteriaTimestr_result.class, metaDataMap); } public getCriteriaTimestr_result() {} public getCriteriaTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public getCriteriaTimestr_result(getCriteriaTimestr_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap( other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getCriteriaTimestr_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getCriteriaTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getCriteriaTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getCriteriaTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public getCriteriaTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getCriteriaTimestr_resultStandardSchemeFactory implements SchemeFactory { public getCriteriaTimestr_resultStandardScheme getScheme() { return new getCriteriaTimestr_resultStandardScheme(); } } private static class getCriteriaTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCriteriaTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2160 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map2160.size); long _key2161; Map _val2162; for (int _i2163 = 0; _i2163 < _map2160.size; ++_i2163) { _key2161 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2164 = iprot .readMapBegin(); _val2162 = new LinkedHashMap( 2 * _map2164.size); String _key2165; com.cinchapi.concourse.thrift.TObject _val2166; for (int _i2167 = 0; _i2167 < _map2164.size; ++_i2167) { _key2165 = iprot.readString(); _val2166 = new com.cinchapi.concourse.thrift.TObject(); _val2166.read(iprot); _val2162.put(_key2165, _val2166); } iprot.readMapEnd(); } struct.success.put(_key2161, _val2162); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getCriteriaTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2168 : struct.success .entrySet()) { oprot.writeI64(_iter2168.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2168.getValue().size())); for (Map.Entry _iter2169 : _iter2168 .getValue().entrySet()) { oprot.writeString(_iter2169.getKey()); _iter2169.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCriteriaTimestr_resultTupleSchemeFactory implements SchemeFactory { public getCriteriaTimestr_resultTupleScheme getScheme() { return new getCriteriaTimestr_resultTupleScheme(); } } private static class getCriteriaTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2170 : struct.success .entrySet()) { oprot.writeI64(_iter2170.getKey()); { oprot.writeI32(_iter2170.getValue().size()); for (Map.Entry _iter2171 : _iter2170 .getValue().entrySet()) { oprot.writeString(_iter2171.getKey()); _iter2171.getValue().write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2172 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map2172.size); long _key2173; Map _val2174; for (int _i2175 = 0; _i2175 < _map2172.size; ++_i2175) { _key2173 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2176 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2174 = new LinkedHashMap( 2 * _map2176.size); String _key2177; com.cinchapi.concourse.thrift.TObject _val2178; for (int _i2179 = 0; _i2179 < _map2176.size; ++_i2179) { _key2177 = iprot.readString(); _val2178 = new com.cinchapi.concourse.thrift.TObject(); _val2178.read(iprot); _val2174.put(_key2177, _val2178); } } struct.success.put(_key2173, _val2174); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class getCclTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getCclTime_args"); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCclTime_argsTupleSchemeFactory()); } public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CCL((short) 1, "ccl"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CCL return CCL; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(getCclTime_args.class, metaDataMap); } public getCclTime_args() {} public getCclTime_args(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getCclTime_args(getCclTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetCcl()) { this.ccl = other.ccl; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getCclTime_args deepCopy() { return new getCclTime_args(this); } @Override public void clear() { this.ccl = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getCcl() { return this.ccl; } public getCclTime_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public long getTimestamp() { return this.timestamp; } public getCclTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getCclTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getCclTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getCclTime_args) return this.equals((getCclTime_args) that); return false; } public boolean equals(getCclTime_args that) { if(that == null) return false; boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getCclTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getCclTime_args("); boolean first = true; sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getCclTime_argsStandardSchemeFactory implements SchemeFactory { public getCclTime_argsStandardScheme getScheme() { return new getCclTime_argsStandardScheme(); } } private static class getCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCclTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getCclTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCclTime_argsTupleSchemeFactory implements SchemeFactory { public getCclTime_argsTupleScheme getScheme() { return new getCclTime_argsTupleScheme(); } } private static class getCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCcl()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getCclTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getCclTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCclTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(getCclTime_result.class, metaDataMap); } public getCclTime_result() {} public getCclTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public getCclTime_result(getCclTime_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap( other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getCclTime_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getCclTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getCclTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getCclTime_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public getCclTime_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getCclTime_resultStandardSchemeFactory implements SchemeFactory { public getCclTime_resultStandardScheme getScheme() { return new getCclTime_resultStandardScheme(); } } private static class getCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCclTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2180 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map2180.size); long _key2181; Map _val2182; for (int _i2183 = 0; _i2183 < _map2180.size; ++_i2183) { _key2181 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2184 = iprot .readMapBegin(); _val2182 = new LinkedHashMap( 2 * _map2184.size); String _key2185; com.cinchapi.concourse.thrift.TObject _val2186; for (int _i2187 = 0; _i2187 < _map2184.size; ++_i2187) { _key2185 = iprot.readString(); _val2186 = new com.cinchapi.concourse.thrift.TObject(); _val2186.read(iprot); _val2182.put(_key2185, _val2186); } iprot.readMapEnd(); } struct.success.put(_key2181, _val2182); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getCclTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2188 : struct.success .entrySet()) { oprot.writeI64(_iter2188.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2188.getValue().size())); for (Map.Entry _iter2189 : _iter2188 .getValue().entrySet()) { oprot.writeString(_iter2189.getKey()); _iter2189.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCclTime_resultTupleSchemeFactory implements SchemeFactory { public getCclTime_resultTupleScheme getScheme() { return new getCclTime_resultTupleScheme(); } } private static class getCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2190 : struct.success .entrySet()) { oprot.writeI64(_iter2190.getKey()); { oprot.writeI32(_iter2190.getValue().size()); for (Map.Entry _iter2191 : _iter2190 .getValue().entrySet()) { oprot.writeString(_iter2191.getKey()); _iter2191.getValue().write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2192 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map2192.size); long _key2193; Map _val2194; for (int _i2195 = 0; _i2195 < _map2192.size; ++_i2195) { _key2193 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2196 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2194 = new LinkedHashMap( 2 * _map2196.size); String _key2197; com.cinchapi.concourse.thrift.TObject _val2198; for (int _i2199 = 0; _i2199 < _map2196.size; ++_i2199) { _key2197 = iprot.readString(); _val2198 = new com.cinchapi.concourse.thrift.TObject(); _val2198.read(iprot); _val2194.put(_key2197, _val2198); } } struct.success.put(_key2193, _val2194); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class getCclTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getCclTimestr_args"); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCclTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCclTimestr_argsTupleSchemeFactory()); } public String ccl; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CCL((short) 1, "ccl"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CCL return CCL; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getCclTimestr_args.class, metaDataMap); } public getCclTimestr_args() {} public getCclTimestr_args(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getCclTimestr_args(getCclTimestr_args other) { if(other.isSetCcl()) { this.ccl = other.ccl; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getCclTimestr_args deepCopy() { return new getCclTimestr_args(this); } @Override public void clear() { this.ccl = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getCcl() { return this.ccl; } public getCclTimestr_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public String getTimestamp() { return this.timestamp; } public getCclTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getCclTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getCclTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getCclTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getCclTimestr_args) return this.equals((getCclTimestr_args) that); return false; } public boolean equals(getCclTimestr_args that) { if(that == null) return false; boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getCclTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getCclTimestr_args("); boolean first = true; sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getCclTimestr_argsStandardSchemeFactory implements SchemeFactory { public getCclTimestr_argsStandardScheme getScheme() { return new getCclTimestr_argsStandardScheme(); } } private static class getCclTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCclTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getCclTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCclTimestr_argsTupleSchemeFactory implements SchemeFactory { public getCclTimestr_argsTupleScheme getScheme() { return new getCclTimestr_argsTupleScheme(); } } private static class getCclTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCcl()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getCclTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getCclTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCclTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCclTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getCclTimestr_result.class, metaDataMap); } public getCclTimestr_result() {} public getCclTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public getCclTimestr_result(getCclTimestr_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap( other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getCclTimestr_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getCclTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getCclTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getCclTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public getCclTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getCclTimestr_resultStandardSchemeFactory implements SchemeFactory { public getCclTimestr_resultStandardScheme getScheme() { return new getCclTimestr_resultStandardScheme(); } } private static class getCclTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCclTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2200 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map2200.size); long _key2201; Map _val2202; for (int _i2203 = 0; _i2203 < _map2200.size; ++_i2203) { _key2201 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2204 = iprot .readMapBegin(); _val2202 = new LinkedHashMap( 2 * _map2204.size); String _key2205; com.cinchapi.concourse.thrift.TObject _val2206; for (int _i2207 = 0; _i2207 < _map2204.size; ++_i2207) { _key2205 = iprot.readString(); _val2206 = new com.cinchapi.concourse.thrift.TObject(); _val2206.read(iprot); _val2202.put(_key2205, _val2206); } iprot.readMapEnd(); } struct.success.put(_key2201, _val2202); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getCclTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2208 : struct.success .entrySet()) { oprot.writeI64(_iter2208.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2208.getValue().size())); for (Map.Entry _iter2209 : _iter2208 .getValue().entrySet()) { oprot.writeString(_iter2209.getKey()); _iter2209.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCclTimestr_resultTupleSchemeFactory implements SchemeFactory { public getCclTimestr_resultTupleScheme getScheme() { return new getCclTimestr_resultTupleScheme(); } } private static class getCclTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2210 : struct.success .entrySet()) { oprot.writeI64(_iter2210.getKey()); { oprot.writeI32(_iter2210.getValue().size()); for (Map.Entry _iter2211 : _iter2210 .getValue().entrySet()) { oprot.writeString(_iter2211.getKey()); _iter2211.getValue().write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2212 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map2212.size); long _key2213; Map _val2214; for (int _i2215 = 0; _i2215 < _map2212.size; ++_i2215) { _key2213 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2216 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2214 = new LinkedHashMap( 2 * _map2216.size); String _key2217; com.cinchapi.concourse.thrift.TObject _val2218; for (int _i2219 = 0; _i2219 < _map2216.size; ++_i2219) { _key2217 = iprot.readString(); _val2218 = new com.cinchapi.concourse.thrift.TObject(); _val2218.read(iprot); _val2214.put(_key2217, _val2218); } } struct.success.put(_key2213, _val2214); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class getKeyCcl_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyCcl_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCcl_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(getKeyCcl_args.class, metaDataMap); } public getKeyCcl_args() {} public getKeyCcl_args(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyCcl_args(getKeyCcl_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetCcl()) { this.ccl = other.ccl; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyCcl_args deepCopy() { return new getKeyCcl_args(this); } @Override public void clear() { this.key = null; this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyCcl_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public String getCcl() { return this.ccl; } public getKeyCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyCcl_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyCcl_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeyCcl_args) return this.equals((getKeyCcl_args) that); return false; } public boolean equals(getKeyCcl_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyCcl_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeyCcl_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeyCcl_argsStandardSchemeFactory implements SchemeFactory { public getKeyCcl_argsStandardScheme getScheme() { return new getKeyCcl_argsStandardScheme(); } } private static class getKeyCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCcl_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeyCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCcl_argsTupleSchemeFactory implements SchemeFactory { public getKeyCcl_argsTupleScheme getScheme() { return new getKeyCcl_argsTupleScheme(); } } private static class getKeyCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyCcl_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCcl_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(getKeyCcl_result.class, metaDataMap); } public getKeyCcl_result() {} public getKeyCcl_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public getKeyCcl_result(getKeyCcl_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success.size()); for (Map.Entry other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, com.cinchapi.concourse.thrift.TObject val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeyCcl_result setSuccess( Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeyCcl_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeyCcl_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeyCcl_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public getKeyCcl_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeyCcl_resultStandardSchemeFactory implements SchemeFactory { public getKeyCcl_resultStandardScheme getScheme() { return new getKeyCcl_resultStandardScheme(); } } private static class getKeyCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCcl_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2220 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map2220.size); long _key2221; com.cinchapi.concourse.thrift.TObject _val2222; for (int _i2223 = 0; _i2223 < _map2220.size; ++_i2223) { _key2221 = iprot.readI64(); _val2222 = new com.cinchapi.concourse.thrift.TObject(); _val2222.read(iprot); struct.success.put(_key2221, _val2222); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeyCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter2224 : struct.success .entrySet()) { oprot.writeI64(_iter2224.getKey()); _iter2224.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCcl_resultTupleSchemeFactory implements SchemeFactory { public getKeyCcl_resultTupleScheme getScheme() { return new getKeyCcl_resultTupleScheme(); } } private static class getKeyCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter2225 : struct.success .entrySet()) { oprot.writeI64(_iter2225.getKey()); _iter2225.getValue().write(oprot); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2226 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map2226.size); long _key2227; com.cinchapi.concourse.thrift.TObject _val2228; for (int _i2229 = 0; _i2229 < _map2226.size; ++_i2229) { _key2227 = iprot.readI64(); _val2228 = new com.cinchapi.concourse.thrift.TObject(); _val2228.read(iprot); struct.success.put(_key2227, _val2228); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class getKeyCriteriaTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyCriteriaTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCriteriaTime_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeyCriteriaTime_args.class, metaDataMap); } public getKeyCriteriaTime_args() {} public getKeyCriteriaTime_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyCriteriaTime_args(getKeyCriteriaTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyCriteriaTime_args deepCopy() { return new getKeyCriteriaTime_args(this); } @Override public void clear() { this.key = null; this.criteria = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyCriteriaTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public getKeyCriteriaTime_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public long getTimestamp() { return this.timestamp; } public getKeyCriteriaTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyCriteriaTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyCriteriaTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeyCriteriaTime_args) return this.equals((getKeyCriteriaTime_args) that); return false; } public boolean equals(getKeyCriteriaTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyCriteriaTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeyCriteriaTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeyCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public getKeyCriteriaTime_argsStandardScheme getScheme() { return new getKeyCriteriaTime_argsStandardScheme(); } } private static class getKeyCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCriteriaTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeyCriteriaTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public getKeyCriteriaTime_argsTupleScheme getScheme() { return new getKeyCriteriaTime_argsTupleScheme(); } } private static class getKeyCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyCriteriaTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCriteriaTime_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeyCriteriaTime_result.class, metaDataMap); } public getKeyCriteriaTime_result() {} public getKeyCriteriaTime_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeyCriteriaTime_result(getKeyCriteriaTime_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success.size()); for (Map.Entry other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public getKeyCriteriaTime_result deepCopy() { return new getKeyCriteriaTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, com.cinchapi.concourse.thrift.TObject val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeyCriteriaTime_result setSuccess( Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeyCriteriaTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeyCriteriaTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public getKeyCriteriaTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 getKeyCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public getKeyCriteriaTime_resultStandardScheme getScheme() { return new getKeyCriteriaTime_resultStandardScheme(); } } private static class getKeyCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCriteriaTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2230 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map2230.size); long _key2231; com.cinchapi.concourse.thrift.TObject _val2232; for (int _i2233 = 0; _i2233 < _map2230.size; ++_i2233) { _key2231 = iprot.readI64(); _val2232 = new com.cinchapi.concourse.thrift.TObject(); _val2232.read(iprot); struct.success.put(_key2231, _val2232); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, getKeyCriteriaTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter2234 : struct.success .entrySet()) { oprot.writeI64(_iter2234.getKey()); _iter2234.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public getKeyCriteriaTime_resultTupleScheme getScheme() { return new getKeyCriteriaTime_resultTupleScheme(); } } private static class getKeyCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter2235 : struct.success .entrySet()) { oprot.writeI64(_iter2235.getKey()); _iter2235.getValue().write(oprot); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2236 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map2236.size); long _key2237; com.cinchapi.concourse.thrift.TObject _val2238; for (int _i2239 = 0; _i2239 < _map2236.size; ++_i2239) { _key2237 = iprot.readI64(); _val2238 = new com.cinchapi.concourse.thrift.TObject(); _val2238.read(iprot); struct.success.put(_key2237, _val2238); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeyCriteriaTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyCriteriaTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCriteriaTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCriteriaTimestr_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeyCriteriaTimestr_args.class, metaDataMap); } public getKeyCriteriaTimestr_args() {} public getKeyCriteriaTimestr_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyCriteriaTimestr_args(getKeyCriteriaTimestr_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyCriteriaTimestr_args deepCopy() { return new getKeyCriteriaTimestr_args(this); } @Override public void clear() { this.key = null; this.criteria = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyCriteriaTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public getKeyCriteriaTimestr_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public String getTimestamp() { return this.timestamp; } public getKeyCriteriaTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyCriteriaTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyCriteriaTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyCriteriaTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeyCriteriaTimestr_args) return this.equals((getKeyCriteriaTimestr_args) that); return false; } public boolean equals(getKeyCriteriaTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyCriteriaTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeyCriteriaTimestr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeyCriteriaTimestr_argsStandardSchemeFactory implements SchemeFactory { public getKeyCriteriaTimestr_argsStandardScheme getScheme() { return new getKeyCriteriaTimestr_argsStandardScheme(); } } private static class getKeyCriteriaTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCriteriaTimestr_argsTupleSchemeFactory implements SchemeFactory { public getKeyCriteriaTimestr_argsTupleScheme getScheme() { return new getKeyCriteriaTimestr_argsTupleScheme(); } } private static class getKeyCriteriaTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyCriteriaTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyCriteriaTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCriteriaTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCriteriaTimestr_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeyCriteriaTimestr_result.class, metaDataMap); } public getKeyCriteriaTimestr_result() {} public getKeyCriteriaTimestr_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public getKeyCriteriaTimestr_result( getKeyCriteriaTimestr_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success.size()); for (Map.Entry other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, com.cinchapi.concourse.thrift.TObject val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeyCriteriaTimestr_result setSuccess( Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeyCriteriaTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeyCriteriaTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeyCriteriaTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public getKeyCriteriaTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeyCriteriaTimestr_resultStandardSchemeFactory implements SchemeFactory { public getKeyCriteriaTimestr_resultStandardScheme getScheme() { return new getKeyCriteriaTimestr_resultStandardScheme(); } } private static class getKeyCriteriaTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2240 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map2240.size); long _key2241; com.cinchapi.concourse.thrift.TObject _val2242; for (int _i2243 = 0; _i2243 < _map2240.size; ++_i2243) { _key2241 = iprot.readI64(); _val2242 = new com.cinchapi.concourse.thrift.TObject(); _val2242.read(iprot); struct.success.put(_key2241, _val2242); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter2244 : struct.success .entrySet()) { oprot.writeI64(_iter2244.getKey()); _iter2244.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCriteriaTimestr_resultTupleSchemeFactory implements SchemeFactory { public getKeyCriteriaTimestr_resultTupleScheme getScheme() { return new getKeyCriteriaTimestr_resultTupleScheme(); } } private static class getKeyCriteriaTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter2245 : struct.success .entrySet()) { oprot.writeI64(_iter2245.getKey()); _iter2245.getValue().write(oprot); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2246 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map2246.size); long _key2247; com.cinchapi.concourse.thrift.TObject _val2248; for (int _i2249 = 0; _i2249 < _map2246.size; ++_i2249) { _key2247 = iprot.readI64(); _val2248 = new com.cinchapi.concourse.thrift.TObject(); _val2248.read(iprot); struct.success.put(_key2247, _val2248); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class getKeyCclTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyCclTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCclTime_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeyCclTime_args.class, metaDataMap); } public getKeyCclTime_args() {} public getKeyCclTime_args(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyCclTime_args(getKeyCclTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetCcl()) { this.ccl = other.ccl; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyCclTime_args deepCopy() { return new getKeyCclTime_args(this); } @Override public void clear() { this.key = null; this.ccl = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyCclTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public String getCcl() { return this.ccl; } public getKeyCclTime_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public long getTimestamp() { return this.timestamp; } public getKeyCclTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyCclTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyCclTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeyCclTime_args) return this.equals((getKeyCclTime_args) that); return false; } public boolean equals(getKeyCclTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyCclTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeyCclTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeyCclTime_argsStandardSchemeFactory implements SchemeFactory { public getKeyCclTime_argsStandardScheme getScheme() { return new getKeyCclTime_argsStandardScheme(); } } private static class getKeyCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCclTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeyCclTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCclTime_argsTupleSchemeFactory implements SchemeFactory { public getKeyCclTime_argsTupleScheme getScheme() { return new getKeyCclTime_argsTupleScheme(); } } private static class getKeyCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyCclTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyCclTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCclTime_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeyCclTime_result.class, metaDataMap); } public getKeyCclTime_result() {} public getKeyCclTime_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public getKeyCclTime_result(getKeyCclTime_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success.size()); for (Map.Entry other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, com.cinchapi.concourse.thrift.TObject val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeyCclTime_result setSuccess( Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeyCclTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeyCclTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeyCclTime_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public getKeyCclTime_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeyCclTime_resultStandardSchemeFactory implements SchemeFactory { public getKeyCclTime_resultStandardScheme getScheme() { return new getKeyCclTime_resultStandardScheme(); } } private static class getKeyCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCclTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2250 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map2250.size); long _key2251; com.cinchapi.concourse.thrift.TObject _val2252; for (int _i2253 = 0; _i2253 < _map2250.size; ++_i2253) { _key2251 = iprot.readI64(); _val2252 = new com.cinchapi.concourse.thrift.TObject(); _val2252.read(iprot); struct.success.put(_key2251, _val2252); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeyCclTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter2254 : struct.success .entrySet()) { oprot.writeI64(_iter2254.getKey()); _iter2254.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCclTime_resultTupleSchemeFactory implements SchemeFactory { public getKeyCclTime_resultTupleScheme getScheme() { return new getKeyCclTime_resultTupleScheme(); } } private static class getKeyCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter2255 : struct.success .entrySet()) { oprot.writeI64(_iter2255.getKey()); _iter2255.getValue().write(oprot); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2256 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map2256.size); long _key2257; com.cinchapi.concourse.thrift.TObject _val2258; for (int _i2259 = 0; _i2259 < _map2256.size; ++_i2259) { _key2257 = iprot.readI64(); _val2258 = new com.cinchapi.concourse.thrift.TObject(); _val2258.read(iprot); struct.success.put(_key2257, _val2258); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class getKeyCclTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyCclTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCclTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCclTimestr_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeyCclTimestr_args.class, metaDataMap); } public getKeyCclTimestr_args() {} public getKeyCclTimestr_args(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyCclTimestr_args(getKeyCclTimestr_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetCcl()) { this.ccl = other.ccl; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyCclTimestr_args deepCopy() { return new getKeyCclTimestr_args(this); } @Override public void clear() { this.key = null; this.ccl = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyCclTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public String getCcl() { return this.ccl; } public getKeyCclTimestr_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public String getTimestamp() { return this.timestamp; } public getKeyCclTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyCclTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyCclTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyCclTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeyCclTimestr_args) return this.equals((getKeyCclTimestr_args) that); return false; } public boolean equals(getKeyCclTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyCclTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeyCclTimestr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeyCclTimestr_argsStandardSchemeFactory implements SchemeFactory { public getKeyCclTimestr_argsStandardScheme getScheme() { return new getKeyCclTimestr_argsStandardScheme(); } } private static class getKeyCclTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCclTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeyCclTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCclTimestr_argsTupleSchemeFactory implements SchemeFactory { public getKeyCclTimestr_argsTupleScheme getScheme() { return new getKeyCclTimestr_argsTupleScheme(); } } private static class getKeyCclTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyCclTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeyCclTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCclTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCclTimestr_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeyCclTimestr_result.class, metaDataMap); } public getKeyCclTimestr_result() {} public getKeyCclTimestr_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public getKeyCclTimestr_result(getKeyCclTimestr_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success.size()); for (Map.Entry other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, com.cinchapi.concourse.thrift.TObject val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeyCclTimestr_result setSuccess( Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeyCclTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeyCclTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeyCclTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public getKeyCclTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeyCclTimestr_resultStandardSchemeFactory implements SchemeFactory { public getKeyCclTimestr_resultStandardScheme getScheme() { return new getKeyCclTimestr_resultStandardScheme(); } } private static class getKeyCclTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCclTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2260 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map2260.size); long _key2261; com.cinchapi.concourse.thrift.TObject _val2262; for (int _i2263 = 0; _i2263 < _map2260.size; ++_i2263) { _key2261 = iprot.readI64(); _val2262 = new com.cinchapi.concourse.thrift.TObject(); _val2262.read(iprot); struct.success.put(_key2261, _val2262); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeyCclTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter2264 : struct.success .entrySet()) { oprot.writeI64(_iter2264.getKey()); _iter2264.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCclTimestr_resultTupleSchemeFactory implements SchemeFactory { public getKeyCclTimestr_resultTupleScheme getScheme() { return new getKeyCclTimestr_resultTupleScheme(); } } private static class getKeyCclTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter2265 : struct.success .entrySet()) { oprot.writeI64(_iter2265.getKey()); _iter2265.getValue().write(oprot); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2266 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map2266.size); long _key2267; com.cinchapi.concourse.thrift.TObject _val2268; for (int _i2269 = 0; _i2269 < _map2266.size; ++_i2269) { _key2267 = iprot.readI64(); _val2268 = new com.cinchapi.concourse.thrift.TObject(); _val2268.read(iprot); struct.success.put(_key2267, _val2268); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class getKeysCriteria_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysCriteria_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCriteria_argsTupleSchemeFactory()); } public List keys; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), CRITERIA((short) 2, "criteria"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // CRITERIA return CRITERIA; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysCriteria_args.class, metaDataMap); } public getKeysCriteria_args() {} public getKeysCriteria_args(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysCriteria_args(getKeysCriteria_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysCriteria_args deepCopy() { return new getKeysCriteria_args(this); } @Override public void clear() { this.keys = null; this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysCriteria_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public getKeysCriteria_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysCriteria_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysCriteria_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeysCriteria_args) return this.equals((getKeysCriteria_args) that); return false; } public boolean equals(getKeysCriteria_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysCriteria_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeysCriteria_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeysCriteria_argsStandardSchemeFactory implements SchemeFactory { public getKeysCriteria_argsStandardScheme getScheme() { return new getKeysCriteria_argsStandardScheme(); } } private static class getKeysCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCriteria_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2270 = iprot .readListBegin(); struct.keys = new ArrayList( _list2270.size); String _elem2271; for (int _i2272 = 0; _i2272 < _list2270.size; ++_i2272) { _elem2271 = iprot.readString(); struct.keys.add(_elem2271); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeysCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2273 : struct.keys) { oprot.writeString(_iter2273); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCriteria_argsTupleSchemeFactory implements SchemeFactory { public getKeysCriteria_argsTupleScheme getScheme() { return new getKeysCriteria_argsTupleScheme(); } } private static class getKeysCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2274 : struct.keys) { oprot.writeString(_iter2274); } } } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list2275 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2275.size); String _elem2276; for (int _i2277 = 0; _i2277 < _list2275.size; ++_i2277) { _elem2276 = iprot.readString(); struct.keys.add(_elem2276); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysCriteria_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCriteria_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysCriteria_result.class, metaDataMap); } public getKeysCriteria_result() {} public getKeysCriteria_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeysCriteria_result(getKeysCriteria_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap( other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public getKeysCriteria_result deepCopy() { return new getKeysCriteria_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getKeysCriteria_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysCriteria_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysCriteria_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public getKeysCriteria_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 getKeysCriteria_resultStandardSchemeFactory implements SchemeFactory { public getKeysCriteria_resultStandardScheme getScheme() { return new getKeysCriteria_resultStandardScheme(); } } private static class getKeysCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCriteria_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2278 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map2278.size); long _key2279; Map _val2280; for (int _i2281 = 0; _i2281 < _map2278.size; ++_i2281) { _key2279 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2282 = iprot .readMapBegin(); _val2280 = new LinkedHashMap( 2 * _map2282.size); String _key2283; com.cinchapi.concourse.thrift.TObject _val2284; for (int _i2285 = 0; _i2285 < _map2282.size; ++_i2285) { _key2283 = iprot.readString(); _val2284 = new com.cinchapi.concourse.thrift.TObject(); _val2284.read(iprot); _val2280.put(_key2283, _val2284); } iprot.readMapEnd(); } struct.success.put(_key2279, _val2280); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, getKeysCriteria_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2286 : struct.success .entrySet()) { oprot.writeI64(_iter2286.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2286.getValue().size())); for (Map.Entry _iter2287 : _iter2286 .getValue().entrySet()) { oprot.writeString(_iter2287.getKey()); _iter2287.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCriteria_resultTupleSchemeFactory implements SchemeFactory { public getKeysCriteria_resultTupleScheme getScheme() { return new getKeysCriteria_resultTupleScheme(); } } private static class getKeysCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2288 : struct.success .entrySet()) { oprot.writeI64(_iter2288.getKey()); { oprot.writeI32(_iter2288.getValue().size()); for (Map.Entry _iter2289 : _iter2288 .getValue().entrySet()) { oprot.writeString(_iter2289.getKey()); _iter2289.getValue().write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2290 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map2290.size); long _key2291; Map _val2292; for (int _i2293 = 0; _i2293 < _map2290.size; ++_i2293) { _key2291 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2294 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2292 = new LinkedHashMap( 2 * _map2294.size); String _key2295; com.cinchapi.concourse.thrift.TObject _val2296; for (int _i2297 = 0; _i2297 < _map2294.size; ++_i2297) { _key2295 = iprot.readString(); _val2296 = new com.cinchapi.concourse.thrift.TObject(); _val2296.read(iprot); _val2292.put(_key2295, _val2296); } } struct.success.put(_key2291, _val2292); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeysCcl_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysCcl_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCcl_argsTupleSchemeFactory()); } public List keys; // required public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), CCL((short) 2, "ccl"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // CCL return CCL; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(getKeysCcl_args.class, metaDataMap); } public getKeysCcl_args() {} public getKeysCcl_args(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysCcl_args(getKeysCcl_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetCcl()) { this.ccl = other.ccl; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysCcl_args deepCopy() { return new getKeysCcl_args(this); } @Override public void clear() { this.keys = null; this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysCcl_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public String getCcl() { return this.ccl; } public getKeysCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysCcl_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysCcl_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeysCcl_args) return this.equals((getKeysCcl_args) that); return false; } public boolean equals(getKeysCcl_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysCcl_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeysCcl_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeysCcl_argsStandardSchemeFactory implements SchemeFactory { public getKeysCcl_argsStandardScheme getScheme() { return new getKeysCcl_argsStandardScheme(); } } private static class getKeysCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCcl_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2298 = iprot .readListBegin(); struct.keys = new ArrayList( _list2298.size); String _elem2299; for (int _i2300 = 0; _i2300 < _list2298.size; ++_i2300) { _elem2299 = iprot.readString(); struct.keys.add(_elem2299); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeysCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2301 : struct.keys) { oprot.writeString(_iter2301); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCcl_argsTupleSchemeFactory implements SchemeFactory { public getKeysCcl_argsTupleScheme getScheme() { return new getKeysCcl_argsTupleScheme(); } } private static class getKeysCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2302 : struct.keys) { oprot.writeString(_iter2302); } } } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list2303 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2303.size); String _elem2304; for (int _i2305 = 0; _i2305 < _list2303.size; ++_i2305) { _elem2304 = iprot.readString(); struct.keys.add(_elem2304); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysCcl_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCcl_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(getKeysCcl_result.class, metaDataMap); } public getKeysCcl_result() {} public getKeysCcl_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public getKeysCcl_result(getKeysCcl_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap( other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getKeysCcl_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysCcl_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysCcl_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeysCcl_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public getKeysCcl_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeysCcl_resultStandardSchemeFactory implements SchemeFactory { public getKeysCcl_resultStandardScheme getScheme() { return new getKeysCcl_resultStandardScheme(); } } private static class getKeysCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCcl_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2306 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map2306.size); long _key2307; Map _val2308; for (int _i2309 = 0; _i2309 < _map2306.size; ++_i2309) { _key2307 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2310 = iprot .readMapBegin(); _val2308 = new LinkedHashMap( 2 * _map2310.size); String _key2311; com.cinchapi.concourse.thrift.TObject _val2312; for (int _i2313 = 0; _i2313 < _map2310.size; ++_i2313) { _key2311 = iprot.readString(); _val2312 = new com.cinchapi.concourse.thrift.TObject(); _val2312.read(iprot); _val2308.put(_key2311, _val2312); } iprot.readMapEnd(); } struct.success.put(_key2307, _val2308); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeysCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2314 : struct.success .entrySet()) { oprot.writeI64(_iter2314.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2314.getValue().size())); for (Map.Entry _iter2315 : _iter2314 .getValue().entrySet()) { oprot.writeString(_iter2315.getKey()); _iter2315.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCcl_resultTupleSchemeFactory implements SchemeFactory { public getKeysCcl_resultTupleScheme getScheme() { return new getKeysCcl_resultTupleScheme(); } } private static class getKeysCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2316 : struct.success .entrySet()) { oprot.writeI64(_iter2316.getKey()); { oprot.writeI32(_iter2316.getValue().size()); for (Map.Entry _iter2317 : _iter2316 .getValue().entrySet()) { oprot.writeString(_iter2317.getKey()); _iter2317.getValue().write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2318 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map2318.size); long _key2319; Map _val2320; for (int _i2321 = 0; _i2321 < _map2318.size; ++_i2321) { _key2319 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2322 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2320 = new LinkedHashMap( 2 * _map2322.size); String _key2323; com.cinchapi.concourse.thrift.TObject _val2324; for (int _i2325 = 0; _i2325 < _map2322.size; ++_i2325) { _key2323 = iprot.readString(); _val2324 = new com.cinchapi.concourse.thrift.TObject(); _val2324.read(iprot); _val2320.put(_key2323, _val2324); } } struct.success.put(_key2319, _val2320); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class getKeysCriteriaTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysCriteriaTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCriteriaTime_argsTupleSchemeFactory()); } public List keys; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysCriteriaTime_args.class, metaDataMap); } public getKeysCriteriaTime_args() {} public getKeysCriteriaTime_args(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysCriteriaTime_args(getKeysCriteriaTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysCriteriaTime_args deepCopy() { return new getKeysCriteriaTime_args(this); } @Override public void clear() { this.keys = null; this.criteria = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysCriteriaTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public getKeysCriteriaTime_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public long getTimestamp() { return this.timestamp; } public getKeysCriteriaTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysCriteriaTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysCriteriaTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeysCriteriaTime_args) return this.equals((getKeysCriteriaTime_args) that); return false; } public boolean equals(getKeysCriteriaTime_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysCriteriaTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeysCriteriaTime_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeysCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public getKeysCriteriaTime_argsStandardScheme getScheme() { return new getKeysCriteriaTime_argsStandardScheme(); } } private static class getKeysCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCriteriaTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2326 = iprot .readListBegin(); struct.keys = new ArrayList( _list2326.size); String _elem2327; for (int _i2328 = 0; _i2328 < _list2326.size; ++_i2328) { _elem2327 = iprot.readString(); struct.keys.add(_elem2327); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeysCriteriaTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2329 : struct.keys) { oprot.writeString(_iter2329); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public getKeysCriteriaTime_argsTupleScheme getScheme() { return new getKeysCriteriaTime_argsTupleScheme(); } } private static class getKeysCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2330 : struct.keys) { oprot.writeString(_iter2330); } } } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list2331 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2331.size); String _elem2332; for (int _i2333 = 0; _i2333 < _list2331.size; ++_i2333) { _elem2332 = iprot.readString(); struct.keys.add(_elem2332); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysCriteriaTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCriteriaTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysCriteriaTime_result.class, metaDataMap); } public getKeysCriteriaTime_result() {} public getKeysCriteriaTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeysCriteriaTime_result(getKeysCriteriaTime_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap( other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public getKeysCriteriaTime_result deepCopy() { return new getKeysCriteriaTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getKeysCriteriaTime_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysCriteriaTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysCriteriaTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public getKeysCriteriaTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 getKeysCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public getKeysCriteriaTime_resultStandardScheme getScheme() { return new getKeysCriteriaTime_resultStandardScheme(); } } private static class getKeysCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCriteriaTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2334 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map2334.size); long _key2335; Map _val2336; for (int _i2337 = 0; _i2337 < _map2334.size; ++_i2337) { _key2335 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2338 = iprot .readMapBegin(); _val2336 = new LinkedHashMap( 2 * _map2338.size); String _key2339; com.cinchapi.concourse.thrift.TObject _val2340; for (int _i2341 = 0; _i2341 < _map2338.size; ++_i2341) { _key2339 = iprot.readString(); _val2340 = new com.cinchapi.concourse.thrift.TObject(); _val2340.read(iprot); _val2336.put(_key2339, _val2340); } iprot.readMapEnd(); } struct.success.put(_key2335, _val2336); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, getKeysCriteriaTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2342 : struct.success .entrySet()) { oprot.writeI64(_iter2342.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2342.getValue().size())); for (Map.Entry _iter2343 : _iter2342 .getValue().entrySet()) { oprot.writeString(_iter2343.getKey()); _iter2343.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public getKeysCriteriaTime_resultTupleScheme getScheme() { return new getKeysCriteriaTime_resultTupleScheme(); } } private static class getKeysCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2344 : struct.success .entrySet()) { oprot.writeI64(_iter2344.getKey()); { oprot.writeI32(_iter2344.getValue().size()); for (Map.Entry _iter2345 : _iter2344 .getValue().entrySet()) { oprot.writeString(_iter2345.getKey()); _iter2345.getValue().write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2346 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map2346.size); long _key2347; Map _val2348; for (int _i2349 = 0; _i2349 < _map2346.size; ++_i2349) { _key2347 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2350 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2348 = new LinkedHashMap( 2 * _map2350.size); String _key2351; com.cinchapi.concourse.thrift.TObject _val2352; for (int _i2353 = 0; _i2353 < _map2350.size; ++_i2353) { _key2351 = iprot.readString(); _val2352 = new com.cinchapi.concourse.thrift.TObject(); _val2352.read(iprot); _val2348.put(_key2351, _val2352); } } struct.success.put(_key2347, _val2348); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeysCriteriaTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysCriteriaTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCriteriaTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCriteriaTimestr_argsTupleSchemeFactory()); } public List keys; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysCriteriaTimestr_args.class, metaDataMap); } public getKeysCriteriaTimestr_args() {} public getKeysCriteriaTimestr_args(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysCriteriaTimestr_args(getKeysCriteriaTimestr_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysCriteriaTimestr_args deepCopy() { return new getKeysCriteriaTimestr_args(this); } @Override public void clear() { this.keys = null; this.criteria = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysCriteriaTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public getKeysCriteriaTimestr_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public String getTimestamp() { return this.timestamp; } public getKeysCriteriaTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysCriteriaTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysCriteriaTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysCriteriaTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeysCriteriaTimestr_args) return this.equals((getKeysCriteriaTimestr_args) that); return false; } public boolean equals(getKeysCriteriaTimestr_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysCriteriaTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "getKeysCriteriaTimestr_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeysCriteriaTimestr_argsStandardSchemeFactory implements SchemeFactory { public getKeysCriteriaTimestr_argsStandardScheme getScheme() { return new getKeysCriteriaTimestr_argsStandardScheme(); } } private static class getKeysCriteriaTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCriteriaTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2354 = iprot .readListBegin(); struct.keys = new ArrayList( _list2354.size); String _elem2355; for (int _i2356 = 0; _i2356 < _list2354.size; ++_i2356) { _elem2355 = iprot.readString(); struct.keys.add(_elem2355); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeysCriteriaTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2357 : struct.keys) { oprot.writeString(_iter2357); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCriteriaTimestr_argsTupleSchemeFactory implements SchemeFactory { public getKeysCriteriaTimestr_argsTupleScheme getScheme() { return new getKeysCriteriaTimestr_argsTupleScheme(); } } private static class getKeysCriteriaTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2358 : struct.keys) { oprot.writeString(_iter2358); } } } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list2359 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2359.size); String _elem2360; for (int _i2361 = 0; _i2361 < _list2359.size; ++_i2361) { _elem2360 = iprot.readString(); struct.keys.add(_elem2360); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysCriteriaTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysCriteriaTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCriteriaTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCriteriaTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysCriteriaTimestr_result.class, metaDataMap); } public getKeysCriteriaTimestr_result() {} public getKeysCriteriaTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public getKeysCriteriaTimestr_result( getKeysCriteriaTimestr_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap( other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getKeysCriteriaTimestr_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysCriteriaTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysCriteriaTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeysCriteriaTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public getKeysCriteriaTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeysCriteriaTimestr_resultStandardSchemeFactory implements SchemeFactory { public getKeysCriteriaTimestr_resultStandardScheme getScheme() { return new getKeysCriteriaTimestr_resultStandardScheme(); } } private static class getKeysCriteriaTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCriteriaTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2362 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map2362.size); long _key2363; Map _val2364; for (int _i2365 = 0; _i2365 < _map2362.size; ++_i2365) { _key2363 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2366 = iprot .readMapBegin(); _val2364 = new LinkedHashMap( 2 * _map2366.size); String _key2367; com.cinchapi.concourse.thrift.TObject _val2368; for (int _i2369 = 0; _i2369 < _map2366.size; ++_i2369) { _key2367 = iprot.readString(); _val2368 = new com.cinchapi.concourse.thrift.TObject(); _val2368.read(iprot); _val2364.put(_key2367, _val2368); } iprot.readMapEnd(); } struct.success.put(_key2363, _val2364); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeysCriteriaTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2370 : struct.success .entrySet()) { oprot.writeI64(_iter2370.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2370.getValue().size())); for (Map.Entry _iter2371 : _iter2370 .getValue().entrySet()) { oprot.writeString(_iter2371.getKey()); _iter2371.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCriteriaTimestr_resultTupleSchemeFactory implements SchemeFactory { public getKeysCriteriaTimestr_resultTupleScheme getScheme() { return new getKeysCriteriaTimestr_resultTupleScheme(); } } private static class getKeysCriteriaTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2372 : struct.success .entrySet()) { oprot.writeI64(_iter2372.getKey()); { oprot.writeI32(_iter2372.getValue().size()); for (Map.Entry _iter2373 : _iter2372 .getValue().entrySet()) { oprot.writeString(_iter2373.getKey()); _iter2373.getValue().write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2374 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map2374.size); long _key2375; Map _val2376; for (int _i2377 = 0; _i2377 < _map2374.size; ++_i2377) { _key2375 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2378 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2376 = new LinkedHashMap( 2 * _map2378.size); String _key2379; com.cinchapi.concourse.thrift.TObject _val2380; for (int _i2381 = 0; _i2381 < _map2378.size; ++_i2381) { _key2379 = iprot.readString(); _val2380 = new com.cinchapi.concourse.thrift.TObject(); _val2380.read(iprot); _val2376.put(_key2379, _val2380); } } struct.success.put(_key2375, _val2376); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class getKeysCclTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysCclTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCclTime_argsTupleSchemeFactory()); } public List keys; // required public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysCclTime_args.class, metaDataMap); } public getKeysCclTime_args() {} public getKeysCclTime_args(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysCclTime_args(getKeysCclTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetCcl()) { this.ccl = other.ccl; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysCclTime_args deepCopy() { return new getKeysCclTime_args(this); } @Override public void clear() { this.keys = null; this.ccl = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysCclTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public String getCcl() { return this.ccl; } public getKeysCclTime_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public long getTimestamp() { return this.timestamp; } public getKeysCclTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysCclTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysCclTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeysCclTime_args) return this.equals((getKeysCclTime_args) that); return false; } public boolean equals(getKeysCclTime_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysCclTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeysCclTime_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeysCclTime_argsStandardSchemeFactory implements SchemeFactory { public getKeysCclTime_argsStandardScheme getScheme() { return new getKeysCclTime_argsStandardScheme(); } } private static class getKeysCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCclTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2382 = iprot .readListBegin(); struct.keys = new ArrayList( _list2382.size); String _elem2383; for (int _i2384 = 0; _i2384 < _list2382.size; ++_i2384) { _elem2383 = iprot.readString(); struct.keys.add(_elem2383); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeysCclTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2385 : struct.keys) { oprot.writeString(_iter2385); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCclTime_argsTupleSchemeFactory implements SchemeFactory { public getKeysCclTime_argsTupleScheme getScheme() { return new getKeysCclTime_argsTupleScheme(); } } private static class getKeysCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2386 : struct.keys) { oprot.writeString(_iter2386); } } } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list2387 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2387.size); String _elem2388; for (int _i2389 = 0; _i2389 < _list2387.size; ++_i2389) { _elem2388 = iprot.readString(); struct.keys.add(_elem2388); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysCclTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysCclTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCclTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysCclTime_result.class, metaDataMap); } public getKeysCclTime_result() {} public getKeysCclTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public getKeysCclTime_result(getKeysCclTime_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap( other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getKeysCclTime_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysCclTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysCclTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeysCclTime_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public getKeysCclTime_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeysCclTime_resultStandardSchemeFactory implements SchemeFactory { public getKeysCclTime_resultStandardScheme getScheme() { return new getKeysCclTime_resultStandardScheme(); } } private static class getKeysCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCclTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2390 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map2390.size); long _key2391; Map _val2392; for (int _i2393 = 0; _i2393 < _map2390.size; ++_i2393) { _key2391 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2394 = iprot .readMapBegin(); _val2392 = new LinkedHashMap( 2 * _map2394.size); String _key2395; com.cinchapi.concourse.thrift.TObject _val2396; for (int _i2397 = 0; _i2397 < _map2394.size; ++_i2397) { _key2395 = iprot.readString(); _val2396 = new com.cinchapi.concourse.thrift.TObject(); _val2396.read(iprot); _val2392.put(_key2395, _val2396); } iprot.readMapEnd(); } struct.success.put(_key2391, _val2392); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeysCclTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2398 : struct.success .entrySet()) { oprot.writeI64(_iter2398.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2398.getValue().size())); for (Map.Entry _iter2399 : _iter2398 .getValue().entrySet()) { oprot.writeString(_iter2399.getKey()); _iter2399.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCclTime_resultTupleSchemeFactory implements SchemeFactory { public getKeysCclTime_resultTupleScheme getScheme() { return new getKeysCclTime_resultTupleScheme(); } } private static class getKeysCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2400 : struct.success .entrySet()) { oprot.writeI64(_iter2400.getKey()); { oprot.writeI32(_iter2400.getValue().size()); for (Map.Entry _iter2401 : _iter2400 .getValue().entrySet()) { oprot.writeString(_iter2401.getKey()); _iter2401.getValue().write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2402 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map2402.size); long _key2403; Map _val2404; for (int _i2405 = 0; _i2405 < _map2402.size; ++_i2405) { _key2403 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2406 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2404 = new LinkedHashMap( 2 * _map2406.size); String _key2407; com.cinchapi.concourse.thrift.TObject _val2408; for (int _i2409 = 0; _i2409 < _map2406.size; ++_i2409) { _key2407 = iprot.readString(); _val2408 = new com.cinchapi.concourse.thrift.TObject(); _val2408.read(iprot); _val2404.put(_key2407, _val2408); } } struct.success.put(_key2403, _val2404); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class getKeysCclTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysCclTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCclTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCclTimestr_argsTupleSchemeFactory()); } public List keys; // required public String ccl; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysCclTimestr_args.class, metaDataMap); } public getKeysCclTimestr_args() {} public getKeysCclTimestr_args(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysCclTimestr_args(getKeysCclTimestr_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetCcl()) { this.ccl = other.ccl; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysCclTimestr_args deepCopy() { return new getKeysCclTimestr_args(this); } @Override public void clear() { this.keys = null; this.ccl = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysCclTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public String getCcl() { return this.ccl; } public getKeysCclTimestr_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public String getTimestamp() { return this.timestamp; } public getKeysCclTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysCclTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysCclTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysCclTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getKeysCclTimestr_args) return this.equals((getKeysCclTimestr_args) that); return false; } public boolean equals(getKeysCclTimestr_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysCclTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getKeysCclTimestr_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeysCclTimestr_argsStandardSchemeFactory implements SchemeFactory { public getKeysCclTimestr_argsStandardScheme getScheme() { return new getKeysCclTimestr_argsStandardScheme(); } } private static class getKeysCclTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCclTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2410 = iprot .readListBegin(); struct.keys = new ArrayList( _list2410.size); String _elem2411; for (int _i2412 = 0; _i2412 < _list2410.size; ++_i2412) { _elem2411 = iprot.readString(); struct.keys.add(_elem2411); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeysCclTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2413 : struct.keys) { oprot.writeString(_iter2413); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCclTimestr_argsTupleSchemeFactory implements SchemeFactory { public getKeysCclTimestr_argsTupleScheme getScheme() { return new getKeysCclTimestr_argsTupleScheme(); } } private static class getKeysCclTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2414 : struct.keys) { oprot.writeString(_iter2414); } } } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list2415 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2415.size); String _elem2416; for (int _i2417 = 0; _i2417 < _list2415.size; ++_i2417) { _elem2416 = iprot.readString(); struct.keys.add(_elem2416); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysCclTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getKeysCclTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCclTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCclTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getKeysCclTimestr_result.class, metaDataMap); } public getKeysCclTimestr_result() {} public getKeysCclTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public getKeysCclTimestr_result(getKeysCclTimestr_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap( other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value); __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getKeysCclTimestr_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysCclTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysCclTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeysCclTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public getKeysCclTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getKeysCclTimestr_resultStandardSchemeFactory implements SchemeFactory { public getKeysCclTimestr_resultStandardScheme getScheme() { return new getKeysCclTimestr_resultStandardScheme(); } } private static class getKeysCclTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCclTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2418 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map2418.size); long _key2419; Map _val2420; for (int _i2421 = 0; _i2421 < _map2418.size; ++_i2421) { _key2419 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2422 = iprot .readMapBegin(); _val2420 = new LinkedHashMap( 2 * _map2422.size); String _key2423; com.cinchapi.concourse.thrift.TObject _val2424; for (int _i2425 = 0; _i2425 < _map2422.size; ++_i2425) { _key2423 = iprot.readString(); _val2424 = new com.cinchapi.concourse.thrift.TObject(); _val2424.read(iprot); _val2420.put(_key2423, _val2424); } iprot.readMapEnd(); } struct.success.put(_key2419, _val2420); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getKeysCclTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2426 : struct.success .entrySet()) { oprot.writeI64(_iter2426.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2426.getValue().size())); for (Map.Entry _iter2427 : _iter2426 .getValue().entrySet()) { oprot.writeString(_iter2427.getKey()); _iter2427.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCclTimestr_resultTupleSchemeFactory implements SchemeFactory { public getKeysCclTimestr_resultTupleScheme getScheme() { return new getKeysCclTimestr_resultTupleScheme(); } } private static class getKeysCclTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2428 : struct.success .entrySet()) { oprot.writeI64(_iter2428.getKey()); { oprot.writeI32(_iter2428.getValue().size()); for (Map.Entry _iter2429 : _iter2428 .getValue().entrySet()) { oprot.writeString(_iter2429.getKey()); _iter2429.getValue().write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2430 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map2430.size); long _key2431; Map _val2432; for (int _i2433 = 0; _i2433 < _map2430.size; ++_i2433) { _key2431 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2434 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2432 = new LinkedHashMap( 2 * _map2434.size); String _key2435; com.cinchapi.concourse.thrift.TObject _val2436; for (int _i2437 = 0; _i2437 < _map2434.size; ++_i2437) { _key2435 = iprot.readString(); _val2436 = new com.cinchapi.concourse.thrift.TObject(); _val2436.read(iprot); _val2432.put(_key2435, _val2436); } } struct.success.put(_key2431, _val2432); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class verifyKeyValueRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "verifyKeyValueRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField( "value", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new verifyKeyValueRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new verifyKeyValueRecord_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), VALUE((short) 2, "value"), RECORD((short) 3, "record"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // RECORD return RECORD; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( verifyKeyValueRecord_args.class, metaDataMap); } public verifyKeyValueRecord_args() {} public verifyKeyValueRecord_args(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public verifyKeyValueRecord_args(verifyKeyValueRecord_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject( other.value); } this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public verifyKeyValueRecord_args deepCopy() { return new verifyKeyValueRecord_args(this); } @Override public void clear() { this.key = null; this.value = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public verifyKeyValueRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public verifyKeyValueRecord_args setValue( com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** * Returns true if field value is set (has been assigned a value) and * false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if(!value) { this.value = null; } } public long getRecord() { return this.record; } public verifyKeyValueRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public verifyKeyValueRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public verifyKeyValueRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public verifyKeyValueRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case VALUE: if(value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case VALUE: return isSetValue(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof verifyKeyValueRecord_args) return this.equals((verifyKeyValueRecord_args) that); return false; } public boolean equals(verifyKeyValueRecord_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if(this_present_value || that_present_value) { if(!(this_present_value && that_present_value)) return false; if(!this.value.equals(that.value)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if(present_value) list.add(value); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(verifyKeyValueRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()) .compareTo(other.isSetValue()); if(lastComparison != 0) { return lastComparison; } if(isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.value, other.value); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("verifyKeyValueRecord_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("value:"); if(this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(value != null) { value.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class verifyKeyValueRecord_argsStandardSchemeFactory implements SchemeFactory { public verifyKeyValueRecord_argsStandardScheme getScheme() { return new verifyKeyValueRecord_argsStandardScheme(); } } private static class verifyKeyValueRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, verifyKeyValueRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, verifyKeyValueRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class verifyKeyValueRecord_argsTupleSchemeFactory implements SchemeFactory { public verifyKeyValueRecord_argsTupleScheme getScheme() { return new verifyKeyValueRecord_argsTupleScheme(); } } private static class verifyKeyValueRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, verifyKeyValueRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetValue()) { optionals.set(1); } if(struct.isSetRecord()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetValue()) { struct.value.write(oprot); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, verifyKeyValueRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if(incoming.get(2)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class verifyKeyValueRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "verifyKeyValueRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.BOOL, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( verifyKeyValueRecord_result.class, metaDataMap); } public verifyKeyValueRecord_result() {} public verifyKeyValueRecord_result(boolean success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public verifyKeyValueRecord_result(verifyKeyValueRecord_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public verifyKeyValueRecord_result deepCopy() { return new verifyKeyValueRecord_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 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 com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public verifyKeyValueRecord_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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( "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; 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 verifyKeyValueRecord_resultStandardSchemeFactory implements SchemeFactory { public verifyKeyValueRecord_resultStandardScheme getScheme() { return new verifyKeyValueRecord_resultStandardScheme(); } } private static class verifyKeyValueRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, verifyKeyValueRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, 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(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class verifyKeyValueRecord_resultTupleSchemeFactory implements SchemeFactory { public verifyKeyValueRecord_resultTupleScheme getScheme() { return new verifyKeyValueRecord_resultTupleScheme(); } } private static class verifyKeyValueRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, verifyKeyValueRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, verifyKeyValueRecord_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class verifyKeyValueRecordTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "verifyKeyValueRecordTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField( "value", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new verifyKeyValueRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new verifyKeyValueRecordTime_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), VALUE((short) 2, "value"), RECORD((short) 3, "record"), TIMESTAMP((short) 4, "timestamp"), CREDS((short) 5, "creds"), TRANSACTION((short) 6, "transaction"), ENVIRONMENT((short) 7, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // RECORD return RECORD; case 4: // TIMESTAMP return TIMESTAMP; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( verifyKeyValueRecordTime_args.class, metaDataMap); } public verifyKeyValueRecordTime_args() {} public verifyKeyValueRecordTime_args(String key, com.cinchapi.concourse.thrift.TObject value, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public verifyKeyValueRecordTime_args( verifyKeyValueRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject( other.value); } this.record = other.record; this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public verifyKeyValueRecordTime_args deepCopy() { return new verifyKeyValueRecordTime_args(this); } @Override public void clear() { this.key = null; this.value = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public verifyKeyValueRecordTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public verifyKeyValueRecordTime_args setValue( com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** * Returns true if field value is set (has been assigned a value) and * false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if(!value) { this.value = null; } } public long getRecord() { return this.record; } public verifyKeyValueRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public verifyKeyValueRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public verifyKeyValueRecordTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public verifyKeyValueRecordTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public verifyKeyValueRecordTime_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case VALUE: if(value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case VALUE: return isSetValue(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof verifyKeyValueRecordTime_args) return this.equals((verifyKeyValueRecordTime_args) that); return false; } public boolean equals(verifyKeyValueRecordTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if(this_present_value || that_present_value) { if(!(this_present_value && that_present_value)) return false; if(!this.value.equals(that.value)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if(present_value) list.add(value); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(verifyKeyValueRecordTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()) .compareTo(other.isSetValue()); if(lastComparison != 0) { return lastComparison; } if(isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.value, other.value); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "verifyKeyValueRecordTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("value:"); if(this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(value != null) { value.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class verifyKeyValueRecordTime_argsStandardSchemeFactory implements SchemeFactory { public verifyKeyValueRecordTime_argsStandardScheme getScheme() { return new verifyKeyValueRecordTime_argsStandardScheme(); } } private static class verifyKeyValueRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, verifyKeyValueRecordTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, verifyKeyValueRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class verifyKeyValueRecordTime_argsTupleSchemeFactory implements SchemeFactory { public verifyKeyValueRecordTime_argsTupleScheme getScheme() { return new verifyKeyValueRecordTime_argsTupleScheme(); } } private static class verifyKeyValueRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, verifyKeyValueRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetValue()) { optionals.set(1); } if(struct.isSetRecord()) { optionals.set(2); } if(struct.isSetTimestamp()) { optionals.set(3); } if(struct.isSetCreds()) { optionals.set(4); } if(struct.isSetTransaction()) { optionals.set(5); } if(struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetValue()) { struct.value.write(oprot); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, verifyKeyValueRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if(incoming.get(2)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(3)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class verifyKeyValueRecordTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "verifyKeyValueRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.BOOL, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( verifyKeyValueRecordTime_result.class, metaDataMap); } public verifyKeyValueRecordTime_result() {} public verifyKeyValueRecordTime_result(boolean success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public verifyKeyValueRecordTime_result( verifyKeyValueRecordTime_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public verifyKeyValueRecordTime_result deepCopy() { return new verifyKeyValueRecordTime_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 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 com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public verifyKeyValueRecordTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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( "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; 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 verifyKeyValueRecordTime_resultStandardSchemeFactory implements SchemeFactory { public verifyKeyValueRecordTime_resultStandardScheme getScheme() { return new verifyKeyValueRecordTime_resultStandardScheme(); } } private static class verifyKeyValueRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, verifyKeyValueRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, 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(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class verifyKeyValueRecordTime_resultTupleSchemeFactory implements SchemeFactory { public verifyKeyValueRecordTime_resultTupleScheme getScheme() { return new verifyKeyValueRecordTime_resultTupleScheme(); } } private static class verifyKeyValueRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, verifyKeyValueRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, verifyKeyValueRecordTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class verifyKeyValueRecordTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "verifyKeyValueRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField( "value", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new verifyKeyValueRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new verifyKeyValueRecordTimestr_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), VALUE((short) 2, "value"), RECORD((short) 3, "record"), TIMESTAMP((short) 4, "timestamp"), CREDS((short) 5, "creds"), TRANSACTION((short) 6, "transaction"), ENVIRONMENT((short) 7, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // RECORD return RECORD; case 4: // TIMESTAMP return TIMESTAMP; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( verifyKeyValueRecordTimestr_args.class, metaDataMap); } public verifyKeyValueRecordTimestr_args() {} public verifyKeyValueRecordTimestr_args(String key, com.cinchapi.concourse.thrift.TObject value, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public verifyKeyValueRecordTimestr_args( verifyKeyValueRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject( other.value); } this.record = other.record; if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public verifyKeyValueRecordTimestr_args deepCopy() { return new verifyKeyValueRecordTimestr_args(this); } @Override public void clear() { this.key = null; this.value = null; setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public verifyKeyValueRecordTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public verifyKeyValueRecordTimestr_args setValue( com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** * Returns true if field value is set (has been assigned a value) and * false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if(!value) { this.value = null; } } public long getRecord() { return this.record; } public verifyKeyValueRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public verifyKeyValueRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public verifyKeyValueRecordTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public verifyKeyValueRecordTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public verifyKeyValueRecordTimestr_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case VALUE: if(value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case VALUE: return isSetValue(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof verifyKeyValueRecordTimestr_args) return this.equals((verifyKeyValueRecordTimestr_args) that); return false; } public boolean equals(verifyKeyValueRecordTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if(this_present_value || that_present_value) { if(!(this_present_value && that_present_value)) return false; if(!this.value.equals(that.value)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if(present_value) list.add(value); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(verifyKeyValueRecordTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()) .compareTo(other.isSetValue()); if(lastComparison != 0) { return lastComparison; } if(isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.value, other.value); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "verifyKeyValueRecordTimestr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("value:"); if(this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(value != null) { value.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class verifyKeyValueRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public verifyKeyValueRecordTimestr_argsStandardScheme getScheme() { return new verifyKeyValueRecordTimestr_argsStandardScheme(); } } private static class verifyKeyValueRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, verifyKeyValueRecordTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, verifyKeyValueRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class verifyKeyValueRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public verifyKeyValueRecordTimestr_argsTupleScheme getScheme() { return new verifyKeyValueRecordTimestr_argsTupleScheme(); } } private static class verifyKeyValueRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, verifyKeyValueRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetValue()) { optionals.set(1); } if(struct.isSetRecord()) { optionals.set(2); } if(struct.isSetTimestamp()) { optionals.set(3); } if(struct.isSetCreds()) { optionals.set(4); } if(struct.isSetTransaction()) { optionals.set(5); } if(struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetValue()) { struct.value.write(oprot); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, verifyKeyValueRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if(incoming.get(2)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(3)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class verifyKeyValueRecordTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "verifyKeyValueRecordTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.BOOL, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( 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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public 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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = 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 com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public verifyKeyValueRecordTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) 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(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class verifyKeyValueRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public verifyKeyValueRecordTimestr_resultStandardScheme getScheme() { return new verifyKeyValueRecordTimestr_resultStandardScheme(); } } private static class verifyKeyValueRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, verifyKeyValueRecordTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, 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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class verifyKeyValueRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public verifyKeyValueRecordTimestr_resultTupleScheme getScheme() { return new verifyKeyValueRecordTimestr_resultTupleScheme(); } } private static class verifyKeyValueRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, verifyKeyValueRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); 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); } if(struct.isSetEx4()) { struct.ex4.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(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class jsonifyRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "jsonifyRecords_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField IDENTIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField( "identifier", org.apache.thrift.protocol.TType.BOOL, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new jsonifyRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new jsonifyRecords_argsTupleSchemeFactory()); } public List records; // required public boolean identifier; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short) 1, "records"), IDENTIFIER((short) 2, "identifier"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORDS return RECORDS; case 2: // IDENTIFIER return IDENTIFIER; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __IDENTIFIER_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.IDENTIFIER, new org.apache.thrift.meta_data.FieldMetaData("identifier", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( jsonifyRecords_args.class, metaDataMap); } public jsonifyRecords_args() {} public jsonifyRecords_args(List records, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.identifier = identifier; setIdentifierIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public jsonifyRecords_args(jsonifyRecords_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.identifier = other.identifier; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public jsonifyRecords_args deepCopy() { return new jsonifyRecords_args(this); } @Override public void clear() { this.records = null; setIdentifierIsSet(false); this.identifier = false; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public jsonifyRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public boolean isIdentifier() { return this.identifier; } public jsonifyRecords_args setIdentifier(boolean identifier) { this.identifier = identifier; setIdentifierIsSet(true); return this; } public void unsetIdentifier() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __IDENTIFIER_ISSET_ID); } /** * Returns true if field identifier is set (has been assigned a value) * and false otherwise */ public boolean isSetIdentifier() { return EncodingUtils.testBit(__isset_bitfield, __IDENTIFIER_ISSET_ID); } public void setIdentifierIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __IDENTIFIER_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public jsonifyRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public jsonifyRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public jsonifyRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case IDENTIFIER: if(value == null) { unsetIdentifier(); } else { setIdentifier((Boolean) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case IDENTIFIER: return isIdentifier(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORDS: return isSetRecords(); case IDENTIFIER: return isSetIdentifier(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof jsonifyRecords_args) return this.equals((jsonifyRecords_args) that); return false; } public boolean equals(jsonifyRecords_args that) { if(that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_identifier = true; boolean that_present_identifier = true; if(this_present_identifier || that_present_identifier) { if(!(this_present_identifier && that_present_identifier)) return false; if(this.identifier != that.identifier) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_identifier = true; list.add(present_identifier); if(present_identifier) list.add(identifier); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(jsonifyRecords_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetIdentifier()) .compareTo(other.isSetIdentifier()); if(lastComparison != 0) { return lastComparison; } if(isSetIdentifier()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.identifier, other.identifier); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("jsonifyRecords_args("); boolean first = true; sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("identifier:"); sb.append(this.identifier); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class jsonifyRecords_argsStandardSchemeFactory implements SchemeFactory { public jsonifyRecords_argsStandardScheme getScheme() { return new jsonifyRecords_argsStandardScheme(); } } private static class jsonifyRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, jsonifyRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2438 = iprot .readListBegin(); struct.records = new ArrayList( _list2438.size); long _elem2439; for (int _i2440 = 0; _i2440 < _list2438.size; ++_i2440) { _elem2439 = iprot.readI64(); struct.records.add(_elem2439); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // IDENTIFIER if(schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.identifier = iprot.readBool(); struct.setIdentifierIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, jsonifyRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2441 : struct.records) { oprot.writeI64(_iter2441); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(IDENTIFIER_FIELD_DESC); oprot.writeBool(struct.identifier); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class jsonifyRecords_argsTupleSchemeFactory implements SchemeFactory { public jsonifyRecords_argsTupleScheme getScheme() { return new jsonifyRecords_argsTupleScheme(); } } private static class jsonifyRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, jsonifyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecords()) { optionals.set(0); } if(struct.isSetIdentifier()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2442 : struct.records) { oprot.writeI64(_iter2442); } } } if(struct.isSetIdentifier()) { oprot.writeBool(struct.identifier); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, jsonifyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list2443 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2443.size); long _elem2444; for (int _i2445 = 0; _i2445 < _list2443.size; ++_i2445) { _elem2444 = iprot.readI64(); struct.records.add(_elem2444); } } struct.setRecordsIsSet(true); } if(incoming.get(1)) { struct.identifier = iprot.readBool(); struct.setIdentifierIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class jsonifyRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "jsonifyRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRING, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( jsonifyRecords_result.class, metaDataMap); } public jsonifyRecords_result() {} public jsonifyRecords_result(String success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public jsonifyRecords_result(jsonifyRecords_result other) { if(other.isSetSuccess()) { this.success = other.success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public jsonifyRecords_result deepCopy() { return new jsonifyRecords_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 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 com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public jsonifyRecords_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 jsonifyRecords_resultStandardSchemeFactory implements SchemeFactory { public jsonifyRecords_resultStandardScheme getScheme() { return new jsonifyRecords_resultStandardScheme(); } } private static class jsonifyRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, jsonifyRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, 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(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class jsonifyRecords_resultTupleSchemeFactory implements SchemeFactory { public jsonifyRecords_resultTupleScheme getScheme() { return new jsonifyRecords_resultTupleScheme(); } } private static class jsonifyRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, jsonifyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, jsonifyRecords_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class jsonifyRecordsTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "jsonifyRecordsTime_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField IDENTIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField( "identifier", org.apache.thrift.protocol.TType.BOOL, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new jsonifyRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new jsonifyRecordsTime_argsTupleSchemeFactory()); } public List records; // required public long timestamp; // required public boolean identifier; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short) 1, "records"), TIMESTAMP((short) 2, "timestamp"), IDENTIFIER((short) 3, "identifier"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORDS return RECORDS; case 2: // TIMESTAMP return TIMESTAMP; case 3: // IDENTIFIER return IDENTIFIER; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private static final int __IDENTIFIER_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.IDENTIFIER, new org.apache.thrift.meta_data.FieldMetaData("identifier", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( jsonifyRecordsTime_args.class, metaDataMap); } public jsonifyRecordsTime_args() {} public jsonifyRecordsTime_args(List records, long timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.identifier = identifier; setIdentifierIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public jsonifyRecordsTime_args(jsonifyRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; this.identifier = other.identifier; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public jsonifyRecordsTime_args deepCopy() { return new jsonifyRecordsTime_args(this); } @Override public void clear() { this.records = null; setTimestampIsSet(false); this.timestamp = 0; setIdentifierIsSet(false); this.identifier = false; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public jsonifyRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public jsonifyRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public boolean isIdentifier() { return this.identifier; } public jsonifyRecordsTime_args setIdentifier(boolean identifier) { this.identifier = identifier; setIdentifierIsSet(true); return this; } public void unsetIdentifier() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __IDENTIFIER_ISSET_ID); } /** * Returns true if field identifier is set (has been assigned a value) * and false otherwise */ public boolean isSetIdentifier() { return EncodingUtils.testBit(__isset_bitfield, __IDENTIFIER_ISSET_ID); } public void setIdentifierIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __IDENTIFIER_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public jsonifyRecordsTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public jsonifyRecordsTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public jsonifyRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case IDENTIFIER: if(value == null) { unsetIdentifier(); } else { setIdentifier((Boolean) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case IDENTIFIER: return isIdentifier(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case IDENTIFIER: return isSetIdentifier(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof jsonifyRecordsTime_args) return this.equals((jsonifyRecordsTime_args) that); return false; } public boolean equals(jsonifyRecordsTime_args that) { if(that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_identifier = true; boolean that_present_identifier = true; if(this_present_identifier || that_present_identifier) { if(!(this_present_identifier && that_present_identifier)) return false; if(this.identifier != that.identifier) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_identifier = true; list.add(present_identifier); if(present_identifier) list.add(identifier); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(jsonifyRecordsTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetIdentifier()) .compareTo(other.isSetIdentifier()); if(lastComparison != 0) { return lastComparison; } if(isSetIdentifier()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.identifier, other.identifier); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("jsonifyRecordsTime_args("); boolean first = true; sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("identifier:"); sb.append(this.identifier); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class jsonifyRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public jsonifyRecordsTime_argsStandardScheme getScheme() { return new jsonifyRecordsTime_argsStandardScheme(); } } private static class jsonifyRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, jsonifyRecordsTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2446 = iprot .readListBegin(); struct.records = new ArrayList( _list2446.size); long _elem2447; for (int _i2448 = 0; _i2448 < _list2446.size; ++_i2448) { _elem2447 = iprot.readI64(); struct.records.add(_elem2447); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // IDENTIFIER if(schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.identifier = iprot.readBool(); struct.setIdentifierIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, jsonifyRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2449 : struct.records) { oprot.writeI64(_iter2449); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); oprot.writeFieldBegin(IDENTIFIER_FIELD_DESC); oprot.writeBool(struct.identifier); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class jsonifyRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public jsonifyRecordsTime_argsTupleScheme getScheme() { return new jsonifyRecordsTime_argsTupleScheme(); } } private static class jsonifyRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, jsonifyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecords()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetIdentifier()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2450 : struct.records) { oprot.writeI64(_iter2450); } } } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetIdentifier()) { oprot.writeBool(struct.identifier); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, jsonifyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list2451 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2451.size); long _elem2452; for (int _i2453 = 0; _i2453 < _list2451.size; ++_i2453) { _elem2452 = iprot.readI64(); struct.records.add(_elem2452); } } struct.setRecordsIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.identifier = iprot.readBool(); struct.setIdentifierIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class jsonifyRecordsTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "jsonifyRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRING, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( jsonifyRecordsTime_result.class, metaDataMap); } public jsonifyRecordsTime_result() {} public jsonifyRecordsTime_result(String success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public jsonifyRecordsTime_result(jsonifyRecordsTime_result other) { if(other.isSetSuccess()) { this.success = other.success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public jsonifyRecordsTime_result deepCopy() { return new jsonifyRecordsTime_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 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 com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public jsonifyRecordsTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 jsonifyRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public jsonifyRecordsTime_resultStandardScheme getScheme() { return new jsonifyRecordsTime_resultStandardScheme(); } } private static class jsonifyRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, jsonifyRecordsTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, 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(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class jsonifyRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public jsonifyRecordsTime_resultTupleScheme getScheme() { return new jsonifyRecordsTime_resultTupleScheme(); } } private static class jsonifyRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, jsonifyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, jsonifyRecordsTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class jsonifyRecordsTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "jsonifyRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField IDENTIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField( "identifier", org.apache.thrift.protocol.TType.BOOL, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new jsonifyRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new jsonifyRecordsTimestr_argsTupleSchemeFactory()); } public List records; // required public String timestamp; // required public boolean identifier; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short) 1, "records"), TIMESTAMP((short) 2, "timestamp"), IDENTIFIER((short) 3, "identifier"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORDS return RECORDS; case 2: // TIMESTAMP return TIMESTAMP; case 3: // IDENTIFIER return IDENTIFIER; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __IDENTIFIER_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.IDENTIFIER, new org.apache.thrift.meta_data.FieldMetaData("identifier", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( jsonifyRecordsTimestr_args.class, metaDataMap); } public jsonifyRecordsTimestr_args() {} public jsonifyRecordsTimestr_args(List records, String timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.timestamp = timestamp; this.identifier = identifier; setIdentifierIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public jsonifyRecordsTimestr_args(jsonifyRecordsTimestr_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } this.identifier = other.identifier; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public jsonifyRecordsTimestr_args deepCopy() { return new jsonifyRecordsTimestr_args(this); } @Override public void clear() { this.records = null; this.timestamp = null; setIdentifierIsSet(false); this.identifier = false; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public jsonifyRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public jsonifyRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public boolean isIdentifier() { return this.identifier; } public jsonifyRecordsTimestr_args setIdentifier(boolean identifier) { this.identifier = identifier; setIdentifierIsSet(true); return this; } public void unsetIdentifier() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __IDENTIFIER_ISSET_ID); } /** * Returns true if field identifier is set (has been assigned a value) * and false otherwise */ public boolean isSetIdentifier() { return EncodingUtils.testBit(__isset_bitfield, __IDENTIFIER_ISSET_ID); } public void setIdentifierIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __IDENTIFIER_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public jsonifyRecordsTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public jsonifyRecordsTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public jsonifyRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case IDENTIFIER: if(value == null) { unsetIdentifier(); } else { setIdentifier((Boolean) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case IDENTIFIER: return isIdentifier(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case IDENTIFIER: return isSetIdentifier(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof jsonifyRecordsTimestr_args) return this.equals((jsonifyRecordsTimestr_args) that); return false; } public boolean equals(jsonifyRecordsTimestr_args that) { if(that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_identifier = true; boolean that_present_identifier = true; if(this_present_identifier || that_present_identifier) { if(!(this_present_identifier && that_present_identifier)) return false; if(this.identifier != that.identifier) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_identifier = true; list.add(present_identifier); if(present_identifier) list.add(identifier); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(jsonifyRecordsTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetIdentifier()) .compareTo(other.isSetIdentifier()); if(lastComparison != 0) { return lastComparison; } if(isSetIdentifier()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.identifier, other.identifier); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("jsonifyRecordsTimestr_args("); boolean first = true; sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("identifier:"); sb.append(this.identifier); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class jsonifyRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public jsonifyRecordsTimestr_argsStandardScheme getScheme() { return new jsonifyRecordsTimestr_argsStandardScheme(); } } private static class jsonifyRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, jsonifyRecordsTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2454 = iprot .readListBegin(); struct.records = new ArrayList( _list2454.size); long _elem2455; for (int _i2456 = 0; _i2456 < _list2454.size; ++_i2456) { _elem2455 = iprot.readI64(); struct.records.add(_elem2455); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // IDENTIFIER if(schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.identifier = iprot.readBool(); struct.setIdentifierIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, jsonifyRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2457 : struct.records) { oprot.writeI64(_iter2457); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } oprot.writeFieldBegin(IDENTIFIER_FIELD_DESC); oprot.writeBool(struct.identifier); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class jsonifyRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public jsonifyRecordsTimestr_argsTupleScheme getScheme() { return new jsonifyRecordsTimestr_argsTupleScheme(); } } private static class jsonifyRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, jsonifyRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecords()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetIdentifier()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2458 : struct.records) { oprot.writeI64(_iter2458); } } } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetIdentifier()) { oprot.writeBool(struct.identifier); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, jsonifyRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list2459 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2459.size); long _elem2460; for (int _i2461 = 0; _i2461 < _list2459.size; ++_i2461) { _elem2460 = iprot.readI64(); struct.records.add(_elem2460); } } struct.setRecordsIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.identifier = iprot.readBool(); struct.setIdentifierIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class jsonifyRecordsTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "jsonifyRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRING, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( 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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public jsonifyRecordsTimestr_result( jsonifyRecordsTimestr_result other) { if(other.isSetSuccess()) { this.success = other.success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = 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 com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public jsonifyRecordsTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class jsonifyRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public jsonifyRecordsTimestr_resultStandardScheme getScheme() { return new jsonifyRecordsTimestr_resultStandardScheme(); } } private static class jsonifyRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, jsonifyRecordsTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, 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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class jsonifyRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public jsonifyRecordsTimestr_resultTupleScheme getScheme() { return new jsonifyRecordsTimestr_resultTupleScheme(); } } private static class jsonifyRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, jsonifyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); 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); } if(struct.isSetEx4()) { struct.ex4.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(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class findCriteria_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findCriteria_args"); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findCriteria_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CRITERIA((short) 1, "criteria"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CRITERIA return CRITERIA; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(findCriteria_args.class, metaDataMap); } public findCriteria_args() {} public findCriteria_args( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findCriteria_args(findCriteria_args other) { if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public findCriteria_args deepCopy() { return new findCriteria_args(this); } @Override public void clear() { this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public findCriteria_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findCriteria_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findCriteria_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof findCriteria_args) return this.equals((findCriteria_args) that); return false; } public boolean equals(findCriteria_args that) { if(that == null) return false; boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findCriteria_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("findCriteria_args("); boolean first = true; sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findCriteria_argsStandardSchemeFactory implements SchemeFactory { public findCriteria_argsStandardScheme getScheme() { return new findCriteria_argsStandardScheme(); } } private static class findCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findCriteria_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, findCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findCriteria_argsTupleSchemeFactory implements SchemeFactory { public findCriteria_argsTupleScheme getScheme() { return new findCriteria_argsTupleScheme(); } } private static class findCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCriteria()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findCriteria_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.SET, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findCriteria_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( findCriteria_result.class, metaDataMap); } public findCriteria_result() {} public findCriteria_result(Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public findCriteria_result(findCriteria_result other) { if(other.isSetSuccess()) { Set __this__success = new LinkedHashSet( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public findCriteria_result deepCopy() { return new findCriteria_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(long elem) { if(this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public findCriteria_result setSuccess(Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findCriteria_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findCriteria_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public findCriteria_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Set) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 findCriteria_resultStandardSchemeFactory implements SchemeFactory { public findCriteria_resultStandardScheme getScheme() { return new findCriteria_resultStandardScheme(); } } private static class findCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findCriteria_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set2462 = iprot .readSetBegin(); struct.success = new LinkedHashSet( 2 * _set2462.size); long _elem2463; for (int _i2464 = 0; _i2464 < _set2462.size; ++_i2464) { _elem2463 = iprot.readI64(); struct.success.add(_elem2463); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, findCriteria_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, struct.success.size())); for (long _iter2465 : struct.success) { oprot.writeI64(_iter2465); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findCriteria_resultTupleSchemeFactory implements SchemeFactory { public findCriteria_resultTupleScheme getScheme() { return new findCriteria_resultTupleScheme(); } } private static class findCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); 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); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TSet _set2467 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet( 2 * _set2467.size); long _elem2468; for (int _i2469 = 0; _i2469 < _set2467.size; ++_i2469) { _elem2468 = iprot.readI64(); struct.success.add(_elem2468); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class findCcl_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findCcl_args"); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findCcl_argsTupleSchemeFactory()); } public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CCL((short) 1, "ccl"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CCL return CCL; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(findCcl_args.class, metaDataMap); } public findCcl_args() {} public findCcl_args(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findCcl_args(findCcl_args other) { if(other.isSetCcl()) { this.ccl = other.ccl; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public findCcl_args deepCopy() { return new findCcl_args(this); } @Override public void clear() { this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public String getCcl() { return this.ccl; } public findCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findCcl_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findCcl_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof findCcl_args) return this.equals((findCcl_args) that); return false; } public boolean equals(findCcl_args that) { if(that == null) return false; boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findCcl_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("findCcl_args("); boolean first = true; sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findCcl_argsStandardSchemeFactory implements SchemeFactory { public findCcl_argsStandardScheme getScheme() { return new findCcl_argsStandardScheme(); } } private static class findCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findCcl_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, findCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findCcl_argsTupleSchemeFactory implements SchemeFactory { public findCcl_argsTupleScheme getScheme() { return new findCcl_argsTupleScheme(); } } private static class findCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCcl()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findCcl_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.SET, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findCcl_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(findCcl_result.class, metaDataMap); } public findCcl_result() {} public findCcl_result(Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public findCcl_result(findCcl_result other) { if(other.isSetSuccess()) { Set __this__success = new LinkedHashSet( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(long elem) { if(this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public findCcl_result setSuccess(Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findCcl_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findCcl_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public findCcl_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public findCcl_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Set) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findCcl_resultStandardSchemeFactory implements SchemeFactory { public findCcl_resultStandardScheme getScheme() { return new findCcl_resultStandardScheme(); } } private static class findCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findCcl_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set2470 = iprot .readSetBegin(); struct.success = new LinkedHashSet( 2 * _set2470.size); long _elem2471; for (int _i2472 = 0; _i2472 < _set2470.size; ++_i2472) { _elem2471 = iprot.readI64(); struct.success.add(_elem2471); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, findCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, struct.success.size())); for (long _iter2473 : struct.success) { oprot.writeI64(_iter2473); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findCcl_resultTupleSchemeFactory implements SchemeFactory { public findCcl_resultTupleScheme getScheme() { return new findCcl_resultTupleScheme(); } } private static class findCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (long _iter2474 : struct.success) { oprot.writeI64(_iter2474); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TSet _set2475 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet( 2 * _set2475.size); long _elem2476; for (int _i2477 = 0; _i2477 < _set2475.size; ++_i2477) { _elem2476 = iprot.readI64(); struct.success.add(_elem2476); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class findKeyOperatorValues_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findKeyOperatorValues_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField OPERATOR_FIELD_DESC = new org.apache.thrift.protocol.TField( "operator", org.apache.thrift.protocol.TType.I32, (short) 2); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField( "values", org.apache.thrift.protocol.TType.LIST, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorValues_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorValues_argsTupleSchemeFactory()); } public String key; // required /** * * @see com.cinchapi.concourse.thrift.Operator */ public com.cinchapi.concourse.thrift.Operator operator; // required public List values; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), /** * * @see com.cinchapi.concourse.thrift.Operator */ OPERATOR((short) 2, "operator"), VALUES((short) 3, "values"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // OPERATOR return OPERATOR; case 3: // VALUES return VALUES; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.OPERATOR, new org.apache.thrift.meta_data.FieldMetaData("operator", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.EnumMetaData( org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Operator.class))); tmpMap.put(_Fields.VALUES, new org.apache.thrift.meta_data.FieldMetaData("values", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( findKeyOperatorValues_args.class, metaDataMap); } public findKeyOperatorValues_args() {} public findKeyOperatorValues_args(String key, com.cinchapi.concourse.thrift.Operator operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.operator = operator; this.values = values; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findKeyOperatorValues_args(findKeyOperatorValues_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetOperator()) { this.operator = other.operator; } if(other.isSetValues()) { List __this__values = new ArrayList( other.values.size()); for (com.cinchapi.concourse.thrift.TObject other_element : other.values) { __this__values .add(new com.cinchapi.concourse.thrift.TObject( other_element)); } this.values = __this__values; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public findKeyOperatorValues_args deepCopy() { return new findKeyOperatorValues_args(this); } @Override public void clear() { this.key = null; this.operator = null; this.values = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public findKeyOperatorValues_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } /** * * @see com.cinchapi.concourse.thrift.Operator */ public com.cinchapi.concourse.thrift.Operator getOperator() { return this.operator; } /** * * @see com.cinchapi.concourse.thrift.Operator */ public findKeyOperatorValues_args setOperator( com.cinchapi.concourse.thrift.Operator operator) { this.operator = operator; return this; } public void unsetOperator() { this.operator = null; } /** * Returns true if field operator is set (has been assigned a value) and * false otherwise */ public boolean isSetOperator() { return this.operator != null; } public void setOperatorIsSet(boolean value) { if(!value) { this.operator = null; } } public int getValuesSize() { return (this.values == null) ? 0 : this.values.size(); } public java.util.Iterator getValuesIterator() { return (this.values == null) ? null : this.values.iterator(); } public void addToValues(com.cinchapi.concourse.thrift.TObject elem) { if(this.values == null) { this.values = new ArrayList(); } this.values.add(elem); } public List getValues() { return this.values; } public findKeyOperatorValues_args setValues( List values) { this.values = values; return this; } public void unsetValues() { this.values = null; } /** * Returns true if field values is set (has been assigned a value) and * false otherwise */ public boolean isSetValues() { return this.values != null; } public void setValuesIsSet(boolean value) { if(!value) { this.values = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findKeyOperatorValues_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findKeyOperatorValues_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findKeyOperatorValues_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case OPERATOR: if(value == null) { unsetOperator(); } else { setOperator((com.cinchapi.concourse.thrift.Operator) value); } break; case VALUES: if(value == null) { unsetValues(); } else { setValues( (List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case OPERATOR: return getOperator(); case VALUES: return getValues(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case OPERATOR: return isSetOperator(); case VALUES: return isSetValues(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof findKeyOperatorValues_args) return this.equals((findKeyOperatorValues_args) that); return false; } public boolean equals(findKeyOperatorValues_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_operator = true && this.isSetOperator(); boolean that_present_operator = true && that.isSetOperator(); if(this_present_operator || that_present_operator) { if(!(this_present_operator && that_present_operator)) return false; if(!this.operator.equals(that.operator)) return false; } boolean this_present_values = true && this.isSetValues(); boolean that_present_values = true && that.isSetValues(); if(this_present_values || that_present_values) { if(!(this_present_values && that_present_values)) return false; if(!this.values.equals(that.values)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_operator = true && (isSetOperator()); list.add(present_operator); if(present_operator) list.add(operator.getValue()); boolean present_values = true && (isSetValues()); list.add(present_values); if(present_values) list.add(values); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findKeyOperatorValues_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOperator()) .compareTo(other.isSetOperator()); if(lastComparison != 0) { return lastComparison; } if(isSetOperator()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.operator, other.operator); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValues()) .compareTo(other.isSetValues()); if(lastComparison != 0) { return lastComparison; } if(isSetValues()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.values, other.values); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("findKeyOperatorValues_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("operator:"); if(this.operator == null) { sb.append("null"); } else { sb.append(this.operator); } first = false; if(!first) sb.append(", "); sb.append("values:"); if(this.values == null) { sb.append("null"); } else { sb.append(this.values); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findKeyOperatorValues_argsStandardSchemeFactory implements SchemeFactory { public findKeyOperatorValues_argsStandardScheme getScheme() { return new findKeyOperatorValues_argsStandardScheme(); } } private static class findKeyOperatorValues_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorValues_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // OPERATOR if(schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.operator = com.cinchapi.concourse.thrift.Operator .findByValue(iprot.readI32()); struct.setOperatorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // VALUES if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2478 = iprot .readListBegin(); struct.values = new ArrayList( _list2478.size); com.cinchapi.concourse.thrift.TObject _elem2479; for (int _i2480 = 0; _i2480 < _list2478.size; ++_i2480) { _elem2479 = new com.cinchapi.concourse.thrift.TObject(); _elem2479.read(iprot); struct.values.add(_elem2479); } iprot.readListEnd(); } struct.setValuesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, findKeyOperatorValues_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.operator != null) { oprot.writeFieldBegin(OPERATOR_FIELD_DESC); oprot.writeI32(struct.operator.getValue()); oprot.writeFieldEnd(); } if(struct.values != null) { oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.values.size())); for (com.cinchapi.concourse.thrift.TObject _iter2481 : struct.values) { _iter2481.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorValues_argsTupleSchemeFactory implements SchemeFactory { public findKeyOperatorValues_argsTupleScheme getScheme() { return new findKeyOperatorValues_argsTupleScheme(); } } private static class findKeyOperatorValues_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorValues_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetOperator()) { optionals.set(1); } if(struct.isSetValues()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetOperator()) { oprot.writeI32(struct.operator.getValue()); } if(struct.isSetValues()) { { oprot.writeI32(struct.values.size()); for (com.cinchapi.concourse.thrift.TObject _iter2482 : struct.values) { _iter2482.write(oprot); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorValues_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.operator = com.cinchapi.concourse.thrift.Operator .findByValue(iprot.readI32()); struct.setOperatorIsSet(true); } if(incoming.get(2)) { { org.apache.thrift.protocol.TList _list2483 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.values = new ArrayList( _list2483.size); com.cinchapi.concourse.thrift.TObject _elem2484; for (int _i2485 = 0; _i2485 < _list2483.size; ++_i2485) { _elem2484 = new com.cinchapi.concourse.thrift.TObject(); _elem2484.read(iprot); struct.values.add(_elem2484); } } struct.setValuesIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findKeyOperatorValues_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findKeyOperatorValues_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.SET, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorValues_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorValues_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( findKeyOperatorValues_result.class, metaDataMap); } public findKeyOperatorValues_result() {} public findKeyOperatorValues_result(Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public findKeyOperatorValues_result( findKeyOperatorValues_result other) { if(other.isSetSuccess()) { Set __this__success = new LinkedHashSet( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public findKeyOperatorValues_result deepCopy() { return new findKeyOperatorValues_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(long elem) { if(this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public findKeyOperatorValues_result setSuccess(Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findKeyOperatorValues_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findKeyOperatorValues_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public findKeyOperatorValues_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Set) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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( "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; 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 findKeyOperatorValues_resultStandardSchemeFactory implements SchemeFactory { public findKeyOperatorValues_resultStandardScheme getScheme() { return new findKeyOperatorValues_resultStandardScheme(); } } private static class findKeyOperatorValues_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorValues_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set2486 = iprot .readSetBegin(); struct.success = new LinkedHashSet( 2 * _set2486.size); long _elem2487; for (int _i2488 = 0; _i2488 < _set2486.size; ++_i2488) { _elem2487 = iprot.readI64(); struct.success.add(_elem2487); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, findKeyOperatorValues_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, struct.success.size())); for (long _iter2489 : struct.success) { oprot.writeI64(_iter2489); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorValues_resultTupleSchemeFactory implements SchemeFactory { public findKeyOperatorValues_resultTupleScheme getScheme() { return new findKeyOperatorValues_resultTupleScheme(); } } private static class findKeyOperatorValues_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorValues_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (long _iter2490 : struct.success) { oprot.writeI64(_iter2490); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TSet _set2491 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet( 2 * _set2491.size); long _elem2492; for (int _i2493 = 0; _i2493 < _set2491.size; ++_i2493) { _elem2492 = iprot.readI64(); struct.success.add(_elem2492); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class findKeyOperatorValuesTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findKeyOperatorValuesTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField OPERATOR_FIELD_DESC = new org.apache.thrift.protocol.TField( "operator", org.apache.thrift.protocol.TType.I32, (short) 2); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField( "values", org.apache.thrift.protocol.TType.LIST, (short) 3); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorValuesTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorValuesTime_argsTupleSchemeFactory()); } public String key; // required /** * * @see com.cinchapi.concourse.thrift.Operator */ public com.cinchapi.concourse.thrift.Operator operator; // required public List values; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), /** * * @see com.cinchapi.concourse.thrift.Operator */ OPERATOR((short) 2, "operator"), VALUES((short) 3, "values"), TIMESTAMP((short) 4, "timestamp"), CREDS((short) 5, "creds"), TRANSACTION((short) 6, "transaction"), ENVIRONMENT((short) 7, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // OPERATOR return OPERATOR; case 3: // VALUES return VALUES; case 4: // TIMESTAMP return TIMESTAMP; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.OPERATOR, new org.apache.thrift.meta_data.FieldMetaData("operator", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.EnumMetaData( org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Operator.class))); tmpMap.put(_Fields.VALUES, new org.apache.thrift.meta_data.FieldMetaData("values", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( findKeyOperatorValuesTime_args.class, metaDataMap); } public findKeyOperatorValuesTime_args() {} public findKeyOperatorValuesTime_args(String key, com.cinchapi.concourse.thrift.Operator operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.operator = operator; this.values = values; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findKeyOperatorValuesTime_args( findKeyOperatorValuesTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetOperator()) { this.operator = other.operator; } if(other.isSetValues()) { List __this__values = new ArrayList( other.values.size()); for (com.cinchapi.concourse.thrift.TObject other_element : other.values) { __this__values .add(new com.cinchapi.concourse.thrift.TObject( other_element)); } this.values = __this__values; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public findKeyOperatorValuesTime_args deepCopy() { return new findKeyOperatorValuesTime_args(this); } @Override public void clear() { this.key = null; this.operator = null; this.values = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public findKeyOperatorValuesTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } /** * * @see com.cinchapi.concourse.thrift.Operator */ public com.cinchapi.concourse.thrift.Operator getOperator() { return this.operator; } /** * * @see com.cinchapi.concourse.thrift.Operator */ public findKeyOperatorValuesTime_args setOperator( com.cinchapi.concourse.thrift.Operator operator) { this.operator = operator; return this; } public void unsetOperator() { this.operator = null; } /** * Returns true if field operator is set (has been assigned a value) and * false otherwise */ public boolean isSetOperator() { return this.operator != null; } public void setOperatorIsSet(boolean value) { if(!value) { this.operator = null; } } public int getValuesSize() { return (this.values == null) ? 0 : this.values.size(); } public java.util.Iterator getValuesIterator() { return (this.values == null) ? null : this.values.iterator(); } public void addToValues(com.cinchapi.concourse.thrift.TObject elem) { if(this.values == null) { this.values = new ArrayList(); } this.values.add(elem); } public List getValues() { return this.values; } public findKeyOperatorValuesTime_args setValues( List values) { this.values = values; return this; } public void unsetValues() { this.values = null; } /** * Returns true if field values is set (has been assigned a value) and * false otherwise */ public boolean isSetValues() { return this.values != null; } public void setValuesIsSet(boolean value) { if(!value) { this.values = null; } } public long getTimestamp() { return this.timestamp; } public findKeyOperatorValuesTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findKeyOperatorValuesTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findKeyOperatorValuesTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findKeyOperatorValuesTime_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case OPERATOR: if(value == null) { unsetOperator(); } else { setOperator((com.cinchapi.concourse.thrift.Operator) value); } break; case VALUES: if(value == null) { unsetValues(); } else { setValues( (List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case OPERATOR: return getOperator(); case VALUES: return getValues(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case OPERATOR: return isSetOperator(); case VALUES: return isSetValues(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof findKeyOperatorValuesTime_args) return this.equals((findKeyOperatorValuesTime_args) that); return false; } public boolean equals(findKeyOperatorValuesTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_operator = true && this.isSetOperator(); boolean that_present_operator = true && that.isSetOperator(); if(this_present_operator || that_present_operator) { if(!(this_present_operator && that_present_operator)) return false; if(!this.operator.equals(that.operator)) return false; } boolean this_present_values = true && this.isSetValues(); boolean that_present_values = true && that.isSetValues(); if(this_present_values || that_present_values) { if(!(this_present_values && that_present_values)) return false; if(!this.values.equals(that.values)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_operator = true && (isSetOperator()); list.add(present_operator); if(present_operator) list.add(operator.getValue()); boolean present_values = true && (isSetValues()); list.add(present_values); if(present_values) list.add(values); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findKeyOperatorValuesTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOperator()) .compareTo(other.isSetOperator()); if(lastComparison != 0) { return lastComparison; } if(isSetOperator()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.operator, other.operator); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValues()) .compareTo(other.isSetValues()); if(lastComparison != 0) { return lastComparison; } if(isSetValues()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.values, other.values); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "findKeyOperatorValuesTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("operator:"); if(this.operator == null) { sb.append("null"); } else { sb.append(this.operator); } first = false; if(!first) sb.append(", "); sb.append("values:"); if(this.values == null) { sb.append("null"); } else { sb.append(this.values); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findKeyOperatorValuesTime_argsStandardSchemeFactory implements SchemeFactory { public findKeyOperatorValuesTime_argsStandardScheme getScheme() { return new findKeyOperatorValuesTime_argsStandardScheme(); } } private static class findKeyOperatorValuesTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorValuesTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // OPERATOR if(schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.operator = com.cinchapi.concourse.thrift.Operator .findByValue(iprot.readI32()); struct.setOperatorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // VALUES if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2494 = iprot .readListBegin(); struct.values = new ArrayList( _list2494.size); com.cinchapi.concourse.thrift.TObject _elem2495; for (int _i2496 = 0; _i2496 < _list2494.size; ++_i2496) { _elem2495 = new com.cinchapi.concourse.thrift.TObject(); _elem2495.read(iprot); struct.values.add(_elem2495); } iprot.readListEnd(); } struct.setValuesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, findKeyOperatorValuesTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.operator != null) { oprot.writeFieldBegin(OPERATOR_FIELD_DESC); oprot.writeI32(struct.operator.getValue()); oprot.writeFieldEnd(); } if(struct.values != null) { oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.values.size())); for (com.cinchapi.concourse.thrift.TObject _iter2497 : struct.values) { _iter2497.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorValuesTime_argsTupleSchemeFactory implements SchemeFactory { public findKeyOperatorValuesTime_argsTupleScheme getScheme() { return new findKeyOperatorValuesTime_argsTupleScheme(); } } private static class findKeyOperatorValuesTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorValuesTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetOperator()) { optionals.set(1); } if(struct.isSetValues()) { optionals.set(2); } if(struct.isSetTimestamp()) { optionals.set(3); } if(struct.isSetCreds()) { optionals.set(4); } if(struct.isSetTransaction()) { optionals.set(5); } if(struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetOperator()) { oprot.writeI32(struct.operator.getValue()); } if(struct.isSetValues()) { { oprot.writeI32(struct.values.size()); for (com.cinchapi.concourse.thrift.TObject _iter2498 : struct.values) { _iter2498.write(oprot); } } } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorValuesTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.operator = com.cinchapi.concourse.thrift.Operator .findByValue(iprot.readI32()); struct.setOperatorIsSet(true); } if(incoming.get(2)) { { org.apache.thrift.protocol.TList _list2499 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.values = new ArrayList( _list2499.size); com.cinchapi.concourse.thrift.TObject _elem2500; for (int _i2501 = 0; _i2501 < _list2499.size; ++_i2501) { _elem2500 = new com.cinchapi.concourse.thrift.TObject(); _elem2500.read(iprot); struct.values.add(_elem2500); } } struct.setValuesIsSet(true); } if(incoming.get(3)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findKeyOperatorValuesTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findKeyOperatorValuesTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.SET, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorValuesTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorValuesTime_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( findKeyOperatorValuesTime_result.class, metaDataMap); } public findKeyOperatorValuesTime_result() {} public findKeyOperatorValuesTime_result(Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public findKeyOperatorValuesTime_result( findKeyOperatorValuesTime_result other) { if(other.isSetSuccess()) { Set __this__success = new LinkedHashSet( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public findKeyOperatorValuesTime_result deepCopy() { return new findKeyOperatorValuesTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(long elem) { if(this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public findKeyOperatorValuesTime_result setSuccess(Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findKeyOperatorValuesTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findKeyOperatorValuesTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public findKeyOperatorValuesTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Set) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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( "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; 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 findKeyOperatorValuesTime_resultStandardSchemeFactory implements SchemeFactory { public findKeyOperatorValuesTime_resultStandardScheme getScheme() { return new findKeyOperatorValuesTime_resultStandardScheme(); } } private static class findKeyOperatorValuesTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorValuesTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set2502 = iprot .readSetBegin(); struct.success = new LinkedHashSet( 2 * _set2502.size); long _elem2503; for (int _i2504 = 0; _i2504 < _set2502.size; ++_i2504) { _elem2503 = iprot.readI64(); struct.success.add(_elem2503); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, findKeyOperatorValuesTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, struct.success.size())); for (long _iter2505 : struct.success) { oprot.writeI64(_iter2505); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorValuesTime_resultTupleSchemeFactory implements SchemeFactory { public findKeyOperatorValuesTime_resultTupleScheme getScheme() { return new findKeyOperatorValuesTime_resultTupleScheme(); } } private static class findKeyOperatorValuesTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorValuesTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (long _iter2506 : struct.success) { oprot.writeI64(_iter2506); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TSet _set2507 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet( 2 * _set2507.size); long _elem2508; for (int _i2509 = 0; _i2509 < _set2507.size; ++_i2509) { _elem2508 = iprot.readI64(); struct.success.add(_elem2508); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class findKeyOperatorValuesTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findKeyOperatorValuesTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField OPERATOR_FIELD_DESC = new org.apache.thrift.protocol.TField( "operator", org.apache.thrift.protocol.TType.I32, (short) 2); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField( "values", org.apache.thrift.protocol.TType.LIST, (short) 3); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorValuesTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorValuesTimestr_argsTupleSchemeFactory()); } public String key; // required /** * * @see com.cinchapi.concourse.thrift.Operator */ public com.cinchapi.concourse.thrift.Operator operator; // required public List values; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), /** * * @see com.cinchapi.concourse.thrift.Operator */ OPERATOR((short) 2, "operator"), VALUES((short) 3, "values"), TIMESTAMP((short) 4, "timestamp"), CREDS((short) 5, "creds"), TRANSACTION((short) 6, "transaction"), ENVIRONMENT((short) 7, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // OPERATOR return OPERATOR; case 3: // VALUES return VALUES; case 4: // TIMESTAMP return TIMESTAMP; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.OPERATOR, new org.apache.thrift.meta_data.FieldMetaData("operator", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.EnumMetaData( org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Operator.class))); tmpMap.put(_Fields.VALUES, new org.apache.thrift.meta_data.FieldMetaData("values", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( findKeyOperatorValuesTimestr_args.class, metaDataMap); } public findKeyOperatorValuesTimestr_args() {} public findKeyOperatorValuesTimestr_args(String key, com.cinchapi.concourse.thrift.Operator operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.operator = operator; this.values = values; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findKeyOperatorValuesTimestr_args( findKeyOperatorValuesTimestr_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetOperator()) { this.operator = other.operator; } if(other.isSetValues()) { List __this__values = new ArrayList( other.values.size()); for (com.cinchapi.concourse.thrift.TObject other_element : other.values) { __this__values .add(new com.cinchapi.concourse.thrift.TObject( other_element)); } this.values = __this__values; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public findKeyOperatorValuesTimestr_args deepCopy() { return new findKeyOperatorValuesTimestr_args(this); } @Override public void clear() { this.key = null; this.operator = null; this.values = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public findKeyOperatorValuesTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } /** * * @see com.cinchapi.concourse.thrift.Operator */ public com.cinchapi.concourse.thrift.Operator getOperator() { return this.operator; } /** * * @see com.cinchapi.concourse.thrift.Operator */ public findKeyOperatorValuesTimestr_args setOperator( com.cinchapi.concourse.thrift.Operator operator) { this.operator = operator; return this; } public void unsetOperator() { this.operator = null; } /** * Returns true if field operator is set (has been assigned a value) and * false otherwise */ public boolean isSetOperator() { return this.operator != null; } public void setOperatorIsSet(boolean value) { if(!value) { this.operator = null; } } public int getValuesSize() { return (this.values == null) ? 0 : this.values.size(); } public java.util.Iterator getValuesIterator() { return (this.values == null) ? null : this.values.iterator(); } public void addToValues(com.cinchapi.concourse.thrift.TObject elem) { if(this.values == null) { this.values = new ArrayList(); } this.values.add(elem); } public List getValues() { return this.values; } public findKeyOperatorValuesTimestr_args setValues( List values) { this.values = values; return this; } public void unsetValues() { this.values = null; } /** * Returns true if field values is set (has been assigned a value) and * false otherwise */ public boolean isSetValues() { return this.values != null; } public void setValuesIsSet(boolean value) { if(!value) { this.values = null; } } public String getTimestamp() { return this.timestamp; } public findKeyOperatorValuesTimestr_args setTimestamp( String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findKeyOperatorValuesTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findKeyOperatorValuesTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findKeyOperatorValuesTimestr_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case OPERATOR: if(value == null) { unsetOperator(); } else { setOperator((com.cinchapi.concourse.thrift.Operator) value); } break; case VALUES: if(value == null) { unsetValues(); } else { setValues( (List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case OPERATOR: return getOperator(); case VALUES: return getValues(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case OPERATOR: return isSetOperator(); case VALUES: return isSetValues(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof findKeyOperatorValuesTimestr_args) return this.equals((findKeyOperatorValuesTimestr_args) that); return false; } public boolean equals(findKeyOperatorValuesTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_operator = true && this.isSetOperator(); boolean that_present_operator = true && that.isSetOperator(); if(this_present_operator || that_present_operator) { if(!(this_present_operator && that_present_operator)) return false; if(!this.operator.equals(that.operator)) return false; } boolean this_present_values = true && this.isSetValues(); boolean that_present_values = true && that.isSetValues(); if(this_present_values || that_present_values) { if(!(this_present_values && that_present_values)) return false; if(!this.values.equals(that.values)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_operator = true && (isSetOperator()); list.add(present_operator); if(present_operator) list.add(operator.getValue()); boolean present_values = true && (isSetValues()); list.add(present_values); if(present_values) list.add(values); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findKeyOperatorValuesTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOperator()) .compareTo(other.isSetOperator()); if(lastComparison != 0) { return lastComparison; } if(isSetOperator()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.operator, other.operator); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValues()) .compareTo(other.isSetValues()); if(lastComparison != 0) { return lastComparison; } if(isSetValues()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.values, other.values); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "findKeyOperatorValuesTimestr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("operator:"); if(this.operator == null) { sb.append("null"); } else { sb.append(this.operator); } first = false; if(!first) sb.append(", "); sb.append("values:"); if(this.values == null) { sb.append("null"); } else { sb.append(this.values); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findKeyOperatorValuesTimestr_argsStandardSchemeFactory implements SchemeFactory { public findKeyOperatorValuesTimestr_argsStandardScheme getScheme() { return new findKeyOperatorValuesTimestr_argsStandardScheme(); } } private static class findKeyOperatorValuesTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorValuesTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // OPERATOR if(schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.operator = com.cinchapi.concourse.thrift.Operator .findByValue(iprot.readI32()); struct.setOperatorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // VALUES if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2510 = iprot .readListBegin(); struct.values = new ArrayList( _list2510.size); com.cinchapi.concourse.thrift.TObject _elem2511; for (int _i2512 = 0; _i2512 < _list2510.size; ++_i2512) { _elem2511 = new com.cinchapi.concourse.thrift.TObject(); _elem2511.read(iprot); struct.values.add(_elem2511); } iprot.readListEnd(); } struct.setValuesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, findKeyOperatorValuesTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.operator != null) { oprot.writeFieldBegin(OPERATOR_FIELD_DESC); oprot.writeI32(struct.operator.getValue()); oprot.writeFieldEnd(); } if(struct.values != null) { oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.values.size())); for (com.cinchapi.concourse.thrift.TObject _iter2513 : struct.values) { _iter2513.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorValuesTimestr_argsTupleSchemeFactory implements SchemeFactory { public findKeyOperatorValuesTimestr_argsTupleScheme getScheme() { return new findKeyOperatorValuesTimestr_argsTupleScheme(); } } private static class findKeyOperatorValuesTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorValuesTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetOperator()) { optionals.set(1); } if(struct.isSetValues()) { optionals.set(2); } if(struct.isSetTimestamp()) { optionals.set(3); } if(struct.isSetCreds()) { optionals.set(4); } if(struct.isSetTransaction()) { optionals.set(5); } if(struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetOperator()) { oprot.writeI32(struct.operator.getValue()); } if(struct.isSetValues()) { { oprot.writeI32(struct.values.size()); for (com.cinchapi.concourse.thrift.TObject _iter2514 : struct.values) { _iter2514.write(oprot); } } } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorValuesTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.operator = com.cinchapi.concourse.thrift.Operator .findByValue(iprot.readI32()); struct.setOperatorIsSet(true); } if(incoming.get(2)) { { org.apache.thrift.protocol.TList _list2515 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.values = new ArrayList( _list2515.size); com.cinchapi.concourse.thrift.TObject _elem2516; for (int _i2517 = 0; _i2517 < _list2515.size; ++_i2517) { _elem2516 = new com.cinchapi.concourse.thrift.TObject(); _elem2516.read(iprot); struct.values.add(_elem2516); } } struct.setValuesIsSet(true); } if(incoming.get(3)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findKeyOperatorValuesTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findKeyOperatorValuesTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.SET, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorValuesTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorValuesTimestr_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( findKeyOperatorValuesTimestr_result.class, metaDataMap); } public findKeyOperatorValuesTimestr_result() {} public findKeyOperatorValuesTimestr_result(Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public findKeyOperatorValuesTimestr_result( findKeyOperatorValuesTimestr_result other) { if(other.isSetSuccess()) { Set __this__success = new LinkedHashSet( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(long elem) { if(this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public findKeyOperatorValuesTimestr_result setSuccess( Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findKeyOperatorValuesTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findKeyOperatorValuesTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public findKeyOperatorValuesTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public findKeyOperatorValuesTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Set) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findKeyOperatorValuesTimestr_resultStandardSchemeFactory implements SchemeFactory { public findKeyOperatorValuesTimestr_resultStandardScheme getScheme() { return new findKeyOperatorValuesTimestr_resultStandardScheme(); } } private static class findKeyOperatorValuesTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorValuesTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set2518 = iprot .readSetBegin(); struct.success = new LinkedHashSet( 2 * _set2518.size); long _elem2519; for (int _i2520 = 0; _i2520 < _set2518.size; ++_i2520) { _elem2519 = iprot.readI64(); struct.success.add(_elem2519); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, findKeyOperatorValuesTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, struct.success.size())); for (long _iter2521 : struct.success) { oprot.writeI64(_iter2521); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorValuesTimestr_resultTupleSchemeFactory implements SchemeFactory { public findKeyOperatorValuesTimestr_resultTupleScheme getScheme() { return new findKeyOperatorValuesTimestr_resultTupleScheme(); } } private static class findKeyOperatorValuesTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorValuesTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (long _iter2522 : struct.success) { oprot.writeI64(_iter2522); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TSet _set2523 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet( 2 * _set2523.size); long _elem2524; for (int _i2525 = 0; _i2525 < _set2523.size; ++_i2525) { _elem2524 = iprot.readI64(); struct.success.add(_elem2524); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class findKeyOperatorstrValues_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findKeyOperatorstrValues_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField OPERATOR_FIELD_DESC = new org.apache.thrift.protocol.TField( "operator", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField( "values", org.apache.thrift.protocol.TType.LIST, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorstrValues_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorstrValues_argsTupleSchemeFactory()); } public String key; // required public String operator; // required public List values; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), OPERATOR((short) 2, "operator"), VALUES((short) 3, "values"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // OPERATOR return OPERATOR; case 3: // VALUES return VALUES; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.OPERATOR, new org.apache.thrift.meta_data.FieldMetaData("operator", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUES, new org.apache.thrift.meta_data.FieldMetaData("values", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( findKeyOperatorstrValues_args.class, metaDataMap); } public findKeyOperatorstrValues_args() {} public findKeyOperatorstrValues_args(String key, String operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.operator = operator; this.values = values; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findKeyOperatorstrValues_args( findKeyOperatorstrValues_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetOperator()) { this.operator = other.operator; } if(other.isSetValues()) { List __this__values = new ArrayList( other.values.size()); for (com.cinchapi.concourse.thrift.TObject other_element : other.values) { __this__values .add(new com.cinchapi.concourse.thrift.TObject( other_element)); } this.values = __this__values; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public findKeyOperatorstrValues_args deepCopy() { return new findKeyOperatorstrValues_args(this); } @Override public void clear() { this.key = null; this.operator = null; this.values = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public findKeyOperatorstrValues_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public String getOperator() { return this.operator; } public findKeyOperatorstrValues_args setOperator(String operator) { this.operator = operator; return this; } public void unsetOperator() { this.operator = null; } /** * Returns true if field operator is set (has been assigned a value) and * false otherwise */ public boolean isSetOperator() { return this.operator != null; } public void setOperatorIsSet(boolean value) { if(!value) { this.operator = null; } } public int getValuesSize() { return (this.values == null) ? 0 : this.values.size(); } public java.util.Iterator getValuesIterator() { return (this.values == null) ? null : this.values.iterator(); } public void addToValues(com.cinchapi.concourse.thrift.TObject elem) { if(this.values == null) { this.values = new ArrayList(); } this.values.add(elem); } public List getValues() { return this.values; } public findKeyOperatorstrValues_args setValues( List values) { this.values = values; return this; } public void unsetValues() { this.values = null; } /** * Returns true if field values is set (has been assigned a value) and * false otherwise */ public boolean isSetValues() { return this.values != null; } public void setValuesIsSet(boolean value) { if(!value) { this.values = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findKeyOperatorstrValues_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findKeyOperatorstrValues_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findKeyOperatorstrValues_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case OPERATOR: if(value == null) { unsetOperator(); } else { setOperator((String) value); } break; case VALUES: if(value == null) { unsetValues(); } else { setValues( (List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case OPERATOR: return getOperator(); case VALUES: return getValues(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case OPERATOR: return isSetOperator(); case VALUES: return isSetValues(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof findKeyOperatorstrValues_args) return this.equals((findKeyOperatorstrValues_args) that); return false; } public boolean equals(findKeyOperatorstrValues_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_operator = true && this.isSetOperator(); boolean that_present_operator = true && that.isSetOperator(); if(this_present_operator || that_present_operator) { if(!(this_present_operator && that_present_operator)) return false; if(!this.operator.equals(that.operator)) return false; } boolean this_present_values = true && this.isSetValues(); boolean that_present_values = true && that.isSetValues(); if(this_present_values || that_present_values) { if(!(this_present_values && that_present_values)) return false; if(!this.values.equals(that.values)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_operator = true && (isSetOperator()); list.add(present_operator); if(present_operator) list.add(operator); boolean present_values = true && (isSetValues()); list.add(present_values); if(present_values) list.add(values); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findKeyOperatorstrValues_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOperator()) .compareTo(other.isSetOperator()); if(lastComparison != 0) { return lastComparison; } if(isSetOperator()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.operator, other.operator); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValues()) .compareTo(other.isSetValues()); if(lastComparison != 0) { return lastComparison; } if(isSetValues()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.values, other.values); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "findKeyOperatorstrValues_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("operator:"); if(this.operator == null) { sb.append("null"); } else { sb.append(this.operator); } first = false; if(!first) sb.append(", "); sb.append("values:"); if(this.values == null) { sb.append("null"); } else { sb.append(this.values); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findKeyOperatorstrValues_argsStandardSchemeFactory implements SchemeFactory { public findKeyOperatorstrValues_argsStandardScheme getScheme() { return new findKeyOperatorstrValues_argsStandardScheme(); } } private static class findKeyOperatorstrValues_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorstrValues_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // OPERATOR if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.operator = iprot.readString(); struct.setOperatorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // VALUES if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2526 = iprot .readListBegin(); struct.values = new ArrayList( _list2526.size); com.cinchapi.concourse.thrift.TObject _elem2527; for (int _i2528 = 0; _i2528 < _list2526.size; ++_i2528) { _elem2527 = new com.cinchapi.concourse.thrift.TObject(); _elem2527.read(iprot); struct.values.add(_elem2527); } iprot.readListEnd(); } struct.setValuesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, findKeyOperatorstrValues_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.operator != null) { oprot.writeFieldBegin(OPERATOR_FIELD_DESC); oprot.writeString(struct.operator); oprot.writeFieldEnd(); } if(struct.values != null) { oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.values.size())); for (com.cinchapi.concourse.thrift.TObject _iter2529 : struct.values) { _iter2529.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorstrValues_argsTupleSchemeFactory implements SchemeFactory { public findKeyOperatorstrValues_argsTupleScheme getScheme() { return new findKeyOperatorstrValues_argsTupleScheme(); } } private static class findKeyOperatorstrValues_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorstrValues_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetOperator()) { optionals.set(1); } if(struct.isSetValues()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetOperator()) { oprot.writeString(struct.operator); } if(struct.isSetValues()) { { oprot.writeI32(struct.values.size()); for (com.cinchapi.concourse.thrift.TObject _iter2530 : struct.values) { _iter2530.write(oprot); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorstrValues_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.operator = iprot.readString(); struct.setOperatorIsSet(true); } if(incoming.get(2)) { { org.apache.thrift.protocol.TList _list2531 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.values = new ArrayList( _list2531.size); com.cinchapi.concourse.thrift.TObject _elem2532; for (int _i2533 = 0; _i2533 < _list2531.size; ++_i2533) { _elem2532 = new com.cinchapi.concourse.thrift.TObject(); _elem2532.read(iprot); struct.values.add(_elem2532); } } struct.setValuesIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findKeyOperatorstrValues_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findKeyOperatorstrValues_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.SET, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorstrValues_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorstrValues_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( findKeyOperatorstrValues_result.class, metaDataMap); } public findKeyOperatorstrValues_result() {} public findKeyOperatorstrValues_result(Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public findKeyOperatorstrValues_result( findKeyOperatorstrValues_result other) { if(other.isSetSuccess()) { Set __this__success = new LinkedHashSet( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(long elem) { if(this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public findKeyOperatorstrValues_result setSuccess(Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findKeyOperatorstrValues_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findKeyOperatorstrValues_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public findKeyOperatorstrValues_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public findKeyOperatorstrValues_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Set) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findKeyOperatorstrValues_resultStandardSchemeFactory implements SchemeFactory { public findKeyOperatorstrValues_resultStandardScheme getScheme() { return new findKeyOperatorstrValues_resultStandardScheme(); } } private static class findKeyOperatorstrValues_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorstrValues_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set2534 = iprot .readSetBegin(); struct.success = new LinkedHashSet( 2 * _set2534.size); long _elem2535; for (int _i2536 = 0; _i2536 < _set2534.size; ++_i2536) { _elem2535 = iprot.readI64(); struct.success.add(_elem2535); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, findKeyOperatorstrValues_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, struct.success.size())); for (long _iter2537 : struct.success) { oprot.writeI64(_iter2537); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorstrValues_resultTupleSchemeFactory implements SchemeFactory { public findKeyOperatorstrValues_resultTupleScheme getScheme() { return new findKeyOperatorstrValues_resultTupleScheme(); } } private static class findKeyOperatorstrValues_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorstrValues_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (long _iter2538 : struct.success) { oprot.writeI64(_iter2538); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TSet _set2539 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet( 2 * _set2539.size); long _elem2540; for (int _i2541 = 0; _i2541 < _set2539.size; ++_i2541) { _elem2540 = iprot.readI64(); struct.success.add(_elem2540); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class findKeyOperatorstrValuesTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findKeyOperatorstrValuesTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField OPERATOR_FIELD_DESC = new org.apache.thrift.protocol.TField( "operator", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField( "values", org.apache.thrift.protocol.TType.LIST, (short) 3); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorstrValuesTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorstrValuesTime_argsTupleSchemeFactory()); } public String key; // required public String operator; // required public List values; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), OPERATOR((short) 2, "operator"), VALUES((short) 3, "values"), TIMESTAMP((short) 4, "timestamp"), CREDS((short) 5, "creds"), TRANSACTION((short) 6, "transaction"), ENVIRONMENT((short) 7, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // OPERATOR return OPERATOR; case 3: // VALUES return VALUES; case 4: // TIMESTAMP return TIMESTAMP; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.OPERATOR, new org.apache.thrift.meta_data.FieldMetaData("operator", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUES, new org.apache.thrift.meta_data.FieldMetaData("values", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( findKeyOperatorstrValuesTime_args.class, metaDataMap); } public findKeyOperatorstrValuesTime_args() {} public findKeyOperatorstrValuesTime_args(String key, String operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.operator = operator; this.values = values; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findKeyOperatorstrValuesTime_args( findKeyOperatorstrValuesTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetOperator()) { this.operator = other.operator; } if(other.isSetValues()) { List __this__values = new ArrayList( other.values.size()); for (com.cinchapi.concourse.thrift.TObject other_element : other.values) { __this__values .add(new com.cinchapi.concourse.thrift.TObject( other_element)); } this.values = __this__values; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public findKeyOperatorstrValuesTime_args deepCopy() { return new findKeyOperatorstrValuesTime_args(this); } @Override public void clear() { this.key = null; this.operator = null; this.values = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public findKeyOperatorstrValuesTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public String getOperator() { return this.operator; } public findKeyOperatorstrValuesTime_args setOperator(String operator) { this.operator = operator; return this; } public void unsetOperator() { this.operator = null; } /** * Returns true if field operator is set (has been assigned a value) and * false otherwise */ public boolean isSetOperator() { return this.operator != null; } public void setOperatorIsSet(boolean value) { if(!value) { this.operator = null; } } public int getValuesSize() { return (this.values == null) ? 0 : this.values.size(); } public java.util.Iterator getValuesIterator() { return (this.values == null) ? null : this.values.iterator(); } public void addToValues(com.cinchapi.concourse.thrift.TObject elem) { if(this.values == null) { this.values = new ArrayList(); } this.values.add(elem); } public List getValues() { return this.values; } public findKeyOperatorstrValuesTime_args setValues( List values) { this.values = values; return this; } public void unsetValues() { this.values = null; } /** * Returns true if field values is set (has been assigned a value) and * false otherwise */ public boolean isSetValues() { return this.values != null; } public void setValuesIsSet(boolean value) { if(!value) { this.values = null; } } public long getTimestamp() { return this.timestamp; } public findKeyOperatorstrValuesTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findKeyOperatorstrValuesTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findKeyOperatorstrValuesTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findKeyOperatorstrValuesTime_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case OPERATOR: if(value == null) { unsetOperator(); } else { setOperator((String) value); } break; case VALUES: if(value == null) { unsetValues(); } else { setValues( (List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case OPERATOR: return getOperator(); case VALUES: return getValues(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case OPERATOR: return isSetOperator(); case VALUES: return isSetValues(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof findKeyOperatorstrValuesTime_args) return this.equals((findKeyOperatorstrValuesTime_args) that); return false; } public boolean equals(findKeyOperatorstrValuesTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_operator = true && this.isSetOperator(); boolean that_present_operator = true && that.isSetOperator(); if(this_present_operator || that_present_operator) { if(!(this_present_operator && that_present_operator)) return false; if(!this.operator.equals(that.operator)) return false; } boolean this_present_values = true && this.isSetValues(); boolean that_present_values = true && that.isSetValues(); if(this_present_values || that_present_values) { if(!(this_present_values && that_present_values)) return false; if(!this.values.equals(that.values)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_operator = true && (isSetOperator()); list.add(present_operator); if(present_operator) list.add(operator); boolean present_values = true && (isSetValues()); list.add(present_values); if(present_values) list.add(values); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findKeyOperatorstrValuesTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOperator()) .compareTo(other.isSetOperator()); if(lastComparison != 0) { return lastComparison; } if(isSetOperator()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.operator, other.operator); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValues()) .compareTo(other.isSetValues()); if(lastComparison != 0) { return lastComparison; } if(isSetValues()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.values, other.values); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "findKeyOperatorstrValuesTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("operator:"); if(this.operator == null) { sb.append("null"); } else { sb.append(this.operator); } first = false; if(!first) sb.append(", "); sb.append("values:"); if(this.values == null) { sb.append("null"); } else { sb.append(this.values); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findKeyOperatorstrValuesTime_argsStandardSchemeFactory implements SchemeFactory { public findKeyOperatorstrValuesTime_argsStandardScheme getScheme() { return new findKeyOperatorstrValuesTime_argsStandardScheme(); } } private static class findKeyOperatorstrValuesTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorstrValuesTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // OPERATOR if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.operator = iprot.readString(); struct.setOperatorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // VALUES if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2542 = iprot .readListBegin(); struct.values = new ArrayList( _list2542.size); com.cinchapi.concourse.thrift.TObject _elem2543; for (int _i2544 = 0; _i2544 < _list2542.size; ++_i2544) { _elem2543 = new com.cinchapi.concourse.thrift.TObject(); _elem2543.read(iprot); struct.values.add(_elem2543); } iprot.readListEnd(); } struct.setValuesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, findKeyOperatorstrValuesTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.operator != null) { oprot.writeFieldBegin(OPERATOR_FIELD_DESC); oprot.writeString(struct.operator); oprot.writeFieldEnd(); } if(struct.values != null) { oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.values.size())); for (com.cinchapi.concourse.thrift.TObject _iter2545 : struct.values) { _iter2545.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorstrValuesTime_argsTupleSchemeFactory implements SchemeFactory { public findKeyOperatorstrValuesTime_argsTupleScheme getScheme() { return new findKeyOperatorstrValuesTime_argsTupleScheme(); } } private static class findKeyOperatorstrValuesTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorstrValuesTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetOperator()) { optionals.set(1); } if(struct.isSetValues()) { optionals.set(2); } if(struct.isSetTimestamp()) { optionals.set(3); } if(struct.isSetCreds()) { optionals.set(4); } if(struct.isSetTransaction()) { optionals.set(5); } if(struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetOperator()) { oprot.writeString(struct.operator); } if(struct.isSetValues()) { { oprot.writeI32(struct.values.size()); for (com.cinchapi.concourse.thrift.TObject _iter2546 : struct.values) { _iter2546.write(oprot); } } } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorstrValuesTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.operator = iprot.readString(); struct.setOperatorIsSet(true); } if(incoming.get(2)) { { org.apache.thrift.protocol.TList _list2547 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.values = new ArrayList( _list2547.size); com.cinchapi.concourse.thrift.TObject _elem2548; for (int _i2549 = 0; _i2549 < _list2547.size; ++_i2549) { _elem2548 = new com.cinchapi.concourse.thrift.TObject(); _elem2548.read(iprot); struct.values.add(_elem2548); } } struct.setValuesIsSet(true); } if(incoming.get(3)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findKeyOperatorstrValuesTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findKeyOperatorstrValuesTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.SET, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorstrValuesTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorstrValuesTime_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( findKeyOperatorstrValuesTime_result.class, metaDataMap); } public findKeyOperatorstrValuesTime_result() {} public findKeyOperatorstrValuesTime_result(Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public findKeyOperatorstrValuesTime_result( findKeyOperatorstrValuesTime_result other) { if(other.isSetSuccess()) { Set __this__success = new LinkedHashSet( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(long elem) { if(this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public findKeyOperatorstrValuesTime_result setSuccess( Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findKeyOperatorstrValuesTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findKeyOperatorstrValuesTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public findKeyOperatorstrValuesTime_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public findKeyOperatorstrValuesTime_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Set) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findKeyOperatorstrValuesTime_resultStandardSchemeFactory implements SchemeFactory { public findKeyOperatorstrValuesTime_resultStandardScheme getScheme() { return new findKeyOperatorstrValuesTime_resultStandardScheme(); } } private static class findKeyOperatorstrValuesTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorstrValuesTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set2550 = iprot .readSetBegin(); struct.success = new LinkedHashSet( 2 * _set2550.size); long _elem2551; for (int _i2552 = 0; _i2552 < _set2550.size; ++_i2552) { _elem2551 = iprot.readI64(); struct.success.add(_elem2551); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, findKeyOperatorstrValuesTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, struct.success.size())); for (long _iter2553 : struct.success) { oprot.writeI64(_iter2553); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorstrValuesTime_resultTupleSchemeFactory implements SchemeFactory { public findKeyOperatorstrValuesTime_resultTupleScheme getScheme() { return new findKeyOperatorstrValuesTime_resultTupleScheme(); } } private static class findKeyOperatorstrValuesTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorstrValuesTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (long _iter2554 : struct.success) { oprot.writeI64(_iter2554); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TSet _set2555 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet( 2 * _set2555.size); long _elem2556; for (int _i2557 = 0; _i2557 < _set2555.size; ++_i2557) { _elem2556 = iprot.readI64(); struct.success.add(_elem2556); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class findKeyOperatorstrValuesTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findKeyOperatorstrValuesTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField OPERATOR_FIELD_DESC = new org.apache.thrift.protocol.TField( "operator", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField( "values", org.apache.thrift.protocol.TType.LIST, (short) 3); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorstrValuesTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorstrValuesTimestr_argsTupleSchemeFactory()); } public String key; // required public String operator; // required public List values; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), OPERATOR((short) 2, "operator"), VALUES((short) 3, "values"), TIMESTAMP((short) 4, "timestamp"), CREDS((short) 5, "creds"), TRANSACTION((short) 6, "transaction"), ENVIRONMENT((short) 7, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // OPERATOR return OPERATOR; case 3: // VALUES return VALUES; case 4: // TIMESTAMP return TIMESTAMP; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.OPERATOR, new org.apache.thrift.meta_data.FieldMetaData("operator", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUES, new org.apache.thrift.meta_data.FieldMetaData("values", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( findKeyOperatorstrValuesTimestr_args.class, metaDataMap); } public findKeyOperatorstrValuesTimestr_args() {} public findKeyOperatorstrValuesTimestr_args(String key, String operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.operator = operator; this.values = values; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findKeyOperatorstrValuesTimestr_args( findKeyOperatorstrValuesTimestr_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetOperator()) { this.operator = other.operator; } if(other.isSetValues()) { List __this__values = new ArrayList( other.values.size()); for (com.cinchapi.concourse.thrift.TObject other_element : other.values) { __this__values .add(new com.cinchapi.concourse.thrift.TObject( other_element)); } this.values = __this__values; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public findKeyOperatorstrValuesTimestr_args deepCopy() { return new findKeyOperatorstrValuesTimestr_args(this); } @Override public void clear() { this.key = null; this.operator = null; this.values = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public findKeyOperatorstrValuesTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public String getOperator() { return this.operator; } public findKeyOperatorstrValuesTimestr_args setOperator( String operator) { this.operator = operator; return this; } public void unsetOperator() { this.operator = null; } /** * Returns true if field operator is set (has been assigned a value) and * false otherwise */ public boolean isSetOperator() { return this.operator != null; } public void setOperatorIsSet(boolean value) { if(!value) { this.operator = null; } } public int getValuesSize() { return (this.values == null) ? 0 : this.values.size(); } public java.util.Iterator getValuesIterator() { return (this.values == null) ? null : this.values.iterator(); } public void addToValues(com.cinchapi.concourse.thrift.TObject elem) { if(this.values == null) { this.values = new ArrayList(); } this.values.add(elem); } public List getValues() { return this.values; } public findKeyOperatorstrValuesTimestr_args setValues( List values) { this.values = values; return this; } public void unsetValues() { this.values = null; } /** * Returns true if field values is set (has been assigned a value) and * false otherwise */ public boolean isSetValues() { return this.values != null; } public void setValuesIsSet(boolean value) { if(!value) { this.values = null; } } public String getTimestamp() { return this.timestamp; } public findKeyOperatorstrValuesTimestr_args setTimestamp( String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findKeyOperatorstrValuesTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findKeyOperatorstrValuesTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findKeyOperatorstrValuesTimestr_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case OPERATOR: if(value == null) { unsetOperator(); } else { setOperator((String) value); } break; case VALUES: if(value == null) { unsetValues(); } else { setValues( (List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case OPERATOR: return getOperator(); case VALUES: return getValues(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case OPERATOR: return isSetOperator(); case VALUES: return isSetValues(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof findKeyOperatorstrValuesTimestr_args) return this.equals((findKeyOperatorstrValuesTimestr_args) that); return false; } public boolean equals(findKeyOperatorstrValuesTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_operator = true && this.isSetOperator(); boolean that_present_operator = true && that.isSetOperator(); if(this_present_operator || that_present_operator) { if(!(this_present_operator && that_present_operator)) return false; if(!this.operator.equals(that.operator)) return false; } boolean this_present_values = true && this.isSetValues(); boolean that_present_values = true && that.isSetValues(); if(this_present_values || that_present_values) { if(!(this_present_values && that_present_values)) return false; if(!this.values.equals(that.values)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_operator = true && (isSetOperator()); list.add(present_operator); if(present_operator) list.add(operator); boolean present_values = true && (isSetValues()); list.add(present_values); if(present_values) list.add(values); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findKeyOperatorstrValuesTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOperator()) .compareTo(other.isSetOperator()); if(lastComparison != 0) { return lastComparison; } if(isSetOperator()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.operator, other.operator); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValues()) .compareTo(other.isSetValues()); if(lastComparison != 0) { return lastComparison; } if(isSetValues()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.values, other.values); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "findKeyOperatorstrValuesTimestr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("operator:"); if(this.operator == null) { sb.append("null"); } else { sb.append(this.operator); } first = false; if(!first) sb.append(", "); sb.append("values:"); if(this.values == null) { sb.append("null"); } else { sb.append(this.values); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findKeyOperatorstrValuesTimestr_argsStandardSchemeFactory implements SchemeFactory { public findKeyOperatorstrValuesTimestr_argsStandardScheme getScheme() { return new findKeyOperatorstrValuesTimestr_argsStandardScheme(); } } private static class findKeyOperatorstrValuesTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorstrValuesTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // OPERATOR if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.operator = iprot.readString(); struct.setOperatorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // VALUES if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2558 = iprot .readListBegin(); struct.values = new ArrayList( _list2558.size); com.cinchapi.concourse.thrift.TObject _elem2559; for (int _i2560 = 0; _i2560 < _list2558.size; ++_i2560) { _elem2559 = new com.cinchapi.concourse.thrift.TObject(); _elem2559.read(iprot); struct.values.add(_elem2559); } iprot.readListEnd(); } struct.setValuesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, findKeyOperatorstrValuesTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.operator != null) { oprot.writeFieldBegin(OPERATOR_FIELD_DESC); oprot.writeString(struct.operator); oprot.writeFieldEnd(); } if(struct.values != null) { oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.values.size())); for (com.cinchapi.concourse.thrift.TObject _iter2561 : struct.values) { _iter2561.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorstrValuesTimestr_argsTupleSchemeFactory implements SchemeFactory { public findKeyOperatorstrValuesTimestr_argsTupleScheme getScheme() { return new findKeyOperatorstrValuesTimestr_argsTupleScheme(); } } private static class findKeyOperatorstrValuesTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorstrValuesTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetOperator()) { optionals.set(1); } if(struct.isSetValues()) { optionals.set(2); } if(struct.isSetTimestamp()) { optionals.set(3); } if(struct.isSetCreds()) { optionals.set(4); } if(struct.isSetTransaction()) { optionals.set(5); } if(struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetOperator()) { oprot.writeString(struct.operator); } if(struct.isSetValues()) { { oprot.writeI32(struct.values.size()); for (com.cinchapi.concourse.thrift.TObject _iter2562 : struct.values) { _iter2562.write(oprot); } } } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorstrValuesTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.operator = iprot.readString(); struct.setOperatorIsSet(true); } if(incoming.get(2)) { { org.apache.thrift.protocol.TList _list2563 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.values = new ArrayList( _list2563.size); com.cinchapi.concourse.thrift.TObject _elem2564; for (int _i2565 = 0; _i2565 < _list2563.size; ++_i2565) { _elem2564 = new com.cinchapi.concourse.thrift.TObject(); _elem2564.read(iprot); struct.values.add(_elem2564); } } struct.setValuesIsSet(true); } if(incoming.get(3)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findKeyOperatorstrValuesTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findKeyOperatorstrValuesTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.SET, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorstrValuesTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorstrValuesTimestr_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( findKeyOperatorstrValuesTimestr_result.class, metaDataMap); } public findKeyOperatorstrValuesTimestr_result() {} public findKeyOperatorstrValuesTimestr_result(Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public findKeyOperatorstrValuesTimestr_result( findKeyOperatorstrValuesTimestr_result other) { if(other.isSetSuccess()) { Set __this__success = new LinkedHashSet( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } 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; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(long elem) { if(this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public findKeyOperatorstrValuesTimestr_result setSuccess( Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findKeyOperatorstrValuesTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findKeyOperatorstrValuesTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public findKeyOperatorstrValuesTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public findKeyOperatorstrValuesTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Set) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findKeyOperatorstrValuesTimestr_resultStandardSchemeFactory implements SchemeFactory { public findKeyOperatorstrValuesTimestr_resultStandardScheme getScheme() { return new findKeyOperatorstrValuesTimestr_resultStandardScheme(); } } private static class findKeyOperatorstrValuesTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorstrValuesTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set2566 = iprot .readSetBegin(); struct.success = new LinkedHashSet( 2 * _set2566.size); long _elem2567; for (int _i2568 = 0; _i2568 < _set2566.size; ++_i2568) { _elem2567 = iprot.readI64(); struct.success.add(_elem2567); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, findKeyOperatorstrValuesTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, struct.success.size())); for (long _iter2569 : struct.success) { oprot.writeI64(_iter2569); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorstrValuesTimestr_resultTupleSchemeFactory implements SchemeFactory { public findKeyOperatorstrValuesTimestr_resultTupleScheme getScheme() { return new findKeyOperatorstrValuesTimestr_resultTupleScheme(); } } private static class findKeyOperatorstrValuesTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorstrValuesTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (long _iter2570 : struct.success) { oprot.writeI64(_iter2570); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.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(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TSet _set2571 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet( 2 * _set2571.size); long _elem2572; for (int _i2573 = 0; _i2573 < _set2571.size; ++_i2573) { _elem2572 = iprot.readI64(); struct.success.add(_elem2572); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class search_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "search_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField( "query", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new search_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new search_argsTupleSchemeFactory()); } public String key; // required public String query; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), QUERY((short) 2, "query"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // QUERY return QUERY; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.QUERY, new org.apache.thrift.meta_data.FieldMetaData("query", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(search_args.class, metaDataMap); } public search_args() {} public search_args(String key, String query, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.query = query; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public search_args(search_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetQuery()) { this.query = other.query; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public search_args deepCopy() { return new search_args(this); } @Override public void clear() { this.key = null; this.query = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public search_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public String getQuery() { return this.query; } public search_args setQuery(String query) { this.query = query; return this; } public void unsetQuery() { this.query = null; } /** * Returns true if field query is set (has been assigned a value) and * false otherwise */ public boolean isSetQuery() { return this.query != null; } public void setQueryIsSet(boolean value) { if(!value) { this.query = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public search_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public search_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public search_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case QUERY: if(value == null) { unsetQuery(); } else { setQuery((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case QUERY: return getQuery(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case QUERY: return isSetQuery(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof search_args) return this.equals((search_args) that); return false; } public boolean equals(search_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_query = true && this.isSetQuery(); boolean that_present_query = true && that.isSetQuery(); if(this_present_query || that_present_query) { if(!(this_present_query && that_present_query)) return false; if(!this.query.equals(that.query)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_query = true && (isSetQuery()); list.add(present_query); if(present_query) list.add(query); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(search_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetQuery()) .compareTo(other.isSetQuery()); if(lastComparison != 0) { return lastComparison; } if(isSetQuery()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.query, other.query); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("search_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("query:"); if(this.query == null) { sb.append("null"); } else { sb.append(this.query); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class search_argsStandardSchemeFactory implements SchemeFactory { public search_argsStandardScheme getScheme() { return new search_argsStandardScheme(); } } private static class search_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, search_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // QUERY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.query = iprot.readString(); struct.setQueryIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, search_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.query != null) { oprot.writeFieldBegin(QUERY_FIELD_DESC); oprot.writeString(struct.query); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class search_argsTupleSchemeFactory implements SchemeFactory { public search_argsTupleScheme getScheme() { return new search_argsTupleScheme(); } } private static class search_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, search_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetQuery()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetQuery()) { oprot.writeString(struct.query); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, search_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.query = iprot.readString(); struct.setQueryIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class search_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "search_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.SET, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new search_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new search_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(search_result.class, metaDataMap); } public search_result() {} public search_result(Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public search_result(search_result other) { if(other.isSetSuccess()) { Set __this__success = new LinkedHashSet( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public search_result deepCopy() { return new search_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(long elem) { if(this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public search_result setSuccess(Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public search_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public search_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public search_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Set) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 search_resultStandardSchemeFactory implements SchemeFactory { public search_resultStandardScheme getScheme() { return new search_resultStandardScheme(); } } private static class search_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, search_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set2574 = iprot .readSetBegin(); struct.success = new LinkedHashSet( 2 * _set2574.size); long _elem2575; for (int _i2576 = 0; _i2576 < _set2574.size; ++_i2576) { _elem2575 = iprot.readI64(); struct.success.add(_elem2575); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, search_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, struct.success.size())); for (long _iter2577 : struct.success) { oprot.writeI64(_iter2577); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class search_resultTupleSchemeFactory implements SchemeFactory { public search_resultTupleScheme getScheme() { return new search_resultTupleScheme(); } } private static class search_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, search_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (long _iter2578 : struct.success) { oprot.writeI64(_iter2578); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.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(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TSet _set2579 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet( 2 * _set2579.size); long _elem2580; for (int _i2581 = 0; _i2581 < _set2579.size; ++_i2581) { _elem2580 = iprot.readI64(); struct.success.add(_elem2580); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class revertKeysRecordsTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "revertKeysRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeysRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeysRecordsTime_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( revertKeysRecordsTime_args.class, metaDataMap); } public revertKeysRecordsTime_args() {} public revertKeysRecordsTime_args(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public revertKeysRecordsTime_args(revertKeysRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public revertKeysRecordsTime_args deepCopy() { return new revertKeysRecordsTime_args(this); } @Override public void clear() { this.keys = null; this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public revertKeysRecordsTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public revertKeysRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public revertKeysRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public revertKeysRecordsTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public revertKeysRecordsTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public revertKeysRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof revertKeysRecordsTime_args) return this.equals((revertKeysRecordsTime_args) that); return false; } public boolean equals(revertKeysRecordsTime_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(revertKeysRecordsTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("revertKeysRecordsTime_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class revertKeysRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public revertKeysRecordsTime_argsStandardScheme getScheme() { return new revertKeysRecordsTime_argsStandardScheme(); } } private static class revertKeysRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeysRecordsTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2582 = iprot .readListBegin(); struct.keys = new ArrayList( _list2582.size); String _elem2583; for (int _i2584 = 0; _i2584 < _list2582.size; ++_i2584) { _elem2583 = iprot.readString(); struct.keys.add(_elem2583); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2585 = iprot .readListBegin(); struct.records = new ArrayList( _list2585.size); long _elem2586; for (int _i2587 = 0; _i2587 < _list2585.size; ++_i2587) { _elem2586 = iprot.readI64(); struct.records.add(_elem2586); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, revertKeysRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2588 : struct.keys) { oprot.writeString(_iter2588); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2589 : struct.records) { oprot.writeI64(_iter2589); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeysRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public revertKeysRecordsTime_argsTupleScheme getScheme() { return new revertKeysRecordsTime_argsTupleScheme(); } } private static class revertKeysRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2590 : struct.keys) { oprot.writeString(_iter2590); } } } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2591 : struct.records) { oprot.writeI64(_iter2591); } } } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list2592 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2592.size); String _elem2593; for (int _i2594 = 0; _i2594 < _list2592.size; ++_i2594) { _elem2593 = iprot.readString(); struct.keys.add(_elem2593); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list2595 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2595.size); long _elem2596; for (int _i2597 = 0; _i2597 < _list2595.size; ++_i2597) { _elem2596 = iprot.readI64(); struct.records.add(_elem2596); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class revertKeysRecordsTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "revertKeysRecordsTime_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( revertKeysRecordsTime_result.class, metaDataMap); } public revertKeysRecordsTime_result() {} public revertKeysRecordsTime_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public revertKeysRecordsTime_result( revertKeysRecordsTime_result other) { if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public revertKeysRecordsTime_result deepCopy() { return new revertKeysRecordsTime_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 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 com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public revertKeysRecordsTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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( "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; 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 revertKeysRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public revertKeysRecordsTime_resultStandardScheme getScheme() { return new revertKeysRecordsTime_resultStandardScheme(); } } private static class revertKeysRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeysRecordsTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, 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(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeysRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public revertKeysRecordsTime_resultTupleScheme getScheme() { return new revertKeysRecordsTime_resultTupleScheme(); } } private static class revertKeysRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetEx()) { optionals.set(0); } if(struct.isSetEx2()) { optionals.set(1); } 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, revertKeysRecordsTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class revertKeysRecordsTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "revertKeysRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeysRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeysRecordsTimestr_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( revertKeysRecordsTimestr_args.class, metaDataMap); } public revertKeysRecordsTimestr_args() {} public revertKeysRecordsTimestr_args(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public revertKeysRecordsTimestr_args( revertKeysRecordsTimestr_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public revertKeysRecordsTimestr_args deepCopy() { return new revertKeysRecordsTimestr_args(this); } @Override public void clear() { this.keys = null; this.records = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public revertKeysRecordsTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public revertKeysRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public revertKeysRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public revertKeysRecordsTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public revertKeysRecordsTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public revertKeysRecordsTimestr_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof revertKeysRecordsTimestr_args) return this.equals((revertKeysRecordsTimestr_args) that); return false; } public boolean equals(revertKeysRecordsTimestr_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(revertKeysRecordsTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "revertKeysRecordsTimestr_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class revertKeysRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public revertKeysRecordsTimestr_argsStandardScheme getScheme() { return new revertKeysRecordsTimestr_argsStandardScheme(); } } private static class revertKeysRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2598 = iprot .readListBegin(); struct.keys = new ArrayList( _list2598.size); String _elem2599; for (int _i2600 = 0; _i2600 < _list2598.size; ++_i2600) { _elem2599 = iprot.readString(); struct.keys.add(_elem2599); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2601 = iprot .readListBegin(); struct.records = new ArrayList( _list2601.size); long _elem2602; for (int _i2603 = 0; _i2603 < _list2601.size; ++_i2603) { _elem2602 = iprot.readI64(); struct.records.add(_elem2602); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, revertKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2604 : struct.keys) { oprot.writeString(_iter2604); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2605 : struct.records) { oprot.writeI64(_iter2605); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeysRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public revertKeysRecordsTimestr_argsTupleScheme getScheme() { return new revertKeysRecordsTimestr_argsTupleScheme(); } } private static class revertKeysRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2606 : struct.keys) { oprot.writeString(_iter2606); } } } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2607 : struct.records) { oprot.writeI64(_iter2607); } } } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list2608 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2608.size); String _elem2609; for (int _i2610 = 0; _i2610 < _list2608.size; ++_i2610) { _elem2609 = iprot.readString(); struct.keys.add(_elem2609); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list2611 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2611.size); long _elem2612; for (int _i2613 = 0; _i2613 < _list2611.size; ++_i2613) { _elem2612 = iprot.readI64(); struct.records.add(_elem2612); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class revertKeysRecordsTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "revertKeysRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( 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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public revertKeysRecordsTimestr_result( revertKeysRecordsTimestr_result other) { if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public revertKeysRecordsTimestr_result deepCopy() { return new revertKeysRecordsTimestr_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = 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 com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public revertKeysRecordsTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class revertKeysRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public revertKeysRecordsTimestr_resultStandardScheme getScheme() { return new revertKeysRecordsTimestr_resultStandardScheme(); } } private static class revertKeysRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, 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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeysRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public revertKeysRecordsTimestr_resultTupleScheme getScheme() { return new revertKeysRecordsTimestr_resultTupleScheme(); } } private static class revertKeysRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetEx()) { optionals.set(0); } if(struct.isSetEx2()) { optionals.set(1); } if(struct.isSetEx3()) { optionals.set(2); } if(struct.isSetEx4()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); 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); } if(incoming.get(3)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class revertKeysRecordTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "revertKeysRecordTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeysRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeysRecordTime_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( revertKeysRecordTime_args.class, metaDataMap); } public revertKeysRecordTime_args() {} public revertKeysRecordTime_args(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public revertKeysRecordTime_args(revertKeysRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public revertKeysRecordTime_args deepCopy() { return new revertKeysRecordTime_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public revertKeysRecordTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public long getRecord() { return this.record; } public revertKeysRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public revertKeysRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public revertKeysRecordTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public revertKeysRecordTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public revertKeysRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof revertKeysRecordTime_args) return this.equals((revertKeysRecordTime_args) that); return false; } public boolean equals(revertKeysRecordTime_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(revertKeysRecordTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("revertKeysRecordTime_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class revertKeysRecordTime_argsStandardSchemeFactory implements SchemeFactory { public revertKeysRecordTime_argsStandardScheme getScheme() { return new revertKeysRecordTime_argsStandardScheme(); } } private static class revertKeysRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeysRecordTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2614 = iprot .readListBegin(); struct.keys = new ArrayList( _list2614.size); String _elem2615; for (int _i2616 = 0; _i2616 < _list2614.size; ++_i2616) { _elem2615 = iprot.readString(); struct.keys.add(_elem2615); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, revertKeysRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2617 : struct.keys) { oprot.writeString(_iter2617); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeysRecordTime_argsTupleSchemeFactory implements SchemeFactory { public revertKeysRecordTime_argsTupleScheme getScheme() { return new revertKeysRecordTime_argsTupleScheme(); } } private static class revertKeysRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2618 : struct.keys) { oprot.writeString(_iter2618); } } } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list2619 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2619.size); String _elem2620; for (int _i2621 = 0; _i2621 < _list2619.size; ++_i2621) { _elem2620 = iprot.readString(); struct.keys.add(_elem2620); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class revertKeysRecordTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "revertKeysRecordTime_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( revertKeysRecordTime_result.class, metaDataMap); } public revertKeysRecordTime_result() {} public revertKeysRecordTime_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public revertKeysRecordTime_result(revertKeysRecordTime_result other) { if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public revertKeysRecordTime_result deepCopy() { return new revertKeysRecordTime_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 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 com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public revertKeysRecordTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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( "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; 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 revertKeysRecordTime_resultStandardSchemeFactory implements SchemeFactory { public revertKeysRecordTime_resultStandardScheme getScheme() { return new revertKeysRecordTime_resultStandardScheme(); } } private static class revertKeysRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeysRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, 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(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeysRecordTime_resultTupleSchemeFactory implements SchemeFactory { public revertKeysRecordTime_resultTupleScheme getScheme() { return new revertKeysRecordTime_resultTupleScheme(); } } private static class revertKeysRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetEx()) { optionals.set(0); } if(struct.isSetEx2()) { optionals.set(1); } 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, revertKeysRecordTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class revertKeysRecordTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "revertKeysRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeysRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeysRecordTimestr_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( revertKeysRecordTimestr_args.class, metaDataMap); } public revertKeysRecordTimestr_args() {} public revertKeysRecordTimestr_args(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public revertKeysRecordTimestr_args( revertKeysRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public revertKeysRecordTimestr_args deepCopy() { return new revertKeysRecordTimestr_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public revertKeysRecordTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public long getRecord() { return this.record; } public revertKeysRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public revertKeysRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public revertKeysRecordTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public revertKeysRecordTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public revertKeysRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof revertKeysRecordTimestr_args) return this.equals((revertKeysRecordTimestr_args) that); return false; } public boolean equals(revertKeysRecordTimestr_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(revertKeysRecordTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "revertKeysRecordTimestr_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class revertKeysRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public revertKeysRecordTimestr_argsStandardScheme getScheme() { return new revertKeysRecordTimestr_argsStandardScheme(); } } private static class revertKeysRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeysRecordTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2622 = iprot .readListBegin(); struct.keys = new ArrayList( _list2622.size); String _elem2623; for (int _i2624 = 0; _i2624 < _list2622.size; ++_i2624) { _elem2623 = iprot.readString(); struct.keys.add(_elem2623); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, revertKeysRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2625 : struct.keys) { oprot.writeString(_iter2625); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeysRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public revertKeysRecordTimestr_argsTupleScheme getScheme() { return new revertKeysRecordTimestr_argsTupleScheme(); } } private static class revertKeysRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2626 : struct.keys) { oprot.writeString(_iter2626); } } } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list2627 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2627.size); String _elem2628; for (int _i2629 = 0; _i2629 < _list2627.size; ++_i2629) { _elem2628 = iprot.readString(); struct.keys.add(_elem2628); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class revertKeysRecordTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "revertKeysRecordTimestr_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( 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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public revertKeysRecordTimestr_result( revertKeysRecordTimestr_result other) { if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public revertKeysRecordTimestr_result deepCopy() { return new revertKeysRecordTimestr_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = 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 com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public revertKeysRecordTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class revertKeysRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public revertKeysRecordTimestr_resultStandardScheme getScheme() { return new revertKeysRecordTimestr_resultStandardScheme(); } } private static class revertKeysRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeysRecordTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, 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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeysRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public revertKeysRecordTimestr_resultTupleScheme getScheme() { return new revertKeysRecordTimestr_resultTupleScheme(); } } private static class revertKeysRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetEx()) { optionals.set(0); } if(struct.isSetEx2()) { optionals.set(1); } if(struct.isSetEx3()) { optionals.set(2); } if(struct.isSetEx4()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); 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); } if(incoming.get(3)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class revertKeyRecordsTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "revertKeyRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeyRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeyRecordsTime_argsTupleSchemeFactory()); } public String key; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( revertKeyRecordsTime_args.class, metaDataMap); } public revertKeyRecordsTime_args() {} public revertKeyRecordsTime_args(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public revertKeyRecordsTime_args(revertKeyRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public revertKeyRecordsTime_args deepCopy() { return new revertKeyRecordsTime_args(this); } @Override public void clear() { this.key = null; this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public revertKeyRecordsTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public revertKeyRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public revertKeyRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public revertKeyRecordsTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public revertKeyRecordsTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public revertKeyRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof revertKeyRecordsTime_args) return this.equals((revertKeyRecordsTime_args) that); return false; } public boolean equals(revertKeyRecordsTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(revertKeyRecordsTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("revertKeyRecordsTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class revertKeyRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public revertKeyRecordsTime_argsStandardScheme getScheme() { return new revertKeyRecordsTime_argsStandardScheme(); } } private static class revertKeyRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeyRecordsTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2630 = iprot .readListBegin(); struct.records = new ArrayList( _list2630.size); long _elem2631; for (int _i2632 = 0; _i2632 < _list2630.size; ++_i2632) { _elem2631 = iprot.readI64(); struct.records.add(_elem2631); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, revertKeyRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2633 : struct.records) { oprot.writeI64(_iter2633); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeyRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public revertKeyRecordsTime_argsTupleScheme getScheme() { return new revertKeyRecordsTime_argsTupleScheme(); } } private static class revertKeyRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2634 : struct.records) { oprot.writeI64(_iter2634); } } } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list2635 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2635.size); long _elem2636; for (int _i2637 = 0; _i2637 < _list2635.size; ++_i2637) { _elem2636 = iprot.readI64(); struct.records.add(_elem2636); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class revertKeyRecordsTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "revertKeyRecordsTime_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( revertKeyRecordsTime_result.class, metaDataMap); } public revertKeyRecordsTime_result() {} public revertKeyRecordsTime_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public revertKeyRecordsTime_result(revertKeyRecordsTime_result other) { if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public revertKeyRecordsTime_result deepCopy() { return new revertKeyRecordsTime_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 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 com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public revertKeyRecordsTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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( "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; 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 revertKeyRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public revertKeyRecordsTime_resultStandardScheme getScheme() { return new revertKeyRecordsTime_resultStandardScheme(); } } private static class revertKeyRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeyRecordsTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, 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(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeyRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public revertKeyRecordsTime_resultTupleScheme getScheme() { return new revertKeyRecordsTime_resultTupleScheme(); } } private static class revertKeyRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetEx()) { optionals.set(0); } if(struct.isSetEx2()) { optionals.set(1); } 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, revertKeyRecordsTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class revertKeyRecordsTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "revertKeyRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeyRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeyRecordsTimestr_argsTupleSchemeFactory()); } public String key; // required public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( revertKeyRecordsTimestr_args.class, metaDataMap); } public revertKeyRecordsTimestr_args() {} public revertKeyRecordsTimestr_args(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public revertKeyRecordsTimestr_args( revertKeyRecordsTimestr_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public revertKeyRecordsTimestr_args deepCopy() { return new revertKeyRecordsTimestr_args(this); } @Override public void clear() { this.key = null; this.records = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public revertKeyRecordsTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public revertKeyRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public revertKeyRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public revertKeyRecordsTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public revertKeyRecordsTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public revertKeyRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof revertKeyRecordsTimestr_args) return this.equals((revertKeyRecordsTimestr_args) that); return false; } public boolean equals(revertKeyRecordsTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(revertKeyRecordsTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "revertKeyRecordsTimestr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class revertKeyRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public revertKeyRecordsTimestr_argsStandardScheme getScheme() { return new revertKeyRecordsTimestr_argsStandardScheme(); } } private static class revertKeyRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2638 = iprot .readListBegin(); struct.records = new ArrayList( _list2638.size); long _elem2639; for (int _i2640 = 0; _i2640 < _list2638.size; ++_i2640) { _elem2639 = iprot.readI64(); struct.records.add(_elem2639); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, revertKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2641 : struct.records) { oprot.writeI64(_iter2641); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeyRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public revertKeyRecordsTimestr_argsTupleScheme getScheme() { return new revertKeyRecordsTimestr_argsTupleScheme(); } } private static class revertKeyRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2642 : struct.records) { oprot.writeI64(_iter2642); } } } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list2643 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2643.size); long _elem2644; for (int _i2645 = 0; _i2645 < _list2643.size; ++_i2645) { _elem2644 = iprot.readI64(); struct.records.add(_elem2644); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class revertKeyRecordsTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "revertKeyRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( 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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public revertKeyRecordsTimestr_result( revertKeyRecordsTimestr_result other) { if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public revertKeyRecordsTimestr_result deepCopy() { return new revertKeyRecordsTimestr_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = 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 com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public revertKeyRecordsTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class revertKeyRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public revertKeyRecordsTimestr_resultStandardScheme getScheme() { return new revertKeyRecordsTimestr_resultStandardScheme(); } } private static class revertKeyRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, 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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeyRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public revertKeyRecordsTimestr_resultTupleScheme getScheme() { return new revertKeyRecordsTimestr_resultTupleScheme(); } } private static class revertKeyRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetEx()) { optionals.set(0); } if(struct.isSetEx2()) { optionals.set(1); } if(struct.isSetEx3()) { optionals.set(2); } if(struct.isSetEx4()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); 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); } if(incoming.get(3)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class revertKeyRecordTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "revertKeyRecordTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeyRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeyRecordTime_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( revertKeyRecordTime_args.class, metaDataMap); } public revertKeyRecordTime_args() {} public revertKeyRecordTime_args(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public revertKeyRecordTime_args(revertKeyRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public revertKeyRecordTime_args deepCopy() { return new revertKeyRecordTime_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public revertKeyRecordTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public revertKeyRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public revertKeyRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public revertKeyRecordTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public revertKeyRecordTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public revertKeyRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof revertKeyRecordTime_args) return this.equals((revertKeyRecordTime_args) that); return false; } public boolean equals(revertKeyRecordTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(revertKeyRecordTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("revertKeyRecordTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class revertKeyRecordTime_argsStandardSchemeFactory implements SchemeFactory { public revertKeyRecordTime_argsStandardScheme getScheme() { return new revertKeyRecordTime_argsStandardScheme(); } } private static class revertKeyRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeyRecordTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, revertKeyRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeyRecordTime_argsTupleSchemeFactory implements SchemeFactory { public revertKeyRecordTime_argsTupleScheme getScheme() { return new revertKeyRecordTime_argsTupleScheme(); } } private static class revertKeyRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class revertKeyRecordTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "revertKeyRecordTime_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( revertKeyRecordTime_result.class, metaDataMap); } public revertKeyRecordTime_result() {} public revertKeyRecordTime_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public revertKeyRecordTime_result(revertKeyRecordTime_result other) { if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public revertKeyRecordTime_result deepCopy() { return new revertKeyRecordTime_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 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 com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public revertKeyRecordTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 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; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(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; } } 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("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; 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 revertKeyRecordTime_resultStandardSchemeFactory implements SchemeFactory { public revertKeyRecordTime_resultStandardScheme getScheme() { return new revertKeyRecordTime_resultStandardScheme(); } } private static class revertKeyRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeyRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, 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(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeyRecordTime_resultTupleSchemeFactory implements SchemeFactory { public revertKeyRecordTime_resultTupleScheme getScheme() { return new revertKeyRecordTime_resultTupleScheme(); } } private static class revertKeyRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetEx()) { optionals.set(0); } if(struct.isSetEx2()) { optionals.set(1); } 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, revertKeyRecordTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class revertKeyRecordTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "revertKeyRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeyRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeyRecordTimestr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( revertKeyRecordTimestr_args.class, metaDataMap); } public revertKeyRecordTimestr_args() {} public revertKeyRecordTimestr_args(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public revertKeyRecordTimestr_args(revertKeyRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public revertKeyRecordTimestr_args deepCopy() { return new revertKeyRecordTimestr_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public revertKeyRecordTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public revertKeyRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public revertKeyRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public revertKeyRecordTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public revertKeyRecordTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public revertKeyRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof revertKeyRecordTimestr_args) return this.equals((revertKeyRecordTimestr_args) that); return false; } public boolean equals(revertKeyRecordTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(revertKeyRecordTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "revertKeyRecordTimestr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class revertKeyRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public revertKeyRecordTimestr_argsStandardScheme getScheme() { return new revertKeyRecordTimestr_argsStandardScheme(); } } private static class revertKeyRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeyRecordTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, revertKeyRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeyRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public revertKeyRecordTimestr_argsTupleScheme getScheme() { return new revertKeyRecordTimestr_argsTupleScheme(); } } private static class revertKeyRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class revertKeyRecordTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "revertKeyRecordTimestr_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new 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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( 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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public revertKeyRecordTimestr_result( revertKeyRecordTimestr_result other) { if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public revertKeyRecordTimestr_result deepCopy() { return new revertKeyRecordTimestr_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = 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 com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public revertKeyRecordTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof 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; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(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; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "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; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class revertKeyRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public revertKeyRecordTimestr_resultStandardScheme getScheme() { return new revertKeyRecordTimestr_resultStandardScheme(); } } private static class revertKeyRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeyRecordTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, 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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeyRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public revertKeyRecordTimestr_resultTupleScheme getScheme() { return new revertKeyRecordTimestr_resultTupleScheme(); } } private static class revertKeyRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetEx()) { optionals.set(0); } if(struct.isSetEx2()) { optionals.set(1); } if(struct.isSetEx3()) { optionals.set(2); } if(struct.isSetEx4()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); 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); } if(incoming.get(3)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class pingRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "pingRecords_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new pingRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new pingRecords_argsTupleSchemeFactory()); } public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short) 1, "records"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORDS return RECORDS; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(pingRecords_args.class, metaDataMap); } public pingRecords_args() {} public pingRecords_args(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public pingRecords_args(pingRecords_args other) { if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public pingRecords_args deepCopy() { return new pingRecords_args(this); } @Override public void clear() { this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public pingRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public pingRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public pingRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public pingRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof pingRecords_args) return this.equals((pingRecords_args) that); return false; } public boolean equals(pingRecords_args that) { if(that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(pingRecords_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("pingRecords_args("); boolean first = true; sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class pingRecords_argsStandardSchemeFactory implements SchemeFactory { public pingRecords_argsStandardScheme getScheme() { return new pingRecords_argsStandardScheme(); } } private static class pingRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, pingRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2646 = iprot .readListBegin(); struct.records = new ArrayList( _list2646.size); long _elem2647; for (int _i2648 = 0; _i2648 < _list2646.size; ++_i2648) { _elem2647 = iprot.readI64(); struct.records.add(_elem2647); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, pingRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2649 : struct.records) { oprot.writeI64(_iter2649); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class pingRecords_argsTupleSchemeFactory implements SchemeFactory { public pingRecords_argsTupleScheme getScheme() { return new pingRecords_argsTupleScheme(); } } private static class pingRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, pingRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecords()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2650 : struct.records) { oprot.writeI64(_iter2650); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, pingRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list2651 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2651.size); long _elem2652; for (int _i2653 = 0; _i2653 < _list2651.size; ++_i2653) { _elem2652 = iprot.readI64(); struct.records.add(_elem2652); } } struct.setRecordsIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class pingRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "pingRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new pingRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new pingRecords_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.BOOL)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( pingRecords_result.class, metaDataMap); } public pingRecords_result() {} public pingRecords_result(Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public pingRecords_result(pingRecords_result other) { if(other.isSetSuccess()) { Map __this__success = new LinkedHashMap( other.success); this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public pingRecords_result deepCopy() { return new pingRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, boolean val) { if(this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public pingRecords_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public pingRecords_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public pingRecords_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public pingRecords_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Map) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 pingRecords_result) return this.equals((pingRecords_result) that); return false; } public boolean equals(pingRecords_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(pingRecords_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("pingRecords_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 pingRecords_resultStandardSchemeFactory implements SchemeFactory { public pingRecords_resultStandardScheme getScheme() { return new pingRecords_resultStandardScheme(); } } private static class pingRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, pingRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2654 = iprot .readMapBegin(); struct.success = new LinkedHashMap( 2 * _map2654.size); long _key2655; boolean _val2656; for (int _i2657 = 0; _i2657 < _map2654.size; ++_i2657) { _key2655 = iprot.readI64(); _val2656 = iprot.readBool(); struct.success.put(_key2655, _val2656); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, pingRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, struct.success.size())); for (Map.Entry _iter2658 : struct.success .entrySet()) { oprot.writeI64(_iter2658.getKey()); oprot.writeBool(_iter2658.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class pingRecords_resultTupleSchemeFactory implements SchemeFactory { public pingRecords_resultTupleScheme getScheme() { return new pingRecords_resultTupleScheme(); } } private static class pingRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, pingRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter2659 : struct.success .entrySet()) { oprot.writeI64(_iter2659.getKey()); oprot.writeBool(_iter2659.getValue()); } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, pingRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2660 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, iprot.readI32()); struct.success = new LinkedHashMap( 2 * _map2660.size); long _key2661; boolean _val2662; for (int _i2663 = 0; _i2663 < _map2660.size; ++_i2663) { _key2661 = iprot.readI64(); _val2662 = iprot.readBool(); struct.success.put(_key2661, _val2662); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class pingRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "pingRecord_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new pingRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new pingRecord_argsTupleSchemeFactory()); } public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short) 1, "record"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // RECORD return RECORD; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(pingRecord_args.class, metaDataMap); } public pingRecord_args() {} public pingRecord_args(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public pingRecord_args(pingRecord_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public pingRecord_args deepCopy() { return new pingRecord_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public pingRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public pingRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public pingRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public pingRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof pingRecord_args) return this.equals((pingRecord_args) that); return false; } public boolean equals(pingRecord_args that) { if(that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(pingRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("pingRecord_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class pingRecord_argsStandardSchemeFactory implements SchemeFactory { public pingRecord_argsStandardScheme getScheme() { return new pingRecord_argsStandardScheme(); } } private static class pingRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, pingRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, pingRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class pingRecord_argsTupleSchemeFactory implements SchemeFactory { public pingRecord_argsTupleScheme getScheme() { return new pingRecord_argsTupleScheme(); } } private static class pingRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, pingRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetRecord()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, pingRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class pingRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "pingRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.BOOL, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new pingRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new pingRecord_resultTupleSchemeFactory()); } public boolean success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(pingRecord_result.class, metaDataMap); } public pingRecord_result() {} public pingRecord_result(boolean success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public pingRecord_result(pingRecord_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public pingRecord_result deepCopy() { return new pingRecord_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 pingRecord_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public pingRecord_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public pingRecord_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public pingRecord_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 pingRecord_result) return this.equals((pingRecord_result) that); return false; } public boolean equals(pingRecord_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(pingRecord_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("pingRecord_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 pingRecord_resultStandardSchemeFactory implements SchemeFactory { public pingRecord_resultStandardScheme getScheme() { return new pingRecord_resultStandardScheme(); } } private static class pingRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, pingRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, pingRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class pingRecord_resultTupleSchemeFactory implements SchemeFactory { public pingRecord_resultTupleScheme getScheme() { return new pingRecord_resultTupleScheme(); } } private static class pingRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, pingRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, pingRecord_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class verifyAndSwap_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "verifyAndSwap_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField EXPECTED_FIELD_DESC = new org.apache.thrift.protocol.TField( "expected", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField REPLACEMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "replacement", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new verifyAndSwap_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new verifyAndSwap_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject expected; // required public long record; // required public com.cinchapi.concourse.thrift.TObject replacement; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), EXPECTED((short) 2, "expected"), RECORD((short) 3, "record"), REPLACEMENT((short) 4, "replacement"), CREDS((short) 5, "creds"), TRANSACTION((short) 6, "transaction"), ENVIRONMENT((short) 7, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // EXPECTED return EXPECTED; case 3: // RECORD return RECORD; case 4: // REPLACEMENT return REPLACEMENT; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.EXPECTED, new org.apache.thrift.meta_data.FieldMetaData("expected", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.REPLACEMENT, new org.apache.thrift.meta_data.FieldMetaData("replacement", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( verifyAndSwap_args.class, metaDataMap); } public verifyAndSwap_args() {} public verifyAndSwap_args(String key, com.cinchapi.concourse.thrift.TObject expected, long record, com.cinchapi.concourse.thrift.TObject replacement, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.expected = expected; this.record = record; setRecordIsSet(true); this.replacement = replacement; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public verifyAndSwap_args(verifyAndSwap_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetExpected()) { this.expected = new com.cinchapi.concourse.thrift.TObject( other.expected); } this.record = other.record; if(other.isSetReplacement()) { this.replacement = new com.cinchapi.concourse.thrift.TObject( other.replacement); } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public verifyAndSwap_args deepCopy() { return new verifyAndSwap_args(this); } @Override public void clear() { this.key = null; this.expected = null; setRecordIsSet(false); this.record = 0; this.replacement = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public verifyAndSwap_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getExpected() { return this.expected; } public verifyAndSwap_args setExpected( com.cinchapi.concourse.thrift.TObject expected) { this.expected = expected; return this; } public void unsetExpected() { this.expected = null; } /** * Returns true if field expected is set (has been assigned a value) and * false otherwise */ public boolean isSetExpected() { return this.expected != null; } public void setExpectedIsSet(boolean value) { if(!value) { this.expected = null; } } public long getRecord() { return this.record; } public verifyAndSwap_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.TObject getReplacement() { return this.replacement; } public verifyAndSwap_args setReplacement( com.cinchapi.concourse.thrift.TObject replacement) { this.replacement = replacement; return this; } public void unsetReplacement() { this.replacement = null; } /** * Returns true if field replacement is set (has been assigned a value) * and false otherwise */ public boolean isSetReplacement() { return this.replacement != null; } public void setReplacementIsSet(boolean value) { if(!value) { this.replacement = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public verifyAndSwap_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public verifyAndSwap_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public verifyAndSwap_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case EXPECTED: if(value == null) { unsetExpected(); } else { setExpected((com.cinchapi.concourse.thrift.TObject) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case REPLACEMENT: if(value == null) { unsetReplacement(); } else { setReplacement( (com.cinchapi.concourse.thrift.TObject) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case EXPECTED: return getExpected(); case RECORD: return getRecord(); case REPLACEMENT: return getReplacement(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case EXPECTED: return isSetExpected(); case RECORD: return isSetRecord(); case REPLACEMENT: return isSetReplacement(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof verifyAndSwap_args) return this.equals((verifyAndSwap_args) that); return false; } public boolean equals(verifyAndSwap_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_expected = true && this.isSetExpected(); boolean that_present_expected = true && that.isSetExpected(); if(this_present_expected || that_present_expected) { if(!(this_present_expected && that_present_expected)) return false; if(!this.expected.equals(that.expected)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_replacement = true && this.isSetReplacement(); boolean that_present_replacement = true && that.isSetReplacement(); if(this_present_replacement || that_present_replacement) { if(!(this_present_replacement && that_present_replacement)) return false; if(!this.replacement.equals(that.replacement)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_expected = true && (isSetExpected()); list.add(present_expected); if(present_expected) list.add(expected); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_replacement = true && (isSetReplacement()); list.add(present_replacement); if(present_replacement) list.add(replacement); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(verifyAndSwap_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetExpected()) .compareTo(other.isSetExpected()); if(lastComparison != 0) { return lastComparison; } if(isSetExpected()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.expected, other.expected); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetReplacement()) .compareTo(other.isSetReplacement()); if(lastComparison != 0) { return lastComparison; } if(isSetReplacement()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.replacement, other.replacement); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("verifyAndSwap_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("expected:"); if(this.expected == null) { sb.append("null"); } else { sb.append(this.expected); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("replacement:"); if(this.replacement == null) { sb.append("null"); } else { sb.append(this.replacement); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(expected != null) { expected.validate(); } if(replacement != null) { replacement.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class verifyAndSwap_argsStandardSchemeFactory implements SchemeFactory { public verifyAndSwap_argsStandardScheme getScheme() { return new verifyAndSwap_argsStandardScheme(); } } private static class verifyAndSwap_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, verifyAndSwap_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EXPECTED if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.expected = new com.cinchapi.concourse.thrift.TObject(); struct.expected.read(iprot); struct.setExpectedIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // REPLACEMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.replacement = new com.cinchapi.concourse.thrift.TObject(); struct.replacement.read(iprot); struct.setReplacementIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, verifyAndSwap_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.expected != null) { oprot.writeFieldBegin(EXPECTED_FIELD_DESC); struct.expected.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.replacement != null) { oprot.writeFieldBegin(REPLACEMENT_FIELD_DESC); struct.replacement.write(oprot); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class verifyAndSwap_argsTupleSchemeFactory implements SchemeFactory { public verifyAndSwap_argsTupleScheme getScheme() { return new verifyAndSwap_argsTupleScheme(); } } private static class verifyAndSwap_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, verifyAndSwap_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetExpected()) { optionals.set(1); } if(struct.isSetRecord()) { optionals.set(2); } if(struct.isSetReplacement()) { optionals.set(3); } if(struct.isSetCreds()) { optionals.set(4); } if(struct.isSetTransaction()) { optionals.set(5); } if(struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetExpected()) { struct.expected.write(oprot); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetReplacement()) { struct.replacement.write(oprot); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, verifyAndSwap_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.expected = new com.cinchapi.concourse.thrift.TObject(); struct.expected.read(iprot); struct.setExpectedIsSet(true); } if(incoming.get(2)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(3)) { struct.replacement = new com.cinchapi.concourse.thrift.TObject(); struct.replacement.read(iprot); struct.setReplacementIsSet(true); } if(incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class verifyAndSwap_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "verifyAndSwap_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.BOOL, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new verifyAndSwap_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new verifyAndSwap_resultTupleSchemeFactory()); } public boolean success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( verifyAndSwap_result.class, metaDataMap); } public verifyAndSwap_result() {} public verifyAndSwap_result(boolean success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public verifyAndSwap_result(verifyAndSwap_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public verifyAndSwap_result deepCopy() { return new verifyAndSwap_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 verifyAndSwap_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public verifyAndSwap_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public verifyAndSwap_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public verifyAndSwap_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 verifyAndSwap_result) return this.equals((verifyAndSwap_result) that); return false; } public boolean equals(verifyAndSwap_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(verifyAndSwap_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("verifyAndSwap_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 verifyAndSwap_resultStandardSchemeFactory implements SchemeFactory { public verifyAndSwap_resultStandardScheme getScheme() { return new verifyAndSwap_resultStandardScheme(); } } private static class verifyAndSwap_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, verifyAndSwap_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, verifyAndSwap_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class verifyAndSwap_resultTupleSchemeFactory implements SchemeFactory { public verifyAndSwap_resultTupleScheme getScheme() { return new verifyAndSwap_resultTupleScheme(); } } private static class verifyAndSwap_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, verifyAndSwap_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, verifyAndSwap_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class verifyOrSet_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "verifyOrSet_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField( "value", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new verifyOrSet_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new verifyOrSet_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), VALUE((short) 2, "value"), RECORD((short) 3, "record"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // RECORD return RECORD; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(verifyOrSet_args.class, metaDataMap); } public verifyOrSet_args() {} public verifyOrSet_args(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public verifyOrSet_args(verifyOrSet_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject( other.value); } this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public verifyOrSet_args deepCopy() { return new verifyOrSet_args(this); } @Override public void clear() { this.key = null; this.value = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public verifyOrSet_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public verifyOrSet_args setValue( com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** * Returns true if field value is set (has been assigned a value) and * false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if(!value) { this.value = null; } } public long getRecord() { return this.record; } public verifyOrSet_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public verifyOrSet_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public verifyOrSet_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public verifyOrSet_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case VALUE: if(value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case VALUE: return isSetValue(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof verifyOrSet_args) return this.equals((verifyOrSet_args) that); return false; } public boolean equals(verifyOrSet_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if(this_present_value || that_present_value) { if(!(this_present_value && that_present_value)) return false; if(!this.value.equals(that.value)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if(present_value) list.add(value); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(verifyOrSet_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()) .compareTo(other.isSetValue()); if(lastComparison != 0) { return lastComparison; } if(isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.value, other.value); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("verifyOrSet_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("value:"); if(this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(value != null) { value.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class verifyOrSet_argsStandardSchemeFactory implements SchemeFactory { public verifyOrSet_argsStandardScheme getScheme() { return new verifyOrSet_argsStandardScheme(); } } private static class verifyOrSet_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, verifyOrSet_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, verifyOrSet_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class verifyOrSet_argsTupleSchemeFactory implements SchemeFactory { public verifyOrSet_argsTupleScheme getScheme() { return new verifyOrSet_argsTupleScheme(); } } private static class verifyOrSet_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, verifyOrSet_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetValue()) { optionals.set(1); } if(struct.isSetRecord()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetValue()) { struct.value.write(oprot); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, verifyOrSet_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if(incoming.get(2)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class verifyOrSet_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "verifyOrSet_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new verifyOrSet_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new verifyOrSet_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.InvalidArgumentException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( verifyOrSet_result.class, metaDataMap); } public verifyOrSet_result() {} public verifyOrSet_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.InvalidArgumentException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public verifyOrSet_result(verifyOrSet_result other) { if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public verifyOrSet_result deepCopy() { return new verifyOrSet_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public verifyOrSet_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public verifyOrSet_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.InvalidArgumentException getEx3() { return this.ex3; } public verifyOrSet_result setEx3( com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public verifyOrSet_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if(value == null) { unsetEx(); } 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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof verifyOrSet_result) return this.equals((verifyOrSet_result) that); return false; } public boolean equals(verifyOrSet_result that) { if(that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(verifyOrSet_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("verifyOrSet_result("); boolean first = true; sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class verifyOrSet_resultStandardSchemeFactory implements SchemeFactory { public verifyOrSet_resultStandardScheme getScheme() { return new verifyOrSet_resultStandardScheme(); } } private static class verifyOrSet_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, verifyOrSet_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, verifyOrSet_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class verifyOrSet_resultTupleSchemeFactory implements SchemeFactory { public verifyOrSet_resultTupleScheme getScheme() { return new verifyOrSet_resultTupleScheme(); } } private static class verifyOrSet_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, verifyOrSet_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetEx()) { optionals.set(0); } if(struct.isSetEx2()) { optionals.set(1); } if(struct.isSetEx3()) { optionals.set(2); } if(struct.isSetEx4()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, verifyOrSet_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); 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); } if(incoming.get(3)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class findOrAddKeyValue_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findOrAddKeyValue_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField( "value", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findOrAddKeyValue_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findOrAddKeyValue_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), VALUE((short) 2, "value"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( findOrAddKeyValue_args.class, metaDataMap); } public findOrAddKeyValue_args() {} public findOrAddKeyValue_args(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findOrAddKeyValue_args(findOrAddKeyValue_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject( other.value); } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public findOrAddKeyValue_args deepCopy() { return new findOrAddKeyValue_args(this); } @Override public void clear() { this.key = null; this.value = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public findOrAddKeyValue_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public findOrAddKeyValue_args setValue( com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** * Returns true if field value is set (has been assigned a value) and * false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if(!value) { this.value = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findOrAddKeyValue_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findOrAddKeyValue_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findOrAddKeyValue_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case VALUE: if(value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case VALUE: return isSetValue(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof findOrAddKeyValue_args) return this.equals((findOrAddKeyValue_args) that); return false; } public boolean equals(findOrAddKeyValue_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if(this_present_value || that_present_value) { if(!(this_present_value && that_present_value)) return false; if(!this.value.equals(that.value)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if(present_value) list.add(value); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findOrAddKeyValue_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()) .compareTo(other.isSetValue()); if(lastComparison != 0) { return lastComparison; } if(isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.value, other.value); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("findOrAddKeyValue_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("value:"); if(this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(value != null) { value.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findOrAddKeyValue_argsStandardSchemeFactory implements SchemeFactory { public findOrAddKeyValue_argsStandardScheme getScheme() { return new findOrAddKeyValue_argsStandardScheme(); } } private static class findOrAddKeyValue_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findOrAddKeyValue_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, findOrAddKeyValue_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findOrAddKeyValue_argsTupleSchemeFactory implements SchemeFactory { public findOrAddKeyValue_argsTupleScheme getScheme() { return new findOrAddKeyValue_argsTupleScheme(); } } private static class findOrAddKeyValue_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findOrAddKeyValue_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetValue()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetValue()) { struct.value.write(oprot); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findOrAddKeyValue_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findOrAddKeyValue_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findOrAddKeyValue_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField EX5_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex5", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findOrAddKeyValue_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findOrAddKeyValue_resultTupleSchemeFactory()); } public long success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.DuplicateEntryException ex3; // required public com.cinchapi.concourse.thrift.InvalidArgumentException ex4; // required public com.cinchapi.concourse.thrift.PermissionException ex5; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"), EX5((short) 5, "ex5"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; case 5: // EX5 return EX5; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX5, new org.apache.thrift.meta_data.FieldMetaData("ex5", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( findOrAddKeyValue_result.class, metaDataMap); } public findOrAddKeyValue_result() {} public findOrAddKeyValue_result(long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.DuplicateEntryException ex3, com.cinchapi.concourse.thrift.InvalidArgumentException ex4, com.cinchapi.concourse.thrift.PermissionException ex5) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; this.ex5 = ex5; } /** * Performs a deep copy on other. */ public findOrAddKeyValue_result(findOrAddKeyValue_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.DuplicateEntryException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.InvalidArgumentException( other.ex4); } if(other.isSetEx5()) { this.ex5 = new com.cinchapi.concourse.thrift.PermissionException( other.ex5); } } public findOrAddKeyValue_result deepCopy() { return new findOrAddKeyValue_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = 0; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; this.ex5 = null; } public long getSuccess() { return this.success; } public findOrAddKeyValue_result setSuccess(long success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findOrAddKeyValue_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findOrAddKeyValue_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.DuplicateEntryException getEx3() { return this.ex3; } public findOrAddKeyValue_result setEx3( com.cinchapi.concourse.thrift.DuplicateEntryException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.InvalidArgumentException getEx4() { return this.ex4; } public findOrAddKeyValue_result setEx4( com.cinchapi.concourse.thrift.InvalidArgumentException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx5() { return this.ex5; } public findOrAddKeyValue_result setEx5( com.cinchapi.concourse.thrift.PermissionException ex5) { this.ex5 = ex5; return this; } public void unsetEx5() { this.ex5 = null; } /** * Returns true if field ex5 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx5() { return this.ex5 != null; } public void setEx5IsSet(boolean value) { if(!value) { this.ex5 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Long) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.DuplicateEntryException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.InvalidArgumentException) value); } break; case EX5: if(value == null) { unsetEx5(); } else { setEx5((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); case EX5: return getEx5(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); case EX5: return isSetEx5(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof findOrAddKeyValue_result) return this.equals((findOrAddKeyValue_result) that); return false; } public boolean equals(findOrAddKeyValue_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } boolean this_present_ex5 = true && this.isSetEx5(); boolean that_present_ex5 = true && that.isSetEx5(); if(this_present_ex5 || that_present_ex5) { if(!(this_present_ex5 && that_present_ex5)) return false; if(!this.ex5.equals(that.ex5)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); boolean present_ex5 = true && (isSetEx5()); list.add(present_ex5); if(present_ex5) list.add(ex5); return list.hashCode(); } @Override public int compareTo(findOrAddKeyValue_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx5()) .compareTo(other.isSetEx5()); if(lastComparison != 0) { return lastComparison; } if(isSetEx5()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex5, other.ex5); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("findOrAddKeyValue_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; if(!first) sb.append(", "); sb.append("ex5:"); if(this.ex5 == null) { sb.append("null"); } else { sb.append(this.ex5); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findOrAddKeyValue_resultStandardSchemeFactory implements SchemeFactory { public findOrAddKeyValue_resultStandardScheme getScheme() { return new findOrAddKeyValue_resultStandardScheme(); } } private static class findOrAddKeyValue_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findOrAddKeyValue_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.DuplicateEntryException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // EX5 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex5 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex5.read(iprot); struct.setEx5IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, findOrAddKeyValue_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeI64(struct.success); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } if(struct.ex5 != null) { oprot.writeFieldBegin(EX5_FIELD_DESC); struct.ex5.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findOrAddKeyValue_resultTupleSchemeFactory implements SchemeFactory { public findOrAddKeyValue_resultTupleScheme getScheme() { return new findOrAddKeyValue_resultTupleScheme(); } } private static class findOrAddKeyValue_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findOrAddKeyValue_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } if(struct.isSetEx5()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetSuccess()) { oprot.writeI64(struct.success); } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } if(struct.isSetEx5()) { struct.ex5.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findOrAddKeyValue_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.DuplicateEntryException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } if(incoming.get(5)) { struct.ex5 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex5.read(iprot); struct.setEx5IsSet(true); } } } } public static class findOrInsertCriteriaJson_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findOrInsertCriteriaJson_args"); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField JSON_FIELD_DESC = new org.apache.thrift.protocol.TField( "json", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findOrInsertCriteriaJson_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findOrInsertCriteriaJson_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String json; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CRITERIA((short) 1, "criteria"), JSON((short) 2, "json"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CRITERIA return CRITERIA; case 2: // JSON return JSON; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.JSON, new org.apache.thrift.meta_data.FieldMetaData("json", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( findOrInsertCriteriaJson_args.class, metaDataMap); } public findOrInsertCriteriaJson_args() {} public findOrInsertCriteriaJson_args( com.cinchapi.concourse.thrift.TCriteria criteria, String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.criteria = criteria; this.json = json; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findOrInsertCriteriaJson_args( findOrInsertCriteriaJson_args other) { if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } if(other.isSetJson()) { this.json = other.json; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public findOrInsertCriteriaJson_args deepCopy() { return new findOrInsertCriteriaJson_args(this); } @Override public void clear() { this.criteria = null; this.json = null; this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public findOrInsertCriteriaJson_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public String getJson() { return this.json; } public findOrInsertCriteriaJson_args setJson(String json) { this.json = json; return this; } public void unsetJson() { this.json = null; } /** * Returns true if field json is set (has been assigned a value) and * false otherwise */ public boolean isSetJson() { return this.json != null; } public void setJsonIsSet(boolean value) { if(!value) { this.json = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findOrInsertCriteriaJson_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findOrInsertCriteriaJson_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findOrInsertCriteriaJson_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case JSON: if(value == null) { unsetJson(); } else { setJson((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CRITERIA: return getCriteria(); case JSON: return getJson(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CRITERIA: return isSetCriteria(); case JSON: return isSetJson(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof findOrInsertCriteriaJson_args) return this.equals((findOrInsertCriteriaJson_args) that); return false; } public boolean equals(findOrInsertCriteriaJson_args that) { if(that == null) return false; boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_json = true && this.isSetJson(); boolean that_present_json = true && that.isSetJson(); if(this_present_json || that_present_json) { if(!(this_present_json && that_present_json)) return false; if(!this.json.equals(that.json)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_json = true && (isSetJson()); list.add(present_json); if(present_json) list.add(json); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findOrInsertCriteriaJson_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetJson()) .compareTo(other.isSetJson()); if(lastComparison != 0) { return lastComparison; } if(isSetJson()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.json, other.json); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "findOrInsertCriteriaJson_args("); boolean first = true; sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("json:"); if(this.json == null) { sb.append("null"); } else { sb.append(this.json); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findOrInsertCriteriaJson_argsStandardSchemeFactory implements SchemeFactory { public findOrInsertCriteriaJson_argsStandardScheme getScheme() { return new findOrInsertCriteriaJson_argsStandardScheme(); } } private static class findOrInsertCriteriaJson_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findOrInsertCriteriaJson_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // JSON if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.json = iprot.readString(); struct.setJsonIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, findOrInsertCriteriaJson_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if(struct.json != null) { oprot.writeFieldBegin(JSON_FIELD_DESC); oprot.writeString(struct.json); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findOrInsertCriteriaJson_argsTupleSchemeFactory implements SchemeFactory { public findOrInsertCriteriaJson_argsTupleScheme getScheme() { return new findOrInsertCriteriaJson_argsTupleScheme(); } } private static class findOrInsertCriteriaJson_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findOrInsertCriteriaJson_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCriteria()) { optionals.set(0); } if(struct.isSetJson()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetJson()) { oprot.writeString(struct.json); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findOrInsertCriteriaJson_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(1)) { struct.json = iprot.readString(); struct.setJsonIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findOrInsertCriteriaJson_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findOrInsertCriteriaJson_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findOrInsertCriteriaJson_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findOrInsertCriteriaJson_resultTupleSchemeFactory()); } public long success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.DuplicateEntryException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( findOrInsertCriteriaJson_result.class, metaDataMap); } public findOrInsertCriteriaJson_result() {} public findOrInsertCriteriaJson_result(long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.DuplicateEntryException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public findOrInsertCriteriaJson_result( findOrInsertCriteriaJson_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.DuplicateEntryException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public findOrInsertCriteriaJson_result deepCopy() { return new findOrInsertCriteriaJson_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = 0; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public long getSuccess() { return this.success; } public findOrInsertCriteriaJson_result setSuccess(long success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findOrInsertCriteriaJson_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findOrInsertCriteriaJson_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.DuplicateEntryException getEx3() { return this.ex3; } public findOrInsertCriteriaJson_result setEx3( com.cinchapi.concourse.thrift.DuplicateEntryException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public findOrInsertCriteriaJson_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Long) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.DuplicateEntryException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof findOrInsertCriteriaJson_result) return this.equals((findOrInsertCriteriaJson_result) that); return false; } public boolean equals(findOrInsertCriteriaJson_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(findOrInsertCriteriaJson_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "findOrInsertCriteriaJson_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findOrInsertCriteriaJson_resultStandardSchemeFactory implements SchemeFactory { public findOrInsertCriteriaJson_resultStandardScheme getScheme() { return new findOrInsertCriteriaJson_resultStandardScheme(); } } private static class findOrInsertCriteriaJson_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findOrInsertCriteriaJson_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.DuplicateEntryException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, findOrInsertCriteriaJson_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeI64(struct.success); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findOrInsertCriteriaJson_resultTupleSchemeFactory implements SchemeFactory { public findOrInsertCriteriaJson_resultTupleScheme getScheme() { return new findOrInsertCriteriaJson_resultTupleScheme(); } } private static class findOrInsertCriteriaJson_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findOrInsertCriteriaJson_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { oprot.writeI64(struct.success); } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findOrInsertCriteriaJson_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.DuplicateEntryException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class findOrInsertCclJson_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findOrInsertCclJson_args"); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField JSON_FIELD_DESC = new org.apache.thrift.protocol.TField( "json", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findOrInsertCclJson_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findOrInsertCclJson_argsTupleSchemeFactory()); } public String ccl; // required public String json; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CCL((short) 1, "ccl"), JSON((short) 2, "json"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CCL return CCL; case 2: // JSON return JSON; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.JSON, new org.apache.thrift.meta_data.FieldMetaData("json", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( findOrInsertCclJson_args.class, metaDataMap); } public findOrInsertCclJson_args() {} public findOrInsertCclJson_args(String ccl, String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.ccl = ccl; this.json = json; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findOrInsertCclJson_args(findOrInsertCclJson_args other) { if(other.isSetCcl()) { this.ccl = other.ccl; } if(other.isSetJson()) { this.json = other.json; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public findOrInsertCclJson_args deepCopy() { return new findOrInsertCclJson_args(this); } @Override public void clear() { this.ccl = null; this.json = null; this.creds = null; this.transaction = null; this.environment = null; } public String getCcl() { return this.ccl; } public findOrInsertCclJson_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public String getJson() { return this.json; } public findOrInsertCclJson_args setJson(String json) { this.json = json; return this; } public void unsetJson() { this.json = null; } /** * Returns true if field json is set (has been assigned a value) and * false otherwise */ public boolean isSetJson() { return this.json != null; } public void setJsonIsSet(boolean value) { if(!value) { this.json = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findOrInsertCclJson_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findOrInsertCclJson_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findOrInsertCclJson_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case JSON: if(value == null) { unsetJson(); } else { setJson((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CCL: return getCcl(); case JSON: return getJson(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CCL: return isSetCcl(); case JSON: return isSetJson(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof findOrInsertCclJson_args) return this.equals((findOrInsertCclJson_args) that); return false; } public boolean equals(findOrInsertCclJson_args that) { if(that == null) return false; boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_json = true && this.isSetJson(); boolean that_present_json = true && that.isSetJson(); if(this_present_json || that_present_json) { if(!(this_present_json && that_present_json)) return false; if(!this.json.equals(that.json)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_json = true && (isSetJson()); list.add(present_json); if(present_json) list.add(json); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findOrInsertCclJson_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetJson()) .compareTo(other.isSetJson()); if(lastComparison != 0) { return lastComparison; } if(isSetJson()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.json, other.json); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("findOrInsertCclJson_args("); boolean first = true; sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("json:"); if(this.json == null) { sb.append("null"); } else { sb.append(this.json); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findOrInsertCclJson_argsStandardSchemeFactory implements SchemeFactory { public findOrInsertCclJson_argsStandardScheme getScheme() { return new findOrInsertCclJson_argsStandardScheme(); } } private static class findOrInsertCclJson_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findOrInsertCclJson_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // JSON if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.json = iprot.readString(); struct.setJsonIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, findOrInsertCclJson_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if(struct.json != null) { oprot.writeFieldBegin(JSON_FIELD_DESC); oprot.writeString(struct.json); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findOrInsertCclJson_argsTupleSchemeFactory implements SchemeFactory { public findOrInsertCclJson_argsTupleScheme getScheme() { return new findOrInsertCclJson_argsTupleScheme(); } } private static class findOrInsertCclJson_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findOrInsertCclJson_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCcl()) { optionals.set(0); } if(struct.isSetJson()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetJson()) { oprot.writeString(struct.json); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findOrInsertCclJson_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(1)) { struct.json = iprot.readString(); struct.setJsonIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findOrInsertCclJson_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "findOrInsertCclJson_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField EX5_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex5", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findOrInsertCclJson_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findOrInsertCclJson_resultTupleSchemeFactory()); } public long success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.DuplicateEntryException ex4; // required public com.cinchapi.concourse.thrift.PermissionException ex5; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"), EX5((short) 5, "ex5"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; case 5: // EX5 return EX5; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX5, new org.apache.thrift.meta_data.FieldMetaData("ex5", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( findOrInsertCclJson_result.class, metaDataMap); } public findOrInsertCclJson_result() {} public findOrInsertCclJson_result(long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.DuplicateEntryException ex4, com.cinchapi.concourse.thrift.PermissionException ex5) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; this.ex5 = ex5; } /** * Performs a deep copy on other. */ public findOrInsertCclJson_result(findOrInsertCclJson_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.DuplicateEntryException( other.ex4); } if(other.isSetEx5()) { this.ex5 = new com.cinchapi.concourse.thrift.PermissionException( other.ex5); } } public findOrInsertCclJson_result deepCopy() { return new findOrInsertCclJson_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = 0; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; this.ex5 = null; } public long getSuccess() { return this.success; } public findOrInsertCclJson_result setSuccess(long success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findOrInsertCclJson_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findOrInsertCclJson_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public findOrInsertCclJson_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.DuplicateEntryException getEx4() { return this.ex4; } public findOrInsertCclJson_result setEx4( com.cinchapi.concourse.thrift.DuplicateEntryException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx5() { return this.ex5; } public findOrInsertCclJson_result setEx5( com.cinchapi.concourse.thrift.PermissionException ex5) { this.ex5 = ex5; return this; } public void unsetEx5() { this.ex5 = null; } /** * Returns true if field ex5 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx5() { return this.ex5 != null; } public void setEx5IsSet(boolean value) { if(!value) { this.ex5 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Long) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.DuplicateEntryException) value); } break; case EX5: if(value == null) { unsetEx5(); } else { setEx5((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); case EX5: return getEx5(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); case EX5: return isSetEx5(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof findOrInsertCclJson_result) return this.equals((findOrInsertCclJson_result) that); return false; } public boolean equals(findOrInsertCclJson_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } boolean this_present_ex5 = true && this.isSetEx5(); boolean that_present_ex5 = true && that.isSetEx5(); if(this_present_ex5 || that_present_ex5) { if(!(this_present_ex5 && that_present_ex5)) return false; if(!this.ex5.equals(that.ex5)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); boolean present_ex5 = true && (isSetEx5()); list.add(present_ex5); if(present_ex5) list.add(ex5); return list.hashCode(); } @Override public int compareTo(findOrInsertCclJson_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx5()) .compareTo(other.isSetEx5()); if(lastComparison != 0) { return lastComparison; } if(isSetEx5()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex5, other.ex5); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("findOrInsertCclJson_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; if(!first) sb.append(", "); sb.append("ex5:"); if(this.ex5 == null) { sb.append("null"); } else { sb.append(this.ex5); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findOrInsertCclJson_resultStandardSchemeFactory implements SchemeFactory { public findOrInsertCclJson_resultStandardScheme getScheme() { return new findOrInsertCclJson_resultStandardScheme(); } } private static class findOrInsertCclJson_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findOrInsertCclJson_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.DuplicateEntryException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // EX5 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex5 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex5.read(iprot); struct.setEx5IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, findOrInsertCclJson_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeI64(struct.success); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } if(struct.ex5 != null) { oprot.writeFieldBegin(EX5_FIELD_DESC); struct.ex5.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findOrInsertCclJson_resultTupleSchemeFactory implements SchemeFactory { public findOrInsertCclJson_resultTupleScheme getScheme() { return new findOrInsertCclJson_resultTupleScheme(); } } private static class findOrInsertCclJson_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findOrInsertCclJson_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } if(struct.isSetEx5()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetSuccess()) { oprot.writeI64(struct.success); } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } if(struct.isSetEx5()) { struct.ex5.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findOrInsertCclJson_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.DuplicateEntryException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } if(incoming.get(5)) { struct.ex5 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex5.read(iprot); struct.setEx5IsSet(true); } } } } public static class sumKeyRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyRecord_argsTupleSchemeFactory()); } public String key; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(sumKeyRecord_args.class, metaDataMap); } public sumKeyRecord_args() {} public sumKeyRecord_args(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyRecord_args(sumKeyRecord_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public sumKeyRecord_args deepCopy() { return new sumKeyRecord_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public sumKeyRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public sumKeyRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public sumKeyRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof sumKeyRecord_args) return this.equals((sumKeyRecord_args) that); return false; } public boolean equals(sumKeyRecord_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("sumKeyRecord_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class sumKeyRecord_argsStandardSchemeFactory implements SchemeFactory { public sumKeyRecord_argsStandardScheme getScheme() { return new sumKeyRecord_argsStandardScheme(); } } private static class sumKeyRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, sumKeyRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyRecord_argsTupleSchemeFactory implements SchemeFactory { public sumKeyRecord_argsTupleScheme getScheme() { return new sumKeyRecord_argsTupleScheme(); } } private static class sumKeyRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class sumKeyRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyRecord_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyRecord_result.class, metaDataMap); } public sumKeyRecord_result() {} public sumKeyRecord_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public sumKeyRecord_result(sumKeyRecord_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public sumKeyRecord_result deepCopy() { return new sumKeyRecord_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 sumKeyRecord_result setSuccess( com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public sumKeyRecord_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyRecord_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public sumKeyRecord_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 sumKeyRecord_result) return this.equals((sumKeyRecord_result) that); return false; } public boolean equals(sumKeyRecord_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(sumKeyRecord_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("sumKeyRecord_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 sumKeyRecord_resultStandardSchemeFactory implements SchemeFactory { public sumKeyRecord_resultStandardScheme getScheme() { return new sumKeyRecord_resultStandardScheme(); } } private static class sumKeyRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, sumKeyRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyRecord_resultTupleSchemeFactory implements SchemeFactory { public sumKeyRecord_resultTupleScheme getScheme() { return new sumKeyRecord_resultTupleScheme(); } } private static class sumKeyRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, sumKeyRecord_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class sumKeyRecordTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyRecordTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyRecordTime_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyRecordTime_args.class, metaDataMap); } public sumKeyRecordTime_args() {} public sumKeyRecordTime_args(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyRecordTime_args(sumKeyRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public sumKeyRecordTime_args deepCopy() { return new sumKeyRecordTime_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public sumKeyRecordTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public sumKeyRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public sumKeyRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public sumKeyRecordTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyRecordTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof sumKeyRecordTime_args) return this.equals((sumKeyRecordTime_args) that); return false; } public boolean equals(sumKeyRecordTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyRecordTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("sumKeyRecordTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class sumKeyRecordTime_argsStandardSchemeFactory implements SchemeFactory { public sumKeyRecordTime_argsStandardScheme getScheme() { return new sumKeyRecordTime_argsStandardScheme(); } } private static class sumKeyRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyRecordTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, sumKeyRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyRecordTime_argsTupleSchemeFactory implements SchemeFactory { public sumKeyRecordTime_argsTupleScheme getScheme() { return new sumKeyRecordTime_argsTupleScheme(); } } private static class sumKeyRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class sumKeyRecordTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyRecordTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyRecordTime_result.class, metaDataMap); } public sumKeyRecordTime_result() {} public sumKeyRecordTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public sumKeyRecordTime_result(sumKeyRecordTime_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public sumKeyRecordTime_result deepCopy() { return new sumKeyRecordTime_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 sumKeyRecordTime_result setSuccess( com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public sumKeyRecordTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyRecordTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public sumKeyRecordTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 sumKeyRecordTime_result) return this.equals((sumKeyRecordTime_result) that); return false; } public boolean equals(sumKeyRecordTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(sumKeyRecordTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("sumKeyRecordTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 sumKeyRecordTime_resultStandardSchemeFactory implements SchemeFactory { public sumKeyRecordTime_resultStandardScheme getScheme() { return new sumKeyRecordTime_resultStandardScheme(); } } private static class sumKeyRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, sumKeyRecordTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyRecordTime_resultTupleSchemeFactory implements SchemeFactory { public sumKeyRecordTime_resultTupleScheme getScheme() { return new sumKeyRecordTime_resultTupleScheme(); } } private static class sumKeyRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, sumKeyRecordTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class sumKeyRecordTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyRecordTimestr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyRecordTimestr_args.class, metaDataMap); } public sumKeyRecordTimestr_args() {} public sumKeyRecordTimestr_args(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyRecordTimestr_args(sumKeyRecordTimestr_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 sumKeyRecordTimestr_args deepCopy() { return new sumKeyRecordTimestr_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 sumKeyRecordTimestr_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 sumKeyRecordTimestr_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 sumKeyRecordTimestr_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 sumKeyRecordTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyRecordTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 sumKeyRecordTimestr_args) return this.equals((sumKeyRecordTimestr_args) that); return false; } public boolean equals(sumKeyRecordTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyRecordTimestr_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("sumKeyRecordTimestr_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 sumKeyRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public sumKeyRecordTimestr_argsStandardScheme getScheme() { return new sumKeyRecordTimestr_argsStandardScheme(); } } private static class sumKeyRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyRecordTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, sumKeyRecordTimestr_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 sumKeyRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public sumKeyRecordTimestr_argsTupleScheme getScheme() { return new sumKeyRecordTimestr_argsTupleScheme(); } } private static class sumKeyRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyRecordTimestr_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, sumKeyRecordTimestr_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 sumKeyRecordTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyRecordTimestr_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyRecordTimestr_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyRecordTimestr_result.class, metaDataMap); } public sumKeyRecordTimestr_result() {} public sumKeyRecordTimestr_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public sumKeyRecordTimestr_result(sumKeyRecordTimestr_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public sumKeyRecordTimestr_result deepCopy() { return new sumKeyRecordTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public sumKeyRecordTimestr_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 sumKeyRecordTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyRecordTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 sumKeyRecordTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public sumKeyRecordTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof sumKeyRecordTimestr_result) return this.equals((sumKeyRecordTimestr_result) that); return false; } public boolean equals(sumKeyRecordTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(sumKeyRecordTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("sumKeyRecordTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 sumKeyRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public sumKeyRecordTimestr_resultStandardScheme getScheme() { return new sumKeyRecordTimestr_resultStandardScheme(); } } private static class sumKeyRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyRecordTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, sumKeyRecordTimestr_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public sumKeyRecordTimestr_resultTupleScheme getScheme() { return new sumKeyRecordTimestr_resultTupleScheme(); } } private static class sumKeyRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class sumKeyRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyRecords_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyRecords_argsTupleSchemeFactory()); } public String key; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyRecords_args.class, metaDataMap); } public sumKeyRecords_args() {} public sumKeyRecords_args(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyRecords_args(sumKeyRecords_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public sumKeyRecords_args deepCopy() { return new sumKeyRecords_args(this); } @Override public void clear() { this.key = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public sumKeyRecords_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public sumKeyRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public sumKeyRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof sumKeyRecords_args) return this.equals((sumKeyRecords_args) that); return false; } public boolean equals(sumKeyRecords_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyRecords_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("sumKeyRecords_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class sumKeyRecords_argsStandardSchemeFactory implements SchemeFactory { public sumKeyRecords_argsStandardScheme getScheme() { return new sumKeyRecords_argsStandardScheme(); } } private static class sumKeyRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2664 = iprot .readListBegin(); struct.records = new ArrayList( _list2664.size); long _elem2665; for (int _i2666 = 0; _i2666 < _list2664.size; ++_i2666) { _elem2665 = iprot.readI64(); struct.records.add(_elem2665); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, sumKeyRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2667 : struct.records) { oprot.writeI64(_iter2667); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyRecords_argsTupleSchemeFactory implements SchemeFactory { public sumKeyRecords_argsTupleScheme getScheme() { return new sumKeyRecords_argsTupleScheme(); } } private static class sumKeyRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2668 : struct.records) { oprot.writeI64(_iter2668); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list2669 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2669.size); long _elem2670; for (int _i2671 = 0; _i2671 < _list2669.size; ++_i2671) { _elem2670 = iprot.readI64(); struct.records.add(_elem2670); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class sumKeyRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyRecords_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyRecords_result.class, metaDataMap); } public sumKeyRecords_result() {} public sumKeyRecords_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public sumKeyRecords_result(sumKeyRecords_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public sumKeyRecords_result deepCopy() { return new sumKeyRecords_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 sumKeyRecords_result setSuccess( com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public sumKeyRecords_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyRecords_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public sumKeyRecords_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 sumKeyRecords_result) return this.equals((sumKeyRecords_result) that); return false; } public boolean equals(sumKeyRecords_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(sumKeyRecords_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("sumKeyRecords_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 sumKeyRecords_resultStandardSchemeFactory implements SchemeFactory { public sumKeyRecords_resultStandardScheme getScheme() { return new sumKeyRecords_resultStandardScheme(); } } private static class sumKeyRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, sumKeyRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyRecords_resultTupleSchemeFactory implements SchemeFactory { public sumKeyRecords_resultTupleScheme getScheme() { return new sumKeyRecords_resultTupleScheme(); } } private static class sumKeyRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, sumKeyRecords_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class sumKeyRecordsTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyRecordsTime_argsTupleSchemeFactory()); } public String key; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyRecordsTime_args.class, metaDataMap); } public sumKeyRecordsTime_args() {} public sumKeyRecordsTime_args(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyRecordsTime_args(sumKeyRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public sumKeyRecordsTime_args deepCopy() { return new sumKeyRecordsTime_args(this); } @Override public void clear() { this.key = null; this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public sumKeyRecordsTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public sumKeyRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public sumKeyRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public sumKeyRecordsTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyRecordsTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof sumKeyRecordsTime_args) return this.equals((sumKeyRecordsTime_args) that); return false; } public boolean equals(sumKeyRecordsTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyRecordsTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("sumKeyRecordsTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class sumKeyRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public sumKeyRecordsTime_argsStandardScheme getScheme() { return new sumKeyRecordsTime_argsStandardScheme(); } } private static class sumKeyRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyRecordsTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2672 = iprot .readListBegin(); struct.records = new ArrayList( _list2672.size); long _elem2673; for (int _i2674 = 0; _i2674 < _list2672.size; ++_i2674) { _elem2673 = iprot.readI64(); struct.records.add(_elem2673); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, sumKeyRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2675 : struct.records) { oprot.writeI64(_iter2675); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public sumKeyRecordsTime_argsTupleScheme getScheme() { return new sumKeyRecordsTime_argsTupleScheme(); } } private static class sumKeyRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2676 : struct.records) { oprot.writeI64(_iter2676); } } } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list2677 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2677.size); long _elem2678; for (int _i2679 = 0; _i2679 < _list2677.size; ++_i2679) { _elem2678 = iprot.readI64(); struct.records.add(_elem2678); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class sumKeyRecordsTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyRecordsTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyRecordsTime_result.class, metaDataMap); } public sumKeyRecordsTime_result() {} public sumKeyRecordsTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public sumKeyRecordsTime_result(sumKeyRecordsTime_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public sumKeyRecordsTime_result deepCopy() { return new sumKeyRecordsTime_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 sumKeyRecordsTime_result setSuccess( com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public sumKeyRecordsTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyRecordsTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public sumKeyRecordsTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 sumKeyRecordsTime_result) return this.equals((sumKeyRecordsTime_result) that); return false; } public boolean equals(sumKeyRecordsTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(sumKeyRecordsTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("sumKeyRecordsTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 sumKeyRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public sumKeyRecordsTime_resultStandardScheme getScheme() { return new sumKeyRecordsTime_resultStandardScheme(); } } private static class sumKeyRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyRecordsTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, sumKeyRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public sumKeyRecordsTime_resultTupleScheme getScheme() { return new sumKeyRecordsTime_resultTupleScheme(); } } private static class sumKeyRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, sumKeyRecordsTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class sumKeyRecordsTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyRecordsTimestr_argsTupleSchemeFactory()); } public String key; // required public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyRecordsTimestr_args.class, metaDataMap); } public sumKeyRecordsTimestr_args() {} public sumKeyRecordsTimestr_args(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyRecordsTimestr_args(sumKeyRecordsTimestr_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public sumKeyRecordsTimestr_args deepCopy() { return new sumKeyRecordsTimestr_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 sumKeyRecordsTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public sumKeyRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public sumKeyRecordsTimestr_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 sumKeyRecordsTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyRecordsTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof sumKeyRecordsTimestr_args) return this.equals((sumKeyRecordsTimestr_args) that); return false; } public boolean equals(sumKeyRecordsTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyRecordsTimestr_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("sumKeyRecordsTimestr_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 sumKeyRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public sumKeyRecordsTimestr_argsStandardScheme getScheme() { return new sumKeyRecordsTimestr_argsStandardScheme(); } } private static class sumKeyRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2680 = iprot .readListBegin(); struct.records = new ArrayList( _list2680.size); long _elem2681; for (int _i2682 = 0; _i2682 < _list2680.size; ++_i2682) { _elem2681 = iprot.readI64(); struct.records.add(_elem2681); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // 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, sumKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2683 : struct.records) { oprot.writeI64(_iter2683); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.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 sumKeyRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public sumKeyRecordsTimestr_argsTupleScheme getScheme() { return new sumKeyRecordsTimestr_argsTupleScheme(); } } private static class sumKeyRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyRecordsTimestr_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 _iter2684 : struct.records) { oprot.writeI64(_iter2684); } } } 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, sumKeyRecordsTimestr_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 _list2685 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2685.size); long _elem2686; for (int _i2687 = 0; _i2687 < _list2685.size; ++_i2687) { _elem2686 = iprot.readI64(); struct.records.add(_elem2686); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.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 sumKeyRecordsTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyRecordsTimestr_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyRecordsTimestr_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyRecordsTimestr_result.class, metaDataMap); } public sumKeyRecordsTimestr_result() {} public sumKeyRecordsTimestr_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public sumKeyRecordsTimestr_result(sumKeyRecordsTimestr_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public sumKeyRecordsTimestr_result deepCopy() { return new sumKeyRecordsTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public sumKeyRecordsTimestr_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 sumKeyRecordsTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyRecordsTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 sumKeyRecordsTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public sumKeyRecordsTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof sumKeyRecordsTimestr_result) return this.equals((sumKeyRecordsTimestr_result) that); return false; } public boolean equals(sumKeyRecordsTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(sumKeyRecordsTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "sumKeyRecordsTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 sumKeyRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public sumKeyRecordsTimestr_resultStandardScheme getScheme() { return new sumKeyRecordsTimestr_resultStandardScheme(); } } private static class sumKeyRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, sumKeyRecordsTimestr_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public sumKeyRecordsTimestr_resultTupleScheme getScheme() { return new sumKeyRecordsTimestr_resultTupleScheme(); } } private static class sumKeyRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class sumKey_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKey_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKey_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKey_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(sumKey_args.class, metaDataMap); } public sumKey_args() {} public sumKey_args(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKey_args(sumKey_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public sumKey_args deepCopy() { return new sumKey_args(this); } @Override public void clear() { this.key = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public sumKey_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public sumKey_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKey_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKey_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof sumKey_args) return this.equals((sumKey_args) that); return false; } public boolean equals(sumKey_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKey_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("sumKey_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class sumKey_argsStandardSchemeFactory implements SchemeFactory { public sumKey_argsStandardScheme getScheme() { return new sumKey_argsStandardScheme(); } } private static class sumKey_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKey_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, sumKey_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKey_argsTupleSchemeFactory implements SchemeFactory { public sumKey_argsTupleScheme getScheme() { return new sumKey_argsTupleScheme(); } } private static class sumKey_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKey_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKey_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class sumKey_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKey_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKey_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKey_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(sumKey_result.class, metaDataMap); } public sumKey_result() {} public sumKey_result(com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public sumKey_result(sumKey_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public sumKey_result deepCopy() { return new sumKey_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 sumKey_result setSuccess( com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public sumKey_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKey_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public sumKey_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 sumKey_result) return this.equals((sumKey_result) that); return false; } public boolean equals(sumKey_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(sumKey_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("sumKey_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 sumKey_resultStandardSchemeFactory implements SchemeFactory { public sumKey_resultStandardScheme getScheme() { return new sumKey_resultStandardScheme(); } } private static class sumKey_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKey_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, sumKey_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKey_resultTupleSchemeFactory implements SchemeFactory { public sumKey_resultTupleScheme getScheme() { return new sumKey_resultTupleScheme(); } } private static class sumKey_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKey_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, sumKey_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class sumKeyTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyTime_argsTupleSchemeFactory()); } public String key; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(sumKeyTime_args.class, metaDataMap); } public sumKeyTime_args() {} public sumKeyTime_args(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyTime_args(sumKeyTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public sumKeyTime_args deepCopy() { return new sumKeyTime_args(this); } @Override public void clear() { this.key = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public sumKeyTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getTimestamp() { return this.timestamp; } public sumKeyTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public sumKeyTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof sumKeyTime_args) return this.equals((sumKeyTime_args) that); return false; } public boolean equals(sumKeyTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("sumKeyTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class sumKeyTime_argsStandardSchemeFactory implements SchemeFactory { public sumKeyTime_argsStandardScheme getScheme() { return new sumKeyTime_argsStandardScheme(); } } private static class sumKeyTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, sumKeyTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyTime_argsTupleSchemeFactory implements SchemeFactory { public sumKeyTime_argsTupleScheme getScheme() { return new sumKeyTime_argsTupleScheme(); } } private static class sumKeyTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class sumKeyTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(sumKeyTime_result.class, metaDataMap); } public sumKeyTime_result() {} public sumKeyTime_result(com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public sumKeyTime_result(sumKeyTime_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public sumKeyTime_result deepCopy() { return new sumKeyTime_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 sumKeyTime_result setSuccess( com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public sumKeyTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public sumKeyTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 sumKeyTime_result) return this.equals((sumKeyTime_result) that); return false; } public boolean equals(sumKeyTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(sumKeyTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("sumKeyTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 sumKeyTime_resultStandardSchemeFactory implements SchemeFactory { public sumKeyTime_resultStandardScheme getScheme() { return new sumKeyTime_resultStandardScheme(); } } private static class sumKeyTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, sumKeyTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyTime_resultTupleSchemeFactory implements SchemeFactory { public sumKeyTime_resultTupleScheme getScheme() { return new sumKeyTime_resultTupleScheme(); } } private static class sumKeyTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, sumKeyTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class sumKeyTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyTimestr_argsTupleSchemeFactory()); } public String key; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyTimestr_args.class, metaDataMap); } public sumKeyTimestr_args() {} public sumKeyTimestr_args(String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyTimestr_args(sumKeyTimestr_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 sumKeyTimestr_args deepCopy() { return new sumKeyTimestr_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 sumKeyTimestr_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 sumKeyTimestr_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 sumKeyTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 sumKeyTimestr_args) return this.equals((sumKeyTimestr_args) that); return false; } public boolean equals(sumKeyTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyTimestr_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("sumKeyTimestr_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 sumKeyTimestr_argsStandardSchemeFactory implements SchemeFactory { public sumKeyTimestr_argsStandardScheme getScheme() { return new sumKeyTimestr_argsStandardScheme(); } } private static class sumKeyTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, sumKeyTimestr_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 sumKeyTimestr_argsTupleSchemeFactory implements SchemeFactory { public sumKeyTimestr_argsTupleScheme getScheme() { return new sumKeyTimestr_argsTupleScheme(); } } private static class sumKeyTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyTimestr_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, sumKeyTimestr_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 sumKeyTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyTimestr_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyTimestr_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyTimestr_result.class, metaDataMap); } public sumKeyTimestr_result() {} public sumKeyTimestr_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public sumKeyTimestr_result(sumKeyTimestr_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public sumKeyTimestr_result deepCopy() { return new sumKeyTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public sumKeyTimestr_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 sumKeyTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 sumKeyTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public sumKeyTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof sumKeyTimestr_result) return this.equals((sumKeyTimestr_result) that); return false; } public boolean equals(sumKeyTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(sumKeyTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("sumKeyTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 sumKeyTimestr_resultStandardSchemeFactory implements SchemeFactory { public sumKeyTimestr_resultStandardScheme getScheme() { return new sumKeyTimestr_resultStandardScheme(); } } private static class sumKeyTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, sumKeyTimestr_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyTimestr_resultTupleSchemeFactory implements SchemeFactory { public sumKeyTimestr_resultTupleScheme getScheme() { return new sumKeyTimestr_resultTupleScheme(); } } private static class sumKeyTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class sumKeyCriteria_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyCriteria_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyCriteria_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyCriteria_args.class, metaDataMap); } public sumKeyCriteria_args() {} public sumKeyCriteria_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyCriteria_args(sumKeyCriteria_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public sumKeyCriteria_args deepCopy() { return new sumKeyCriteria_args(this); } @Override public void clear() { this.key = null; this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public sumKeyCriteria_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public sumKeyCriteria_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public sumKeyCriteria_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyCriteria_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof sumKeyCriteria_args) return this.equals((sumKeyCriteria_args) that); return false; } public boolean equals(sumKeyCriteria_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyCriteria_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("sumKeyCriteria_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class sumKeyCriteria_argsStandardSchemeFactory implements SchemeFactory { public sumKeyCriteria_argsStandardScheme getScheme() { return new sumKeyCriteria_argsStandardScheme(); } } private static class sumKeyCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyCriteria_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, sumKeyCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyCriteria_argsTupleSchemeFactory implements SchemeFactory { public sumKeyCriteria_argsTupleScheme getScheme() { return new sumKeyCriteria_argsTupleScheme(); } } private static class sumKeyCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class sumKeyCriteria_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyCriteria_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyCriteria_result.class, metaDataMap); } public sumKeyCriteria_result() {} public sumKeyCriteria_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public sumKeyCriteria_result(sumKeyCriteria_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public sumKeyCriteria_result deepCopy() { return new sumKeyCriteria_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 sumKeyCriteria_result setSuccess( com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public sumKeyCriteria_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyCriteria_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public sumKeyCriteria_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 sumKeyCriteria_result) return this.equals((sumKeyCriteria_result) that); return false; } public boolean equals(sumKeyCriteria_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(sumKeyCriteria_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("sumKeyCriteria_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 sumKeyCriteria_resultStandardSchemeFactory implements SchemeFactory { public sumKeyCriteria_resultStandardScheme getScheme() { return new sumKeyCriteria_resultStandardScheme(); } } private static class sumKeyCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyCriteria_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, sumKeyCriteria_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyCriteria_resultTupleSchemeFactory implements SchemeFactory { public sumKeyCriteria_resultTupleScheme getScheme() { return new sumKeyCriteria_resultTupleScheme(); } } private static class sumKeyCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, sumKeyCriteria_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class sumKeyCriteriaTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyCriteriaTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyCriteriaTime_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyCriteriaTime_args.class, metaDataMap); } public sumKeyCriteriaTime_args() {} public sumKeyCriteriaTime_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyCriteriaTime_args(sumKeyCriteriaTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public sumKeyCriteriaTime_args deepCopy() { return new sumKeyCriteriaTime_args(this); } @Override public void clear() { this.key = null; this.criteria = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public sumKeyCriteriaTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public sumKeyCriteriaTime_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public long getTimestamp() { return this.timestamp; } public sumKeyCriteriaTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public sumKeyCriteriaTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyCriteriaTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof sumKeyCriteriaTime_args) return this.equals((sumKeyCriteriaTime_args) that); return false; } public boolean equals(sumKeyCriteriaTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyCriteriaTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("sumKeyCriteriaTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class sumKeyCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public sumKeyCriteriaTime_argsStandardScheme getScheme() { return new sumKeyCriteriaTime_argsStandardScheme(); } } private static class sumKeyCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyCriteriaTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, sumKeyCriteriaTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public sumKeyCriteriaTime_argsTupleScheme getScheme() { return new sumKeyCriteriaTime_argsTupleScheme(); } } private static class sumKeyCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class sumKeyCriteriaTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyCriteriaTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyCriteriaTime_result.class, metaDataMap); } public sumKeyCriteriaTime_result() {} public sumKeyCriteriaTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public sumKeyCriteriaTime_result(sumKeyCriteriaTime_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public sumKeyCriteriaTime_result deepCopy() { return new sumKeyCriteriaTime_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 sumKeyCriteriaTime_result setSuccess( com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public sumKeyCriteriaTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyCriteriaTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public sumKeyCriteriaTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 sumKeyCriteriaTime_result) return this.equals((sumKeyCriteriaTime_result) that); return false; } public boolean equals(sumKeyCriteriaTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(sumKeyCriteriaTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("sumKeyCriteriaTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 sumKeyCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public sumKeyCriteriaTime_resultStandardScheme getScheme() { return new sumKeyCriteriaTime_resultStandardScheme(); } } private static class sumKeyCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyCriteriaTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, sumKeyCriteriaTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public sumKeyCriteriaTime_resultTupleScheme getScheme() { return new sumKeyCriteriaTime_resultTupleScheme(); } } private static class sumKeyCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, sumKeyCriteriaTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class sumKeyCriteriaTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyCriteriaTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyCriteriaTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyCriteriaTimestr_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyCriteriaTimestr_args.class, metaDataMap); } public sumKeyCriteriaTimestr_args() {} public sumKeyCriteriaTimestr_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyCriteriaTimestr_args(sumKeyCriteriaTimestr_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 sumKeyCriteriaTimestr_args deepCopy() { return new sumKeyCriteriaTimestr_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 sumKeyCriteriaTimestr_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 sumKeyCriteriaTimestr_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 sumKeyCriteriaTimestr_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 sumKeyCriteriaTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyCriteriaTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyCriteriaTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 sumKeyCriteriaTimestr_args) return this.equals((sumKeyCriteriaTimestr_args) that); return false; } public boolean equals(sumKeyCriteriaTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyCriteriaTimestr_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("sumKeyCriteriaTimestr_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 sumKeyCriteriaTimestr_argsStandardSchemeFactory implements SchemeFactory { public sumKeyCriteriaTimestr_argsStandardScheme getScheme() { return new sumKeyCriteriaTimestr_argsStandardScheme(); } } private static class sumKeyCriteriaTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, sumKeyCriteriaTimestr_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 sumKeyCriteriaTimestr_argsTupleSchemeFactory implements SchemeFactory { public sumKeyCriteriaTimestr_argsTupleScheme getScheme() { return new sumKeyCriteriaTimestr_argsTupleScheme(); } } private static class sumKeyCriteriaTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyCriteriaTimestr_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, sumKeyCriteriaTimestr_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 sumKeyCriteriaTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyCriteriaTimestr_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyCriteriaTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyCriteriaTimestr_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyCriteriaTimestr_result.class, metaDataMap); } public sumKeyCriteriaTimestr_result() {} public sumKeyCriteriaTimestr_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public sumKeyCriteriaTimestr_result( sumKeyCriteriaTimestr_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public sumKeyCriteriaTimestr_result deepCopy() { return new sumKeyCriteriaTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public sumKeyCriteriaTimestr_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 sumKeyCriteriaTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyCriteriaTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 sumKeyCriteriaTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public sumKeyCriteriaTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof sumKeyCriteriaTimestr_result) return this.equals((sumKeyCriteriaTimestr_result) that); return false; } public boolean equals(sumKeyCriteriaTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(sumKeyCriteriaTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "sumKeyCriteriaTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 sumKeyCriteriaTimestr_resultStandardSchemeFactory implements SchemeFactory { public sumKeyCriteriaTimestr_resultStandardScheme getScheme() { return new sumKeyCriteriaTimestr_resultStandardScheme(); } } private static class sumKeyCriteriaTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, sumKeyCriteriaTimestr_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyCriteriaTimestr_resultTupleSchemeFactory implements SchemeFactory { public sumKeyCriteriaTimestr_resultTupleScheme getScheme() { return new sumKeyCriteriaTimestr_resultTupleScheme(); } } private static class sumKeyCriteriaTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class sumKeyCcl_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyCcl_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyCcl_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(sumKeyCcl_args.class, metaDataMap); } public sumKeyCcl_args() {} public sumKeyCcl_args(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyCcl_args(sumKeyCcl_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetCcl()) { this.ccl = other.ccl; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public sumKeyCcl_args deepCopy() { return new sumKeyCcl_args(this); } @Override public void clear() { this.key = null; this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public sumKeyCcl_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public String getCcl() { return this.ccl; } public sumKeyCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public sumKeyCcl_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyCcl_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof sumKeyCcl_args) return this.equals((sumKeyCcl_args) that); return false; } public boolean equals(sumKeyCcl_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyCcl_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("sumKeyCcl_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class sumKeyCcl_argsStandardSchemeFactory implements SchemeFactory { public sumKeyCcl_argsStandardScheme getScheme() { return new sumKeyCcl_argsStandardScheme(); } } private static class sumKeyCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyCcl_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, sumKeyCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyCcl_argsTupleSchemeFactory implements SchemeFactory { public sumKeyCcl_argsTupleScheme getScheme() { return new sumKeyCcl_argsTupleScheme(); } } private static class sumKeyCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class sumKeyCcl_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyCcl_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(sumKeyCcl_result.class, metaDataMap); } public sumKeyCcl_result() {} public sumKeyCcl_result(com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public sumKeyCcl_result(sumKeyCcl_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public sumKeyCcl_result deepCopy() { return new sumKeyCcl_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public sumKeyCcl_result setSuccess( com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public sumKeyCcl_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyCcl_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public sumKeyCcl_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public sumKeyCcl_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof sumKeyCcl_result) return this.equals((sumKeyCcl_result) that); return false; } public boolean equals(sumKeyCcl_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(sumKeyCcl_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("sumKeyCcl_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(success != null) { success.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class sumKeyCcl_resultStandardSchemeFactory implements SchemeFactory { public sumKeyCcl_resultStandardScheme getScheme() { return new sumKeyCcl_resultStandardScheme(); } } private static class sumKeyCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyCcl_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, sumKeyCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyCcl_resultTupleSchemeFactory implements SchemeFactory { public sumKeyCcl_resultTupleScheme getScheme() { return new sumKeyCcl_resultTupleScheme(); } } private static class sumKeyCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class sumKeyCclTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyCclTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyCclTime_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyCclTime_args.class, metaDataMap); } public sumKeyCclTime_args() {} public sumKeyCclTime_args(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyCclTime_args(sumKeyCclTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetCcl()) { this.ccl = other.ccl; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public sumKeyCclTime_args deepCopy() { return new sumKeyCclTime_args(this); } @Override public void clear() { this.key = null; this.ccl = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public sumKeyCclTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public String getCcl() { return this.ccl; } public sumKeyCclTime_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public long getTimestamp() { return this.timestamp; } public sumKeyCclTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public sumKeyCclTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyCclTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof sumKeyCclTime_args) return this.equals((sumKeyCclTime_args) that); return false; } public boolean equals(sumKeyCclTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyCclTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("sumKeyCclTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class sumKeyCclTime_argsStandardSchemeFactory implements SchemeFactory { public sumKeyCclTime_argsStandardScheme getScheme() { return new sumKeyCclTime_argsStandardScheme(); } } private static class sumKeyCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyCclTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, sumKeyCclTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyCclTime_argsTupleSchemeFactory implements SchemeFactory { public sumKeyCclTime_argsTupleScheme getScheme() { return new sumKeyCclTime_argsTupleScheme(); } } private static class sumKeyCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class sumKeyCclTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyCclTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyCclTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyCclTime_result.class, metaDataMap); } public sumKeyCclTime_result() {} public sumKeyCclTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public sumKeyCclTime_result(sumKeyCclTime_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public sumKeyCclTime_result deepCopy() { return new sumKeyCclTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public sumKeyCclTime_result setSuccess( com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public sumKeyCclTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyCclTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public sumKeyCclTime_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public sumKeyCclTime_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof sumKeyCclTime_result) return this.equals((sumKeyCclTime_result) that); return false; } public boolean equals(sumKeyCclTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(sumKeyCclTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("sumKeyCclTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(success != null) { success.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class sumKeyCclTime_resultStandardSchemeFactory implements SchemeFactory { public sumKeyCclTime_resultStandardScheme getScheme() { return new sumKeyCclTime_resultStandardScheme(); } } private static class sumKeyCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyCclTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, sumKeyCclTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyCclTime_resultTupleSchemeFactory implements SchemeFactory { public sumKeyCclTime_resultTupleScheme getScheme() { return new sumKeyCclTime_resultTupleScheme(); } } private static class sumKeyCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class sumKeyCclTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyCclTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyCclTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyCclTimestr_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyCclTimestr_args.class, metaDataMap); } public sumKeyCclTimestr_args() {} public sumKeyCclTimestr_args(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyCclTimestr_args(sumKeyCclTimestr_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 sumKeyCclTimestr_args deepCopy() { return new sumKeyCclTimestr_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 sumKeyCclTimestr_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 sumKeyCclTimestr_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 sumKeyCclTimestr_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 sumKeyCclTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyCclTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyCclTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 sumKeyCclTimestr_args) return this.equals((sumKeyCclTimestr_args) that); return false; } public boolean equals(sumKeyCclTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyCclTimestr_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("sumKeyCclTimestr_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 sumKeyCclTimestr_argsStandardSchemeFactory implements SchemeFactory { public sumKeyCclTimestr_argsStandardScheme getScheme() { return new sumKeyCclTimestr_argsStandardScheme(); } } private static class sumKeyCclTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyCclTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, sumKeyCclTimestr_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 sumKeyCclTimestr_argsTupleSchemeFactory implements SchemeFactory { public sumKeyCclTimestr_argsTupleScheme getScheme() { return new sumKeyCclTimestr_argsTupleScheme(); } } private static class sumKeyCclTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyCclTimestr_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, sumKeyCclTimestr_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 sumKeyCclTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "sumKeyCclTimestr_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyCclTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyCclTimestr_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( sumKeyCclTimestr_result.class, metaDataMap); } public sumKeyCclTimestr_result() {} public sumKeyCclTimestr_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public sumKeyCclTimestr_result(sumKeyCclTimestr_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public sumKeyCclTimestr_result deepCopy() { return new sumKeyCclTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public sumKeyCclTimestr_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 sumKeyCclTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyCclTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 sumKeyCclTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public sumKeyCclTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof sumKeyCclTimestr_result) return this.equals((sumKeyCclTimestr_result) that); return false; } public boolean equals(sumKeyCclTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(sumKeyCclTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("sumKeyCclTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 sumKeyCclTimestr_resultStandardSchemeFactory implements SchemeFactory { public sumKeyCclTimestr_resultStandardScheme getScheme() { return new sumKeyCclTimestr_resultStandardScheme(); } } private static class sumKeyCclTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyCclTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, sumKeyCclTimestr_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyCclTimestr_resultTupleSchemeFactory implements SchemeFactory { public sumKeyCclTimestr_resultTupleScheme getScheme() { return new sumKeyCclTimestr_resultTupleScheme(); } } private static class sumKeyCclTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class averageKeyRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyRecord_argsTupleSchemeFactory()); } public String key; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyRecord_args.class, metaDataMap); } public averageKeyRecord_args() {} public averageKeyRecord_args(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyRecord_args(averageKeyRecord_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public averageKeyRecord_args deepCopy() { return new averageKeyRecord_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public averageKeyRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public averageKeyRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public averageKeyRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof averageKeyRecord_args) return this.equals((averageKeyRecord_args) that); return false; } public boolean equals(averageKeyRecord_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("averageKeyRecord_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class averageKeyRecord_argsStandardSchemeFactory implements SchemeFactory { public averageKeyRecord_argsStandardScheme getScheme() { return new averageKeyRecord_argsStandardScheme(); } } private static class averageKeyRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, averageKeyRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyRecord_argsTupleSchemeFactory implements SchemeFactory { public averageKeyRecord_argsTupleScheme getScheme() { return new averageKeyRecord_argsTupleScheme(); } } private static class averageKeyRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class averageKeyRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyRecord_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyRecord_result.class, metaDataMap); } public averageKeyRecord_result() {} public averageKeyRecord_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public averageKeyRecord_result(averageKeyRecord_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public averageKeyRecord_result deepCopy() { return new averageKeyRecord_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 averageKeyRecord_result setSuccess( com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public averageKeyRecord_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyRecord_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public averageKeyRecord_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 averageKeyRecord_result) return this.equals((averageKeyRecord_result) that); return false; } public boolean equals(averageKeyRecord_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(averageKeyRecord_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("averageKeyRecord_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 averageKeyRecord_resultStandardSchemeFactory implements SchemeFactory { public averageKeyRecord_resultStandardScheme getScheme() { return new averageKeyRecord_resultStandardScheme(); } } private static class averageKeyRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, averageKeyRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyRecord_resultTupleSchemeFactory implements SchemeFactory { public averageKeyRecord_resultTupleScheme getScheme() { return new averageKeyRecord_resultTupleScheme(); } } private static class averageKeyRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, averageKeyRecord_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class averageKeyRecordTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyRecordTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyRecordTime_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyRecordTime_args.class, metaDataMap); } public averageKeyRecordTime_args() {} public averageKeyRecordTime_args(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyRecordTime_args(averageKeyRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public averageKeyRecordTime_args deepCopy() { return new averageKeyRecordTime_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public averageKeyRecordTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public averageKeyRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public averageKeyRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public averageKeyRecordTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyRecordTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof averageKeyRecordTime_args) return this.equals((averageKeyRecordTime_args) that); return false; } public boolean equals(averageKeyRecordTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyRecordTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("averageKeyRecordTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class averageKeyRecordTime_argsStandardSchemeFactory implements SchemeFactory { public averageKeyRecordTime_argsStandardScheme getScheme() { return new averageKeyRecordTime_argsStandardScheme(); } } private static class averageKeyRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyRecordTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, averageKeyRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyRecordTime_argsTupleSchemeFactory implements SchemeFactory { public averageKeyRecordTime_argsTupleScheme getScheme() { return new averageKeyRecordTime_argsTupleScheme(); } } private static class averageKeyRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class averageKeyRecordTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyRecordTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyRecordTime_result.class, metaDataMap); } public averageKeyRecordTime_result() {} public averageKeyRecordTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public averageKeyRecordTime_result(averageKeyRecordTime_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public averageKeyRecordTime_result deepCopy() { return new averageKeyRecordTime_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 averageKeyRecordTime_result setSuccess( com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public averageKeyRecordTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyRecordTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public averageKeyRecordTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 averageKeyRecordTime_result) return this.equals((averageKeyRecordTime_result) that); return false; } public boolean equals(averageKeyRecordTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(averageKeyRecordTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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( "averageKeyRecordTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 averageKeyRecordTime_resultStandardSchemeFactory implements SchemeFactory { public averageKeyRecordTime_resultStandardScheme getScheme() { return new averageKeyRecordTime_resultStandardScheme(); } } private static class averageKeyRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, averageKeyRecordTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyRecordTime_resultTupleSchemeFactory implements SchemeFactory { public averageKeyRecordTime_resultTupleScheme getScheme() { return new averageKeyRecordTime_resultTupleScheme(); } } private static class averageKeyRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, averageKeyRecordTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class averageKeyRecordTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyRecordTimestr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyRecordTimestr_args.class, metaDataMap); } public averageKeyRecordTimestr_args() {} public averageKeyRecordTimestr_args(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyRecordTimestr_args( averageKeyRecordTimestr_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 averageKeyRecordTimestr_args deepCopy() { return new averageKeyRecordTimestr_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 averageKeyRecordTimestr_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 averageKeyRecordTimestr_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 averageKeyRecordTimestr_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 averageKeyRecordTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyRecordTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 averageKeyRecordTimestr_args) return this.equals((averageKeyRecordTimestr_args) that); return false; } public boolean equals(averageKeyRecordTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyRecordTimestr_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( "averageKeyRecordTimestr_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 averageKeyRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public averageKeyRecordTimestr_argsStandardScheme getScheme() { return new averageKeyRecordTimestr_argsStandardScheme(); } } private static class averageKeyRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyRecordTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, averageKeyRecordTimestr_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 averageKeyRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public averageKeyRecordTimestr_argsTupleScheme getScheme() { return new averageKeyRecordTimestr_argsTupleScheme(); } } private static class averageKeyRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyRecordTimestr_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, averageKeyRecordTimestr_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 averageKeyRecordTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyRecordTimestr_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyRecordTimestr_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyRecordTimestr_result.class, metaDataMap); } public averageKeyRecordTimestr_result() {} public averageKeyRecordTimestr_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public averageKeyRecordTimestr_result( averageKeyRecordTimestr_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public averageKeyRecordTimestr_result deepCopy() { return new averageKeyRecordTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public averageKeyRecordTimestr_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 averageKeyRecordTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyRecordTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 averageKeyRecordTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public averageKeyRecordTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof averageKeyRecordTimestr_result) return this.equals((averageKeyRecordTimestr_result) that); return false; } public boolean equals(averageKeyRecordTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(averageKeyRecordTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "averageKeyRecordTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 averageKeyRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public averageKeyRecordTimestr_resultStandardScheme getScheme() { return new averageKeyRecordTimestr_resultStandardScheme(); } } private static class averageKeyRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyRecordTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, averageKeyRecordTimestr_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public averageKeyRecordTimestr_resultTupleScheme getScheme() { return new averageKeyRecordTimestr_resultTupleScheme(); } } private static class averageKeyRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class averageKeyRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyRecords_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyRecords_argsTupleSchemeFactory()); } public String key; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyRecords_args.class, metaDataMap); } public averageKeyRecords_args() {} public averageKeyRecords_args(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyRecords_args(averageKeyRecords_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public averageKeyRecords_args deepCopy() { return new averageKeyRecords_args(this); } @Override public void clear() { this.key = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public averageKeyRecords_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public averageKeyRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public averageKeyRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof averageKeyRecords_args) return this.equals((averageKeyRecords_args) that); return false; } public boolean equals(averageKeyRecords_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyRecords_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("averageKeyRecords_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class averageKeyRecords_argsStandardSchemeFactory implements SchemeFactory { public averageKeyRecords_argsStandardScheme getScheme() { return new averageKeyRecords_argsStandardScheme(); } } private static class averageKeyRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2688 = iprot .readListBegin(); struct.records = new ArrayList( _list2688.size); long _elem2689; for (int _i2690 = 0; _i2690 < _list2688.size; ++_i2690) { _elem2689 = iprot.readI64(); struct.records.add(_elem2689); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, averageKeyRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2691 : struct.records) { oprot.writeI64(_iter2691); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyRecords_argsTupleSchemeFactory implements SchemeFactory { public averageKeyRecords_argsTupleScheme getScheme() { return new averageKeyRecords_argsTupleScheme(); } } private static class averageKeyRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2692 : struct.records) { oprot.writeI64(_iter2692); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list2693 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2693.size); long _elem2694; for (int _i2695 = 0; _i2695 < _list2693.size; ++_i2695) { _elem2694 = iprot.readI64(); struct.records.add(_elem2694); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class averageKeyRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyRecords_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyRecords_result.class, metaDataMap); } public averageKeyRecords_result() {} public averageKeyRecords_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public averageKeyRecords_result(averageKeyRecords_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public averageKeyRecords_result deepCopy() { return new averageKeyRecords_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 averageKeyRecords_result setSuccess( com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public averageKeyRecords_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyRecords_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public averageKeyRecords_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 averageKeyRecords_result) return this.equals((averageKeyRecords_result) that); return false; } public boolean equals(averageKeyRecords_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(averageKeyRecords_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("averageKeyRecords_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 averageKeyRecords_resultStandardSchemeFactory implements SchemeFactory { public averageKeyRecords_resultStandardScheme getScheme() { return new averageKeyRecords_resultStandardScheme(); } } private static class averageKeyRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, averageKeyRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyRecords_resultTupleSchemeFactory implements SchemeFactory { public averageKeyRecords_resultTupleScheme getScheme() { return new averageKeyRecords_resultTupleScheme(); } } private static class averageKeyRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, averageKeyRecords_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class averageKeyRecordsTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyRecordsTime_argsTupleSchemeFactory()); } public String key; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyRecordsTime_args.class, metaDataMap); } public averageKeyRecordsTime_args() {} public averageKeyRecordsTime_args(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyRecordsTime_args(averageKeyRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public averageKeyRecordsTime_args deepCopy() { return new averageKeyRecordsTime_args(this); } @Override public void clear() { this.key = null; this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public averageKeyRecordsTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public averageKeyRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public averageKeyRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public averageKeyRecordsTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyRecordsTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof averageKeyRecordsTime_args) return this.equals((averageKeyRecordsTime_args) that); return false; } public boolean equals(averageKeyRecordsTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyRecordsTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("averageKeyRecordsTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class averageKeyRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public averageKeyRecordsTime_argsStandardScheme getScheme() { return new averageKeyRecordsTime_argsStandardScheme(); } } private static class averageKeyRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyRecordsTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2696 = iprot .readListBegin(); struct.records = new ArrayList( _list2696.size); long _elem2697; for (int _i2698 = 0; _i2698 < _list2696.size; ++_i2698) { _elem2697 = iprot.readI64(); struct.records.add(_elem2697); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, averageKeyRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2699 : struct.records) { oprot.writeI64(_iter2699); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public averageKeyRecordsTime_argsTupleScheme getScheme() { return new averageKeyRecordsTime_argsTupleScheme(); } } private static class averageKeyRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2700 : struct.records) { oprot.writeI64(_iter2700); } } } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list2701 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2701.size); long _elem2702; for (int _i2703 = 0; _i2703 < _list2701.size; ++_i2703) { _elem2702 = iprot.readI64(); struct.records.add(_elem2702); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class averageKeyRecordsTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyRecordsTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyRecordsTime_result.class, metaDataMap); } public averageKeyRecordsTime_result() {} public averageKeyRecordsTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public averageKeyRecordsTime_result( averageKeyRecordsTime_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public averageKeyRecordsTime_result deepCopy() { return new averageKeyRecordsTime_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 averageKeyRecordsTime_result setSuccess( com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public averageKeyRecordsTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyRecordsTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public averageKeyRecordsTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 averageKeyRecordsTime_result) return this.equals((averageKeyRecordsTime_result) that); return false; } public boolean equals(averageKeyRecordsTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(averageKeyRecordsTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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( "averageKeyRecordsTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 averageKeyRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public averageKeyRecordsTime_resultStandardScheme getScheme() { return new averageKeyRecordsTime_resultStandardScheme(); } } private static class averageKeyRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyRecordsTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, averageKeyRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public averageKeyRecordsTime_resultTupleScheme getScheme() { return new averageKeyRecordsTime_resultTupleScheme(); } } private static class averageKeyRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, averageKeyRecordsTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class averageKeyRecordsTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyRecordsTimestr_argsTupleSchemeFactory()); } public String key; // required public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyRecordsTimestr_args.class, metaDataMap); } public averageKeyRecordsTimestr_args() {} public averageKeyRecordsTimestr_args(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyRecordsTimestr_args( averageKeyRecordsTimestr_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public averageKeyRecordsTimestr_args deepCopy() { return new averageKeyRecordsTimestr_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 averageKeyRecordsTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public averageKeyRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public averageKeyRecordsTimestr_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 averageKeyRecordsTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyRecordsTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyRecordsTimestr_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof averageKeyRecordsTimestr_args) return this.equals((averageKeyRecordsTimestr_args) that); return false; } public boolean equals(averageKeyRecordsTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyRecordsTimestr_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( "averageKeyRecordsTimestr_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 averageKeyRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public averageKeyRecordsTimestr_argsStandardScheme getScheme() { return new averageKeyRecordsTimestr_argsStandardScheme(); } } private static class averageKeyRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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 _list2704 = iprot .readListBegin(); struct.records = new ArrayList( _list2704.size); long _elem2705; for (int _i2706 = 0; _i2706 < _list2704.size; ++_i2706) { _elem2705 = iprot.readI64(); struct.records.add(_elem2705); } 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, averageKeyRecordsTimestr_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 _iter2707 : struct.records) { oprot.writeI64(_iter2707); } 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 averageKeyRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public averageKeyRecordsTimestr_argsTupleScheme getScheme() { return new averageKeyRecordsTimestr_argsTupleScheme(); } } private static class averageKeyRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyRecordsTimestr_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 _iter2708 : struct.records) { oprot.writeI64(_iter2708); } } } 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, averageKeyRecordsTimestr_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 _list2709 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2709.size); long _elem2710; for (int _i2711 = 0; _i2711 < _list2709.size; ++_i2711) { _elem2710 = iprot.readI64(); struct.records.add(_elem2710); } } 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 averageKeyRecordsTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyRecordsTimestr_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyRecordsTimestr_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyRecordsTimestr_result.class, metaDataMap); } public averageKeyRecordsTimestr_result() {} public averageKeyRecordsTimestr_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public averageKeyRecordsTimestr_result( averageKeyRecordsTimestr_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public averageKeyRecordsTimestr_result deepCopy() { return new averageKeyRecordsTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public averageKeyRecordsTimestr_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 averageKeyRecordsTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyRecordsTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 averageKeyRecordsTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public averageKeyRecordsTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof averageKeyRecordsTimestr_result) return this.equals((averageKeyRecordsTimestr_result) that); return false; } public boolean equals(averageKeyRecordsTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(averageKeyRecordsTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "averageKeyRecordsTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 averageKeyRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public averageKeyRecordsTimestr_resultStandardScheme getScheme() { return new averageKeyRecordsTimestr_resultStandardScheme(); } } private static class averageKeyRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, averageKeyRecordsTimestr_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public averageKeyRecordsTimestr_resultTupleScheme getScheme() { return new averageKeyRecordsTimestr_resultTupleScheme(); } } private static class averageKeyRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class averageKey_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKey_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKey_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKey_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(averageKey_args.class, metaDataMap); } public averageKey_args() {} public averageKey_args(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKey_args(averageKey_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public averageKey_args deepCopy() { return new averageKey_args(this); } @Override public void clear() { this.key = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public averageKey_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public averageKey_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKey_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKey_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof averageKey_args) return this.equals((averageKey_args) that); return false; } public boolean equals(averageKey_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKey_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("averageKey_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class averageKey_argsStandardSchemeFactory implements SchemeFactory { public averageKey_argsStandardScheme getScheme() { return new averageKey_argsStandardScheme(); } } private static class averageKey_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKey_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, averageKey_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKey_argsTupleSchemeFactory implements SchemeFactory { public averageKey_argsTupleScheme getScheme() { return new averageKey_argsTupleScheme(); } } private static class averageKey_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKey_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetTransaction()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKey_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class averageKey_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKey_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKey_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKey_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(averageKey_result.class, metaDataMap); } public averageKey_result() {} public averageKey_result(com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public averageKey_result(averageKey_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public averageKey_result deepCopy() { return new averageKey_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 averageKey_result setSuccess( com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public averageKey_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKey_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public averageKey_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 averageKey_result) return this.equals((averageKey_result) that); return false; } public boolean equals(averageKey_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(averageKey_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("averageKey_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 averageKey_resultStandardSchemeFactory implements SchemeFactory { public averageKey_resultStandardScheme getScheme() { return new averageKey_resultStandardScheme(); } } private static class averageKey_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKey_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, averageKey_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKey_resultTupleSchemeFactory implements SchemeFactory { public averageKey_resultTupleScheme getScheme() { return new averageKey_resultTupleScheme(); } } private static class averageKey_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKey_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, averageKey_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class averageKeyTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyTime_argsTupleSchemeFactory()); } public String key; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyTime_args.class, metaDataMap); } public averageKeyTime_args() {} public averageKeyTime_args(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyTime_args(averageKeyTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public averageKeyTime_args deepCopy() { return new averageKeyTime_args(this); } @Override public void clear() { this.key = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public averageKeyTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getTimestamp() { return this.timestamp; } public averageKeyTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public averageKeyTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof averageKeyTime_args) return this.equals((averageKeyTime_args) that); return false; } public boolean equals(averageKeyTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("averageKeyTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class averageKeyTime_argsStandardSchemeFactory implements SchemeFactory { public averageKeyTime_argsStandardScheme getScheme() { return new averageKeyTime_argsStandardScheme(); } } private static class averageKeyTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, averageKeyTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyTime_argsTupleSchemeFactory implements SchemeFactory { public averageKeyTime_argsTupleScheme getScheme() { return new averageKeyTime_argsTupleScheme(); } } private static class averageKeyTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetTimestamp()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class averageKeyTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyTime_result.class, metaDataMap); } public averageKeyTime_result() {} public averageKeyTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public averageKeyTime_result(averageKeyTime_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public averageKeyTime_result deepCopy() { return new averageKeyTime_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 averageKeyTime_result setSuccess( com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public averageKeyTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public averageKeyTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 averageKeyTime_result) return this.equals((averageKeyTime_result) that); return false; } public boolean equals(averageKeyTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(averageKeyTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("averageKeyTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 averageKeyTime_resultStandardSchemeFactory implements SchemeFactory { public averageKeyTime_resultStandardScheme getScheme() { return new averageKeyTime_resultStandardScheme(); } } private static class averageKeyTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, averageKeyTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyTime_resultTupleSchemeFactory implements SchemeFactory { public averageKeyTime_resultTupleScheme getScheme() { return new averageKeyTime_resultTupleScheme(); } } private static class averageKeyTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, averageKeyTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class averageKeyTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyTimestr_argsTupleSchemeFactory()); } public String key; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyTimestr_args.class, metaDataMap); } public averageKeyTimestr_args() {} public averageKeyTimestr_args(String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyTimestr_args(averageKeyTimestr_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 averageKeyTimestr_args deepCopy() { return new averageKeyTimestr_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 averageKeyTimestr_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 averageKeyTimestr_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 averageKeyTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 averageKeyTimestr_args) return this.equals((averageKeyTimestr_args) that); return false; } public boolean equals(averageKeyTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyTimestr_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("averageKeyTimestr_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 averageKeyTimestr_argsStandardSchemeFactory implements SchemeFactory { public averageKeyTimestr_argsStandardScheme getScheme() { return new averageKeyTimestr_argsStandardScheme(); } } private static class averageKeyTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, averageKeyTimestr_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 averageKeyTimestr_argsTupleSchemeFactory implements SchemeFactory { public averageKeyTimestr_argsTupleScheme getScheme() { return new averageKeyTimestr_argsTupleScheme(); } } private static class averageKeyTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyTimestr_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, averageKeyTimestr_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 averageKeyTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyTimestr_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyTimestr_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyTimestr_result.class, metaDataMap); } public averageKeyTimestr_result() {} public averageKeyTimestr_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public averageKeyTimestr_result(averageKeyTimestr_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public averageKeyTimestr_result deepCopy() { return new averageKeyTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public averageKeyTimestr_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 averageKeyTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 averageKeyTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public averageKeyTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof averageKeyTimestr_result) return this.equals((averageKeyTimestr_result) that); return false; } public boolean equals(averageKeyTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(averageKeyTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("averageKeyTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 averageKeyTimestr_resultStandardSchemeFactory implements SchemeFactory { public averageKeyTimestr_resultStandardScheme getScheme() { return new averageKeyTimestr_resultStandardScheme(); } } private static class averageKeyTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, averageKeyTimestr_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyTimestr_resultTupleSchemeFactory implements SchemeFactory { public averageKeyTimestr_resultTupleScheme getScheme() { return new averageKeyTimestr_resultTupleScheme(); } } private static class averageKeyTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class averageKeyCriteria_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyCriteria_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyCriteria_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyCriteria_args.class, metaDataMap); } public averageKeyCriteria_args() {} public averageKeyCriteria_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyCriteria_args(averageKeyCriteria_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public averageKeyCriteria_args deepCopy() { return new averageKeyCriteria_args(this); } @Override public void clear() { this.key = null; this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public averageKeyCriteria_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public averageKeyCriteria_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public averageKeyCriteria_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyCriteria_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof averageKeyCriteria_args) return this.equals((averageKeyCriteria_args) that); return false; } public boolean equals(averageKeyCriteria_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyCriteria_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("averageKeyCriteria_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class averageKeyCriteria_argsStandardSchemeFactory implements SchemeFactory { public averageKeyCriteria_argsStandardScheme getScheme() { return new averageKeyCriteria_argsStandardScheme(); } } private static class averageKeyCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyCriteria_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, averageKeyCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyCriteria_argsTupleSchemeFactory implements SchemeFactory { public averageKeyCriteria_argsTupleScheme getScheme() { return new averageKeyCriteria_argsTupleScheme(); } } private static class averageKeyCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class averageKeyCriteria_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyCriteria_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyCriteria_result.class, metaDataMap); } public averageKeyCriteria_result() {} public averageKeyCriteria_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public averageKeyCriteria_result(averageKeyCriteria_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public averageKeyCriteria_result deepCopy() { return new averageKeyCriteria_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 averageKeyCriteria_result setSuccess( com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public averageKeyCriteria_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyCriteria_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public averageKeyCriteria_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 averageKeyCriteria_result) return this.equals((averageKeyCriteria_result) that); return false; } public boolean equals(averageKeyCriteria_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(averageKeyCriteria_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("averageKeyCriteria_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 averageKeyCriteria_resultStandardSchemeFactory implements SchemeFactory { public averageKeyCriteria_resultStandardScheme getScheme() { return new averageKeyCriteria_resultStandardScheme(); } } private static class averageKeyCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyCriteria_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, averageKeyCriteria_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyCriteria_resultTupleSchemeFactory implements SchemeFactory { public averageKeyCriteria_resultTupleScheme getScheme() { return new averageKeyCriteria_resultTupleScheme(); } } private static class averageKeyCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, averageKeyCriteria_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class averageKeyCriteriaTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyCriteriaTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyCriteriaTime_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyCriteriaTime_args.class, metaDataMap); } public averageKeyCriteriaTime_args() {} public averageKeyCriteriaTime_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyCriteriaTime_args(averageKeyCriteriaTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public averageKeyCriteriaTime_args deepCopy() { return new averageKeyCriteriaTime_args(this); } @Override public void clear() { this.key = null; this.criteria = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public averageKeyCriteriaTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public averageKeyCriteriaTime_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public long getTimestamp() { return this.timestamp; } public averageKeyCriteriaTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public averageKeyCriteriaTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyCriteriaTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof averageKeyCriteriaTime_args) return this.equals((averageKeyCriteriaTime_args) that); return false; } public boolean equals(averageKeyCriteriaTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyCriteriaTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "averageKeyCriteriaTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class averageKeyCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public averageKeyCriteriaTime_argsStandardScheme getScheme() { return new averageKeyCriteriaTime_argsStandardScheme(); } } private static class averageKeyCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyCriteriaTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, averageKeyCriteriaTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public averageKeyCriteriaTime_argsTupleScheme getScheme() { return new averageKeyCriteriaTime_argsTupleScheme(); } } private static class averageKeyCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class averageKeyCriteriaTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyCriteriaTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyCriteriaTime_result.class, metaDataMap); } public averageKeyCriteriaTime_result() {} public averageKeyCriteriaTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public averageKeyCriteriaTime_result( averageKeyCriteriaTime_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public averageKeyCriteriaTime_result deepCopy() { return new averageKeyCriteriaTime_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 averageKeyCriteriaTime_result setSuccess( com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public averageKeyCriteriaTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyCriteriaTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public averageKeyCriteriaTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 averageKeyCriteriaTime_result) return this.equals((averageKeyCriteriaTime_result) that); return false; } public boolean equals(averageKeyCriteriaTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(averageKeyCriteriaTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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( "averageKeyCriteriaTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 averageKeyCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public averageKeyCriteriaTime_resultStandardScheme getScheme() { return new averageKeyCriteriaTime_resultStandardScheme(); } } private static class averageKeyCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyCriteriaTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, averageKeyCriteriaTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public averageKeyCriteriaTime_resultTupleScheme getScheme() { return new averageKeyCriteriaTime_resultTupleScheme(); } } private static class averageKeyCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, averageKeyCriteriaTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class averageKeyCriteriaTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyCriteriaTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyCriteriaTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyCriteriaTimestr_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyCriteriaTimestr_args.class, metaDataMap); } public averageKeyCriteriaTimestr_args() {} public averageKeyCriteriaTimestr_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyCriteriaTimestr_args( averageKeyCriteriaTimestr_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 averageKeyCriteriaTimestr_args deepCopy() { return new averageKeyCriteriaTimestr_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 averageKeyCriteriaTimestr_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 averageKeyCriteriaTimestr_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 averageKeyCriteriaTimestr_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 averageKeyCriteriaTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyCriteriaTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyCriteriaTimestr_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 averageKeyCriteriaTimestr_args) return this.equals((averageKeyCriteriaTimestr_args) that); return false; } public boolean equals(averageKeyCriteriaTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyCriteriaTimestr_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( "averageKeyCriteriaTimestr_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 averageKeyCriteriaTimestr_argsStandardSchemeFactory implements SchemeFactory { public averageKeyCriteriaTimestr_argsStandardScheme getScheme() { return new averageKeyCriteriaTimestr_argsStandardScheme(); } } private static class averageKeyCriteriaTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, averageKeyCriteriaTimestr_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 averageKeyCriteriaTimestr_argsTupleSchemeFactory implements SchemeFactory { public averageKeyCriteriaTimestr_argsTupleScheme getScheme() { return new averageKeyCriteriaTimestr_argsTupleScheme(); } } private static class averageKeyCriteriaTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyCriteriaTimestr_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, averageKeyCriteriaTimestr_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 averageKeyCriteriaTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyCriteriaTimestr_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyCriteriaTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyCriteriaTimestr_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyCriteriaTimestr_result.class, metaDataMap); } public averageKeyCriteriaTimestr_result() {} public averageKeyCriteriaTimestr_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public averageKeyCriteriaTimestr_result( averageKeyCriteriaTimestr_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public averageKeyCriteriaTimestr_result deepCopy() { return new averageKeyCriteriaTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public averageKeyCriteriaTimestr_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 averageKeyCriteriaTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyCriteriaTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 averageKeyCriteriaTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public averageKeyCriteriaTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof averageKeyCriteriaTimestr_result) return this.equals((averageKeyCriteriaTimestr_result) that); return false; } public boolean equals(averageKeyCriteriaTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(averageKeyCriteriaTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "averageKeyCriteriaTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 averageKeyCriteriaTimestr_resultStandardSchemeFactory implements SchemeFactory { public averageKeyCriteriaTimestr_resultStandardScheme getScheme() { return new averageKeyCriteriaTimestr_resultStandardScheme(); } } private static class averageKeyCriteriaTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, averageKeyCriteriaTimestr_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyCriteriaTimestr_resultTupleSchemeFactory implements SchemeFactory { public averageKeyCriteriaTimestr_resultTupleScheme getScheme() { return new averageKeyCriteriaTimestr_resultTupleScheme(); } } private static class averageKeyCriteriaTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class averageKeyCcl_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyCcl_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyCcl_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyCcl_args.class, metaDataMap); } public averageKeyCcl_args() {} public averageKeyCcl_args(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyCcl_args(averageKeyCcl_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetCcl()) { this.ccl = other.ccl; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public averageKeyCcl_args deepCopy() { return new averageKeyCcl_args(this); } @Override public void clear() { this.key = null; this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public averageKeyCcl_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public String getCcl() { return this.ccl; } public averageKeyCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public averageKeyCcl_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyCcl_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof averageKeyCcl_args) return this.equals((averageKeyCcl_args) that); return false; } public boolean equals(averageKeyCcl_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyCcl_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("averageKeyCcl_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class averageKeyCcl_argsStandardSchemeFactory implements SchemeFactory { public averageKeyCcl_argsStandardScheme getScheme() { return new averageKeyCcl_argsStandardScheme(); } } private static class averageKeyCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyCcl_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, averageKeyCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyCcl_argsTupleSchemeFactory implements SchemeFactory { public averageKeyCcl_argsTupleScheme getScheme() { return new averageKeyCcl_argsTupleScheme(); } } private static class averageKeyCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class averageKeyCcl_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyCcl_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyCcl_result.class, metaDataMap); } public averageKeyCcl_result() {} public averageKeyCcl_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public averageKeyCcl_result(averageKeyCcl_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public averageKeyCcl_result deepCopy() { return new averageKeyCcl_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public averageKeyCcl_result setSuccess( com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public averageKeyCcl_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyCcl_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public averageKeyCcl_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public averageKeyCcl_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof averageKeyCcl_result) return this.equals((averageKeyCcl_result) that); return false; } public boolean equals(averageKeyCcl_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(averageKeyCcl_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("averageKeyCcl_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(success != null) { success.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class averageKeyCcl_resultStandardSchemeFactory implements SchemeFactory { public averageKeyCcl_resultStandardScheme getScheme() { return new averageKeyCcl_resultStandardScheme(); } } private static class averageKeyCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyCcl_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, averageKeyCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyCcl_resultTupleSchemeFactory implements SchemeFactory { public averageKeyCcl_resultTupleScheme getScheme() { return new averageKeyCcl_resultTupleScheme(); } } private static class averageKeyCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class averageKeyCclTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyCclTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyCclTime_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyCclTime_args.class, metaDataMap); } public averageKeyCclTime_args() {} public averageKeyCclTime_args(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyCclTime_args(averageKeyCclTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetCcl()) { this.ccl = other.ccl; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public averageKeyCclTime_args deepCopy() { return new averageKeyCclTime_args(this); } @Override public void clear() { this.key = null; this.ccl = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public averageKeyCclTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public String getCcl() { return this.ccl; } public averageKeyCclTime_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public long getTimestamp() { return this.timestamp; } public averageKeyCclTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public averageKeyCclTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyCclTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof averageKeyCclTime_args) return this.equals((averageKeyCclTime_args) that); return false; } public boolean equals(averageKeyCclTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyCclTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("averageKeyCclTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class averageKeyCclTime_argsStandardSchemeFactory implements SchemeFactory { public averageKeyCclTime_argsStandardScheme getScheme() { return new averageKeyCclTime_argsStandardScheme(); } } private static class averageKeyCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyCclTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, averageKeyCclTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyCclTime_argsTupleSchemeFactory implements SchemeFactory { public averageKeyCclTime_argsTupleScheme getScheme() { return new averageKeyCclTime_argsTupleScheme(); } } private static class averageKeyCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class averageKeyCclTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyCclTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyCclTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyCclTime_result.class, metaDataMap); } public averageKeyCclTime_result() {} public averageKeyCclTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public averageKeyCclTime_result(averageKeyCclTime_result other) { if(other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject( other.success); } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public averageKeyCclTime_result deepCopy() { return new averageKeyCclTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public averageKeyCclTime_result setSuccess( com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public averageKeyCclTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyCclTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public averageKeyCclTime_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public averageKeyCclTime_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof averageKeyCclTime_result) return this.equals((averageKeyCclTime_result) that); return false; } public boolean equals(averageKeyCclTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(averageKeyCclTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("averageKeyCclTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(success != null) { success.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class averageKeyCclTime_resultStandardSchemeFactory implements SchemeFactory { public averageKeyCclTime_resultStandardScheme getScheme() { return new averageKeyCclTime_resultStandardScheme(); } } private static class averageKeyCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyCclTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, averageKeyCclTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyCclTime_resultTupleSchemeFactory implements SchemeFactory { public averageKeyCclTime_resultTupleScheme getScheme() { return new averageKeyCclTime_resultTupleScheme(); } } private static class averageKeyCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class averageKeyCclTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyCclTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyCclTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyCclTimestr_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyCclTimestr_args.class, metaDataMap); } public averageKeyCclTimestr_args() {} public averageKeyCclTimestr_args(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyCclTimestr_args(averageKeyCclTimestr_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 averageKeyCclTimestr_args deepCopy() { return new averageKeyCclTimestr_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 averageKeyCclTimestr_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 averageKeyCclTimestr_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 averageKeyCclTimestr_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 averageKeyCclTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyCclTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyCclTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 averageKeyCclTimestr_args) return this.equals((averageKeyCclTimestr_args) that); return false; } public boolean equals(averageKeyCclTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyCclTimestr_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("averageKeyCclTimestr_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 averageKeyCclTimestr_argsStandardSchemeFactory implements SchemeFactory { public averageKeyCclTimestr_argsStandardScheme getScheme() { return new averageKeyCclTimestr_argsStandardScheme(); } } private static class averageKeyCclTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyCclTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, averageKeyCclTimestr_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 averageKeyCclTimestr_argsTupleSchemeFactory implements SchemeFactory { public averageKeyCclTimestr_argsTupleScheme getScheme() { return new averageKeyCclTimestr_argsTupleScheme(); } } private static class averageKeyCclTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyCclTimestr_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, averageKeyCclTimestr_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 averageKeyCclTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "averageKeyCclTimestr_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyCclTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyCclTimestr_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( averageKeyCclTimestr_result.class, metaDataMap); } public averageKeyCclTimestr_result() {} public averageKeyCclTimestr_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public averageKeyCclTimestr_result(averageKeyCclTimestr_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public averageKeyCclTimestr_result deepCopy() { return new averageKeyCclTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public averageKeyCclTimestr_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 averageKeyCclTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyCclTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 averageKeyCclTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public averageKeyCclTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof averageKeyCclTimestr_result) return this.equals((averageKeyCclTimestr_result) that); return false; } public boolean equals(averageKeyCclTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(averageKeyCclTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "averageKeyCclTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 averageKeyCclTimestr_resultStandardSchemeFactory implements SchemeFactory { public averageKeyCclTimestr_resultStandardScheme getScheme() { return new averageKeyCclTimestr_resultStandardScheme(); } } private static class averageKeyCclTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyCclTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, averageKeyCclTimestr_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyCclTimestr_resultTupleSchemeFactory implements SchemeFactory { public averageKeyCclTimestr_resultTupleScheme getScheme() { return new averageKeyCclTimestr_resultTupleScheme(); } } private static class averageKeyCclTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class countKeyRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyRecord_argsTupleSchemeFactory()); } public String key; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyRecord_args.class, metaDataMap); } public countKeyRecord_args() {} public countKeyRecord_args(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public countKeyRecord_args(countKeyRecord_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 countKeyRecord_args deepCopy() { return new countKeyRecord_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 countKeyRecord_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 countKeyRecord_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 countKeyRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public countKeyRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public countKeyRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 countKeyRecord_args) return this.equals((countKeyRecord_args) that); return false; } public boolean equals(countKeyRecord_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(countKeyRecord_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("countKeyRecord_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 countKeyRecord_argsStandardSchemeFactory implements SchemeFactory { public countKeyRecord_argsStandardScheme getScheme() { return new countKeyRecord_argsStandardScheme(); } } private static class countKeyRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, countKeyRecord_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 countKeyRecord_argsTupleSchemeFactory implements SchemeFactory { public countKeyRecord_argsTupleScheme getScheme() { return new countKeyRecord_argsTupleScheme(); } } private static class countKeyRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyRecord_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, countKeyRecord_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 countKeyRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyRecord_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyRecord_result.class, metaDataMap); } public countKeyRecord_result() {} public countKeyRecord_result(long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public countKeyRecord_result(countKeyRecord_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.PermissionException( other.ex3); } } public countKeyRecord_result deepCopy() { return new countKeyRecord_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 countKeyRecord_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 countKeyRecord_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public countKeyRecord_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public countKeyRecord_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 countKeyRecord_result) return this.equals((countKeyRecord_result) that); return false; } public boolean equals(countKeyRecord_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(countKeyRecord_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("countKeyRecord_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 countKeyRecord_resultStandardSchemeFactory implements SchemeFactory { public countKeyRecord_resultStandardScheme getScheme() { return new countKeyRecord_resultStandardScheme(); } } private static class countKeyRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, countKeyRecord_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 countKeyRecord_resultTupleSchemeFactory implements SchemeFactory { public countKeyRecord_resultTupleScheme getScheme() { return new countKeyRecord_resultTupleScheme(); } } private static class countKeyRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, countKeyRecord_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class countKeyRecordTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyRecordTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyRecordTime_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyRecordTime_args.class, metaDataMap); } public countKeyRecordTime_args() {} public countKeyRecordTime_args(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public countKeyRecordTime_args(countKeyRecordTime_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 countKeyRecordTime_args deepCopy() { return new countKeyRecordTime_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 countKeyRecordTime_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 countKeyRecordTime_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 countKeyRecordTime_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 countKeyRecordTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public countKeyRecordTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public countKeyRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 countKeyRecordTime_args) return this.equals((countKeyRecordTime_args) that); return false; } public boolean equals(countKeyRecordTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(countKeyRecordTime_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("countKeyRecordTime_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 countKeyRecordTime_argsStandardSchemeFactory implements SchemeFactory { public countKeyRecordTime_argsStandardScheme getScheme() { return new countKeyRecordTime_argsStandardScheme(); } } private static class countKeyRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyRecordTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, countKeyRecordTime_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 countKeyRecordTime_argsTupleSchemeFactory implements SchemeFactory { public countKeyRecordTime_argsTupleScheme getScheme() { return new countKeyRecordTime_argsTupleScheme(); } } private static class countKeyRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyRecordTime_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, countKeyRecordTime_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 countKeyRecordTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyRecordTime_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyRecordTime_result.class, metaDataMap); } public countKeyRecordTime_result() {} public countKeyRecordTime_result(long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public countKeyRecordTime_result(countKeyRecordTime_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.PermissionException( other.ex3); } } public countKeyRecordTime_result deepCopy() { return new countKeyRecordTime_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 countKeyRecordTime_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 countKeyRecordTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public countKeyRecordTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public countKeyRecordTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 countKeyRecordTime_result) return this.equals((countKeyRecordTime_result) that); return false; } public boolean equals(countKeyRecordTime_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(countKeyRecordTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("countKeyRecordTime_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 countKeyRecordTime_resultStandardSchemeFactory implements SchemeFactory { public countKeyRecordTime_resultStandardScheme getScheme() { return new countKeyRecordTime_resultStandardScheme(); } } private static class countKeyRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, countKeyRecordTime_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 countKeyRecordTime_resultTupleSchemeFactory implements SchemeFactory { public countKeyRecordTime_resultTupleScheme getScheme() { return new countKeyRecordTime_resultTupleScheme(); } } private static class countKeyRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, countKeyRecordTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class countKeyRecordTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyRecordTimestr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyRecordTimestr_args.class, metaDataMap); } public countKeyRecordTimestr_args() {} public countKeyRecordTimestr_args(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public countKeyRecordTimestr_args(countKeyRecordTimestr_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 countKeyRecordTimestr_args deepCopy() { return new countKeyRecordTimestr_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 countKeyRecordTimestr_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 countKeyRecordTimestr_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 countKeyRecordTimestr_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 countKeyRecordTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public countKeyRecordTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public countKeyRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 countKeyRecordTimestr_args) return this.equals((countKeyRecordTimestr_args) that); return false; } public boolean equals(countKeyRecordTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(countKeyRecordTimestr_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("countKeyRecordTimestr_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 countKeyRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public countKeyRecordTimestr_argsStandardScheme getScheme() { return new countKeyRecordTimestr_argsStandardScheme(); } } private static class countKeyRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyRecordTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, countKeyRecordTimestr_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 countKeyRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public countKeyRecordTimestr_argsTupleScheme getScheme() { return new countKeyRecordTimestr_argsTupleScheme(); } } private static class countKeyRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyRecordTimestr_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, countKeyRecordTimestr_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 countKeyRecordTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyRecordTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyRecordTimestr_resultTupleSchemeFactory()); } public long success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyRecordTimestr_result.class, metaDataMap); } public countKeyRecordTimestr_result() {} public countKeyRecordTimestr_result(long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public countKeyRecordTimestr_result( countKeyRecordTimestr_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public countKeyRecordTimestr_result deepCopy() { return new countKeyRecordTimestr_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = 0; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public long getSuccess() { return this.success; } public countKeyRecordTimestr_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 countKeyRecordTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public countKeyRecordTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 countKeyRecordTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public countKeyRecordTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Long) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof countKeyRecordTimestr_result) return this.equals((countKeyRecordTimestr_result) that); return false; } public boolean equals(countKeyRecordTimestr_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(countKeyRecordTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "countKeyRecordTimestr_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class countKeyRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public countKeyRecordTimestr_resultStandardScheme getScheme() { return new countKeyRecordTimestr_resultStandardScheme(); } } private static class countKeyRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyRecordTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, countKeyRecordTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeI64(struct.success); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class countKeyRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public countKeyRecordTimestr_resultTupleScheme getScheme() { return new countKeyRecordTimestr_resultTupleScheme(); } } private static class countKeyRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { oprot.writeI64(struct.success); } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, countKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class countKeyRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyRecords_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyRecords_argsTupleSchemeFactory()); } public String key; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyRecords_args.class, metaDataMap); } public countKeyRecords_args() {} public countKeyRecords_args(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public countKeyRecords_args(countKeyRecords_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public countKeyRecords_args deepCopy() { return new countKeyRecords_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 countKeyRecords_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public countKeyRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public countKeyRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public countKeyRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public countKeyRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof countKeyRecords_args) return this.equals((countKeyRecords_args) that); return false; } public boolean equals(countKeyRecords_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(countKeyRecords_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("countKeyRecords_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 countKeyRecords_argsStandardSchemeFactory implements SchemeFactory { public countKeyRecords_argsStandardScheme getScheme() { return new countKeyRecords_argsStandardScheme(); } } private static class countKeyRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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 _list2712 = iprot .readListBegin(); struct.records = new ArrayList( _list2712.size); long _elem2713; for (int _i2714 = 0; _i2714 < _list2712.size; ++_i2714) { _elem2713 = iprot.readI64(); struct.records.add(_elem2713); } 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, countKeyRecords_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 _iter2715 : struct.records) { oprot.writeI64(_iter2715); } 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 countKeyRecords_argsTupleSchemeFactory implements SchemeFactory { public countKeyRecords_argsTupleScheme getScheme() { return new countKeyRecords_argsTupleScheme(); } } private static class countKeyRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyRecords_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 _iter2716 : struct.records) { oprot.writeI64(_iter2716); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, countKeyRecords_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 _list2717 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2717.size); long _elem2718; for (int _i2719 = 0; _i2719 < _list2717.size; ++_i2719) { _elem2718 = iprot.readI64(); struct.records.add(_elem2718); } } 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 countKeyRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyRecords_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyRecords_result.class, metaDataMap); } public countKeyRecords_result() {} public countKeyRecords_result(long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public countKeyRecords_result(countKeyRecords_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.PermissionException( other.ex3); } } public countKeyRecords_result deepCopy() { return new countKeyRecords_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 countKeyRecords_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 countKeyRecords_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public countKeyRecords_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public countKeyRecords_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 countKeyRecords_result) return this.equals((countKeyRecords_result) that); return false; } public boolean equals(countKeyRecords_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(countKeyRecords_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("countKeyRecords_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 countKeyRecords_resultStandardSchemeFactory implements SchemeFactory { public countKeyRecords_resultStandardScheme getScheme() { return new countKeyRecords_resultStandardScheme(); } } private static class countKeyRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, countKeyRecords_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 countKeyRecords_resultTupleSchemeFactory implements SchemeFactory { public countKeyRecords_resultTupleScheme getScheme() { return new countKeyRecords_resultTupleScheme(); } } private static class countKeyRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, countKeyRecords_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class countKeyRecordsTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyRecordsTime_argsTupleSchemeFactory()); } public String key; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyRecordsTime_args.class, metaDataMap); } public countKeyRecordsTime_args() {} public countKeyRecordsTime_args(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public countKeyRecordsTime_args(countKeyRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public countKeyRecordsTime_args deepCopy() { return new countKeyRecordsTime_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 countKeyRecordsTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public countKeyRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public countKeyRecordsTime_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 countKeyRecordsTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public countKeyRecordsTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public countKeyRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof countKeyRecordsTime_args) return this.equals((countKeyRecordsTime_args) that); return false; } public boolean equals(countKeyRecordsTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(countKeyRecordsTime_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("countKeyRecordsTime_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 countKeyRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public countKeyRecordsTime_argsStandardScheme getScheme() { return new countKeyRecordsTime_argsStandardScheme(); } } private static class countKeyRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyRecordsTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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 _list2720 = iprot .readListBegin(); struct.records = new ArrayList( _list2720.size); long _elem2721; for (int _i2722 = 0; _i2722 < _list2720.size; ++_i2722) { _elem2721 = iprot.readI64(); struct.records.add(_elem2721); } 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, countKeyRecordsTime_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 _iter2723 : struct.records) { oprot.writeI64(_iter2723); } 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 countKeyRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public countKeyRecordsTime_argsTupleScheme getScheme() { return new countKeyRecordsTime_argsTupleScheme(); } } private static class countKeyRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyRecordsTime_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 _iter2724 : struct.records) { oprot.writeI64(_iter2724); } } } 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, countKeyRecordsTime_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 _list2725 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2725.size); long _elem2726; for (int _i2727 = 0; _i2727 < _list2725.size; ++_i2727) { _elem2726 = iprot.readI64(); struct.records.add(_elem2726); } } 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 countKeyRecordsTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyRecordsTime_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyRecordsTime_result.class, metaDataMap); } public countKeyRecordsTime_result() {} public countKeyRecordsTime_result(long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public countKeyRecordsTime_result(countKeyRecordsTime_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.PermissionException( other.ex3); } } public countKeyRecordsTime_result deepCopy() { return new countKeyRecordsTime_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 countKeyRecordsTime_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 countKeyRecordsTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public countKeyRecordsTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public countKeyRecordsTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 countKeyRecordsTime_result) return this.equals((countKeyRecordsTime_result) that); return false; } public boolean equals(countKeyRecordsTime_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(countKeyRecordsTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("countKeyRecordsTime_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 countKeyRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public countKeyRecordsTime_resultStandardScheme getScheme() { return new countKeyRecordsTime_resultStandardScheme(); } } private static class countKeyRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyRecordsTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, countKeyRecordsTime_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 countKeyRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public countKeyRecordsTime_resultTupleScheme getScheme() { return new countKeyRecordsTime_resultTupleScheme(); } } private static class countKeyRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, countKeyRecordsTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class countKeyRecordsTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyRecordsTimestr_argsTupleSchemeFactory()); } public String key; // required public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyRecordsTimestr_args.class, metaDataMap); } public countKeyRecordsTimestr_args() {} public countKeyRecordsTimestr_args(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public countKeyRecordsTimestr_args(countKeyRecordsTimestr_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public countKeyRecordsTimestr_args deepCopy() { return new countKeyRecordsTimestr_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 countKeyRecordsTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public countKeyRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public countKeyRecordsTimestr_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 countKeyRecordsTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public countKeyRecordsTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public countKeyRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof countKeyRecordsTimestr_args) return this.equals((countKeyRecordsTimestr_args) that); return false; } public boolean equals(countKeyRecordsTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(countKeyRecordsTimestr_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( "countKeyRecordsTimestr_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 countKeyRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public countKeyRecordsTimestr_argsStandardScheme getScheme() { return new countKeyRecordsTimestr_argsStandardScheme(); } } private static class countKeyRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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 _list2728 = iprot .readListBegin(); struct.records = new ArrayList( _list2728.size); long _elem2729; for (int _i2730 = 0; _i2730 < _list2728.size; ++_i2730) { _elem2729 = iprot.readI64(); struct.records.add(_elem2729); } 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, countKeyRecordsTimestr_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 _iter2731 : struct.records) { oprot.writeI64(_iter2731); } 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 countKeyRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public countKeyRecordsTimestr_argsTupleScheme getScheme() { return new countKeyRecordsTimestr_argsTupleScheme(); } } private static class countKeyRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyRecordsTimestr_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 _iter2732 : struct.records) { oprot.writeI64(_iter2732); } } } 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, countKeyRecordsTimestr_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 _list2733 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2733.size); long _elem2734; for (int _i2735 = 0; _i2735 < _list2733.size; ++_i2735) { _elem2734 = iprot.readI64(); struct.records.add(_elem2734); } } 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 countKeyRecordsTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyRecordsTimestr_resultTupleSchemeFactory()); } public long success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyRecordsTimestr_result.class, metaDataMap); } public countKeyRecordsTimestr_result() {} public countKeyRecordsTimestr_result(long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public countKeyRecordsTimestr_result( countKeyRecordsTimestr_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public countKeyRecordsTimestr_result deepCopy() { return new countKeyRecordsTimestr_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = 0; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public long getSuccess() { return this.success; } public countKeyRecordsTimestr_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 countKeyRecordsTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public countKeyRecordsTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 countKeyRecordsTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public countKeyRecordsTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Long) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof countKeyRecordsTimestr_result) return this.equals((countKeyRecordsTimestr_result) that); return false; } public boolean equals(countKeyRecordsTimestr_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(countKeyRecordsTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "countKeyRecordsTimestr_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class countKeyRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public countKeyRecordsTimestr_resultStandardScheme getScheme() { return new countKeyRecordsTimestr_resultStandardScheme(); } } private static class countKeyRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, countKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeI64(struct.success); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class countKeyRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public countKeyRecordsTimestr_resultTupleScheme getScheme() { return new countKeyRecordsTimestr_resultTupleScheme(); } } private static class countKeyRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { oprot.writeI64(struct.success); } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, countKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class countKey_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKey_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKey_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKey_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(countKey_args.class, metaDataMap); } public countKey_args() {} public countKey_args(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public countKey_args(countKey_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 countKey_args deepCopy() { return new countKey_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 countKey_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 countKey_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public countKey_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public countKey_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 countKey_args) return this.equals((countKey_args) that); return false; } public boolean equals(countKey_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(countKey_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("countKey_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 countKey_argsStandardSchemeFactory implements SchemeFactory { public countKey_argsStandardScheme getScheme() { return new countKey_argsStandardScheme(); } } private static class countKey_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKey_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, countKey_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 countKey_argsTupleSchemeFactory implements SchemeFactory { public countKey_argsTupleScheme getScheme() { return new countKey_argsTupleScheme(); } } private static class countKey_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKey_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, countKey_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 countKey_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKey_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKey_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKey_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(countKey_result.class, metaDataMap); } public countKey_result() {} public countKey_result(long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public countKey_result(countKey_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.PermissionException( other.ex3); } } public countKey_result deepCopy() { return new countKey_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 countKey_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 countKey_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public countKey_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public countKey_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 countKey_result) return this.equals((countKey_result) that); return false; } public boolean equals(countKey_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(countKey_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("countKey_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 countKey_resultStandardSchemeFactory implements SchemeFactory { public countKey_resultStandardScheme getScheme() { return new countKey_resultStandardScheme(); } } private static class countKey_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKey_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, countKey_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 countKey_resultTupleSchemeFactory implements SchemeFactory { public countKey_resultTupleScheme getScheme() { return new countKey_resultTupleScheme(); } } private static class countKey_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKey_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, countKey_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class countKeyTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyTime_argsTupleSchemeFactory()); } public String key; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(countKeyTime_args.class, metaDataMap); } public countKeyTime_args() {} public countKeyTime_args(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public countKeyTime_args(countKeyTime_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 countKeyTime_args deepCopy() { return new countKeyTime_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 countKeyTime_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 countKeyTime_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 countKeyTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public countKeyTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public countKeyTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 countKeyTime_args) return this.equals((countKeyTime_args) that); return false; } public boolean equals(countKeyTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(countKeyTime_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("countKeyTime_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 countKeyTime_argsStandardSchemeFactory implements SchemeFactory { public countKeyTime_argsStandardScheme getScheme() { return new countKeyTime_argsStandardScheme(); } } private static class countKeyTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, countKeyTime_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 countKeyTime_argsTupleSchemeFactory implements SchemeFactory { public countKeyTime_argsTupleScheme getScheme() { return new countKeyTime_argsTupleScheme(); } } private static class countKeyTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyTime_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, countKeyTime_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 countKeyTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyTime_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyTime_result.class, metaDataMap); } public countKeyTime_result() {} public countKeyTime_result(long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public countKeyTime_result(countKeyTime_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.PermissionException( other.ex3); } } public countKeyTime_result deepCopy() { return new countKeyTime_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 countKeyTime_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 countKeyTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public countKeyTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public countKeyTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 countKeyTime_result) return this.equals((countKeyTime_result) that); return false; } public boolean equals(countKeyTime_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(countKeyTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("countKeyTime_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 countKeyTime_resultStandardSchemeFactory implements SchemeFactory { public countKeyTime_resultStandardScheme getScheme() { return new countKeyTime_resultStandardScheme(); } } private static class countKeyTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, countKeyTime_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 countKeyTime_resultTupleSchemeFactory implements SchemeFactory { public countKeyTime_resultTupleScheme getScheme() { return new countKeyTime_resultTupleScheme(); } } private static class countKeyTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, countKeyTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class countKeyTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyTimestr_argsTupleSchemeFactory()); } public String key; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyTimestr_args.class, metaDataMap); } public countKeyTimestr_args() {} public countKeyTimestr_args(String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public countKeyTimestr_args(countKeyTimestr_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 countKeyTimestr_args deepCopy() { return new countKeyTimestr_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 countKeyTimestr_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 countKeyTimestr_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 countKeyTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public countKeyTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public countKeyTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 countKeyTimestr_args) return this.equals((countKeyTimestr_args) that); return false; } public boolean equals(countKeyTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(countKeyTimestr_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("countKeyTimestr_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 countKeyTimestr_argsStandardSchemeFactory implements SchemeFactory { public countKeyTimestr_argsStandardScheme getScheme() { return new countKeyTimestr_argsStandardScheme(); } } private static class countKeyTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, countKeyTimestr_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 countKeyTimestr_argsTupleSchemeFactory implements SchemeFactory { public countKeyTimestr_argsTupleScheme getScheme() { return new countKeyTimestr_argsTupleScheme(); } } private static class countKeyTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyTimestr_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, countKeyTimestr_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 countKeyTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyTimestr_resultTupleSchemeFactory()); } public long success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyTimestr_result.class, metaDataMap); } public countKeyTimestr_result() {} public countKeyTimestr_result(long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public countKeyTimestr_result(countKeyTimestr_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public countKeyTimestr_result deepCopy() { return new countKeyTimestr_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = 0; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public long getSuccess() { return this.success; } public countKeyTimestr_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 countKeyTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public countKeyTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 countKeyTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public countKeyTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Long) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof countKeyTimestr_result) return this.equals((countKeyTimestr_result) that); return false; } public boolean equals(countKeyTimestr_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(countKeyTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("countKeyTimestr_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class countKeyTimestr_resultStandardSchemeFactory implements SchemeFactory { public countKeyTimestr_resultStandardScheme getScheme() { return new countKeyTimestr_resultStandardScheme(); } } private static class countKeyTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, countKeyTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeI64(struct.success); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class countKeyTimestr_resultTupleSchemeFactory implements SchemeFactory { public countKeyTimestr_resultTupleScheme getScheme() { return new countKeyTimestr_resultTupleScheme(); } } private static class countKeyTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { oprot.writeI64(struct.success); } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, countKeyTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class countKeyCriteria_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyCriteria_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyCriteria_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyCriteria_args.class, metaDataMap); } public countKeyCriteria_args() {} public countKeyCriteria_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public countKeyCriteria_args(countKeyCriteria_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 countKeyCriteria_args deepCopy() { return new countKeyCriteria_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 countKeyCriteria_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 countKeyCriteria_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 countKeyCriteria_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public countKeyCriteria_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public countKeyCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 countKeyCriteria_args) return this.equals((countKeyCriteria_args) that); return false; } public boolean equals(countKeyCriteria_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(countKeyCriteria_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("countKeyCriteria_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 countKeyCriteria_argsStandardSchemeFactory implements SchemeFactory { public countKeyCriteria_argsStandardScheme getScheme() { return new countKeyCriteria_argsStandardScheme(); } } private static class countKeyCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyCriteria_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, countKeyCriteria_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 countKeyCriteria_argsTupleSchemeFactory implements SchemeFactory { public countKeyCriteria_argsTupleScheme getScheme() { return new countKeyCriteria_argsTupleScheme(); } } private static class countKeyCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyCriteria_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, countKeyCriteria_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 countKeyCriteria_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyCriteria_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyCriteria_result.class, metaDataMap); } public countKeyCriteria_result() {} public countKeyCriteria_result(long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public countKeyCriteria_result(countKeyCriteria_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.PermissionException( other.ex3); } } public countKeyCriteria_result deepCopy() { return new countKeyCriteria_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 countKeyCriteria_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 countKeyCriteria_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public countKeyCriteria_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public countKeyCriteria_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 countKeyCriteria_result) return this.equals((countKeyCriteria_result) that); return false; } public boolean equals(countKeyCriteria_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(countKeyCriteria_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("countKeyCriteria_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 countKeyCriteria_resultStandardSchemeFactory implements SchemeFactory { public countKeyCriteria_resultStandardScheme getScheme() { return new countKeyCriteria_resultStandardScheme(); } } private static class countKeyCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyCriteria_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, countKeyCriteria_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 countKeyCriteria_resultTupleSchemeFactory implements SchemeFactory { public countKeyCriteria_resultTupleScheme getScheme() { return new countKeyCriteria_resultTupleScheme(); } } private static class countKeyCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, countKeyCriteria_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class countKeyCriteriaTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyCriteriaTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyCriteriaTime_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyCriteriaTime_args.class, metaDataMap); } public countKeyCriteriaTime_args() {} public countKeyCriteriaTime_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public countKeyCriteriaTime_args(countKeyCriteriaTime_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 countKeyCriteriaTime_args deepCopy() { return new countKeyCriteriaTime_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 countKeyCriteriaTime_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 countKeyCriteriaTime_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 countKeyCriteriaTime_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 countKeyCriteriaTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public countKeyCriteriaTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public countKeyCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 countKeyCriteriaTime_args) return this.equals((countKeyCriteriaTime_args) that); return false; } public boolean equals(countKeyCriteriaTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(countKeyCriteriaTime_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("countKeyCriteriaTime_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 countKeyCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public countKeyCriteriaTime_argsStandardScheme getScheme() { return new countKeyCriteriaTime_argsStandardScheme(); } } private static class countKeyCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyCriteriaTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, countKeyCriteriaTime_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 countKeyCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public countKeyCriteriaTime_argsTupleScheme getScheme() { return new countKeyCriteriaTime_argsTupleScheme(); } } private static class countKeyCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyCriteriaTime_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, countKeyCriteriaTime_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 countKeyCriteriaTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyCriteriaTime_resultTupleSchemeFactory()); } public long success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyCriteriaTime_result.class, metaDataMap); } public countKeyCriteriaTime_result() {} public countKeyCriteriaTime_result(long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public countKeyCriteriaTime_result(countKeyCriteriaTime_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public countKeyCriteriaTime_result deepCopy() { return new countKeyCriteriaTime_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = 0; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public long getSuccess() { return this.success; } public countKeyCriteriaTime_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 countKeyCriteriaTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public countKeyCriteriaTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 countKeyCriteriaTime_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public countKeyCriteriaTime_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Long) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof countKeyCriteriaTime_result) return this.equals((countKeyCriteriaTime_result) that); return false; } public boolean equals(countKeyCriteriaTime_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(countKeyCriteriaTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "countKeyCriteriaTime_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class countKeyCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public countKeyCriteriaTime_resultStandardScheme getScheme() { return new countKeyCriteriaTime_resultStandardScheme(); } } private static class countKeyCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyCriteriaTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, countKeyCriteriaTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeI64(struct.success); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class countKeyCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public countKeyCriteriaTime_resultTupleScheme getScheme() { return new countKeyCriteriaTime_resultTupleScheme(); } } private static class countKeyCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { oprot.writeI64(struct.success); } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, countKeyCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class countKeyCriteriaTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyCriteriaTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyCriteriaTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyCriteriaTimestr_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyCriteriaTimestr_args.class, metaDataMap); } public countKeyCriteriaTimestr_args() {} public countKeyCriteriaTimestr_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public countKeyCriteriaTimestr_args( countKeyCriteriaTimestr_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 countKeyCriteriaTimestr_args deepCopy() { return new countKeyCriteriaTimestr_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 countKeyCriteriaTimestr_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 countKeyCriteriaTimestr_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 countKeyCriteriaTimestr_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 countKeyCriteriaTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public countKeyCriteriaTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public countKeyCriteriaTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 countKeyCriteriaTimestr_args) return this.equals((countKeyCriteriaTimestr_args) that); return false; } public boolean equals(countKeyCriteriaTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(countKeyCriteriaTimestr_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( "countKeyCriteriaTimestr_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 countKeyCriteriaTimestr_argsStandardSchemeFactory implements SchemeFactory { public countKeyCriteriaTimestr_argsStandardScheme getScheme() { return new countKeyCriteriaTimestr_argsStandardScheme(); } } private static class countKeyCriteriaTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, countKeyCriteriaTimestr_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 countKeyCriteriaTimestr_argsTupleSchemeFactory implements SchemeFactory { public countKeyCriteriaTimestr_argsTupleScheme getScheme() { return new countKeyCriteriaTimestr_argsTupleScheme(); } } private static class countKeyCriteriaTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyCriteriaTimestr_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, countKeyCriteriaTimestr_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 countKeyCriteriaTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyCriteriaTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyCriteriaTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyCriteriaTimestr_resultTupleSchemeFactory()); } public long success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyCriteriaTimestr_result.class, metaDataMap); } public countKeyCriteriaTimestr_result() {} public countKeyCriteriaTimestr_result(long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public countKeyCriteriaTimestr_result( countKeyCriteriaTimestr_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public countKeyCriteriaTimestr_result deepCopy() { return new countKeyCriteriaTimestr_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = 0; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public long getSuccess() { return this.success; } public countKeyCriteriaTimestr_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 countKeyCriteriaTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public countKeyCriteriaTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 countKeyCriteriaTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public countKeyCriteriaTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Long) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof countKeyCriteriaTimestr_result) return this.equals((countKeyCriteriaTimestr_result) that); return false; } public boolean equals(countKeyCriteriaTimestr_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(countKeyCriteriaTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "countKeyCriteriaTimestr_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class countKeyCriteriaTimestr_resultStandardSchemeFactory implements SchemeFactory { public countKeyCriteriaTimestr_resultStandardScheme getScheme() { return new countKeyCriteriaTimestr_resultStandardScheme(); } } private static class countKeyCriteriaTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, countKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeI64(struct.success); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class countKeyCriteriaTimestr_resultTupleSchemeFactory implements SchemeFactory { public countKeyCriteriaTimestr_resultTupleScheme getScheme() { return new countKeyCriteriaTimestr_resultTupleScheme(); } } private static class countKeyCriteriaTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { oprot.writeI64(struct.success); } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, countKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class countKeyCcl_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyCcl_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyCcl_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(countKeyCcl_args.class, metaDataMap); } public countKeyCcl_args() {} public countKeyCcl_args(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public countKeyCcl_args(countKeyCcl_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 countKeyCcl_args deepCopy() { return new countKeyCcl_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 countKeyCcl_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 countKeyCcl_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 countKeyCcl_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public countKeyCcl_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public countKeyCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 countKeyCcl_args) return this.equals((countKeyCcl_args) that); return false; } public boolean equals(countKeyCcl_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(countKeyCcl_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("countKeyCcl_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 countKeyCcl_argsStandardSchemeFactory implements SchemeFactory { public countKeyCcl_argsStandardScheme getScheme() { return new countKeyCcl_argsStandardScheme(); } } private static class countKeyCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyCcl_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, countKeyCcl_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 countKeyCcl_argsTupleSchemeFactory implements SchemeFactory { public countKeyCcl_argsTupleScheme getScheme() { return new countKeyCcl_argsTupleScheme(); } } private static class countKeyCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyCcl_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, countKeyCcl_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 countKeyCcl_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyCcl_resultTupleSchemeFactory()); } public long success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyCcl_result.class, metaDataMap); } public countKeyCcl_result() {} public countKeyCcl_result(long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public countKeyCcl_result(countKeyCcl_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public countKeyCcl_result deepCopy() { return new countKeyCcl_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = 0; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public long getSuccess() { return this.success; } public countKeyCcl_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 countKeyCcl_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public countKeyCcl_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 countKeyCcl_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public countKeyCcl_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Long) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof countKeyCcl_result) return this.equals((countKeyCcl_result) that); return false; } public boolean equals(countKeyCcl_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(countKeyCcl_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("countKeyCcl_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class countKeyCcl_resultStandardSchemeFactory implements SchemeFactory { public countKeyCcl_resultStandardScheme getScheme() { return new countKeyCcl_resultStandardScheme(); } } private static class countKeyCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyCcl_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, countKeyCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeI64(struct.success); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class countKeyCcl_resultTupleSchemeFactory implements SchemeFactory { public countKeyCcl_resultTupleScheme getScheme() { return new countKeyCcl_resultTupleScheme(); } } private static class countKeyCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { oprot.writeI64(struct.success); } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, countKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class countKeyCclTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyCclTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyCclTime_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyCclTime_args.class, metaDataMap); } public countKeyCclTime_args() {} public countKeyCclTime_args(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public countKeyCclTime_args(countKeyCclTime_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 countKeyCclTime_args deepCopy() { return new countKeyCclTime_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 countKeyCclTime_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 countKeyCclTime_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 countKeyCclTime_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 countKeyCclTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public countKeyCclTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public countKeyCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 countKeyCclTime_args) return this.equals((countKeyCclTime_args) that); return false; } public boolean equals(countKeyCclTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(countKeyCclTime_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("countKeyCclTime_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 countKeyCclTime_argsStandardSchemeFactory implements SchemeFactory { public countKeyCclTime_argsStandardScheme getScheme() { return new countKeyCclTime_argsStandardScheme(); } } private static class countKeyCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyCclTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, countKeyCclTime_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 countKeyCclTime_argsTupleSchemeFactory implements SchemeFactory { public countKeyCclTime_argsTupleScheme getScheme() { return new countKeyCclTime_argsTupleScheme(); } } private static class countKeyCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyCclTime_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, countKeyCclTime_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 countKeyCclTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyCclTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyCclTime_resultTupleSchemeFactory()); } public long success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyCclTime_result.class, metaDataMap); } public countKeyCclTime_result() {} public countKeyCclTime_result(long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public countKeyCclTime_result(countKeyCclTime_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public countKeyCclTime_result deepCopy() { return new countKeyCclTime_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = 0; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public long getSuccess() { return this.success; } public countKeyCclTime_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 countKeyCclTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public countKeyCclTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 countKeyCclTime_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public countKeyCclTime_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Long) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof countKeyCclTime_result) return this.equals((countKeyCclTime_result) that); return false; } public boolean equals(countKeyCclTime_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(countKeyCclTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("countKeyCclTime_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class countKeyCclTime_resultStandardSchemeFactory implements SchemeFactory { public countKeyCclTime_resultStandardScheme getScheme() { return new countKeyCclTime_resultStandardScheme(); } } private static class countKeyCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyCclTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, countKeyCclTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeI64(struct.success); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class countKeyCclTime_resultTupleSchemeFactory implements SchemeFactory { public countKeyCclTime_resultTupleScheme getScheme() { return new countKeyCclTime_resultTupleScheme(); } } private static class countKeyCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { oprot.writeI64(struct.success); } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, countKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class countKeyCclTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyCclTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyCclTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyCclTimestr_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyCclTimestr_args.class, metaDataMap); } public countKeyCclTimestr_args() {} public countKeyCclTimestr_args(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public countKeyCclTimestr_args(countKeyCclTimestr_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 countKeyCclTimestr_args deepCopy() { return new countKeyCclTimestr_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 countKeyCclTimestr_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 countKeyCclTimestr_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 countKeyCclTimestr_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 countKeyCclTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public countKeyCclTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public countKeyCclTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 countKeyCclTimestr_args) return this.equals((countKeyCclTimestr_args) that); return false; } public boolean equals(countKeyCclTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(countKeyCclTimestr_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("countKeyCclTimestr_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 countKeyCclTimestr_argsStandardSchemeFactory implements SchemeFactory { public countKeyCclTimestr_argsStandardScheme getScheme() { return new countKeyCclTimestr_argsStandardScheme(); } } private static class countKeyCclTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyCclTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, countKeyCclTimestr_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 countKeyCclTimestr_argsTupleSchemeFactory implements SchemeFactory { public countKeyCclTimestr_argsTupleScheme getScheme() { return new countKeyCclTimestr_argsTupleScheme(); } } private static class countKeyCclTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyCclTimestr_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, countKeyCclTimestr_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 countKeyCclTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "countKeyCclTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new countKeyCclTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new countKeyCclTimestr_resultTupleSchemeFactory()); } public long success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( countKeyCclTimestr_result.class, metaDataMap); } public countKeyCclTimestr_result() {} public countKeyCclTimestr_result(long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public countKeyCclTimestr_result(countKeyCclTimestr_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public countKeyCclTimestr_result deepCopy() { return new countKeyCclTimestr_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = 0; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public long getSuccess() { return this.success; } public countKeyCclTimestr_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 countKeyCclTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public countKeyCclTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 countKeyCclTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public countKeyCclTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Long) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof countKeyCclTimestr_result) return this.equals((countKeyCclTimestr_result) that); return false; } public boolean equals(countKeyCclTimestr_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(countKeyCclTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("countKeyCclTimestr_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class countKeyCclTimestr_resultStandardSchemeFactory implements SchemeFactory { public countKeyCclTimestr_resultStandardScheme getScheme() { return new countKeyCclTimestr_resultStandardScheme(); } } private static class countKeyCclTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, countKeyCclTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, countKeyCclTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeI64(struct.success); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class countKeyCclTimestr_resultTupleSchemeFactory implements SchemeFactory { public countKeyCclTimestr_resultTupleScheme getScheme() { return new countKeyCclTimestr_resultTupleScheme(); } } private static class countKeyCclTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, countKeyCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { oprot.writeI64(struct.success); } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, countKeyCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class maxKeyRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyRecord_argsTupleSchemeFactory()); } public String key; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(maxKeyRecord_args.class, metaDataMap); } public maxKeyRecord_args() {} public maxKeyRecord_args(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public maxKeyRecord_args(maxKeyRecord_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 maxKeyRecord_args deepCopy() { return new maxKeyRecord_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 maxKeyRecord_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 maxKeyRecord_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 maxKeyRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public maxKeyRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public maxKeyRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 maxKeyRecord_args) return this.equals((maxKeyRecord_args) that); return false; } public boolean equals(maxKeyRecord_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(maxKeyRecord_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("maxKeyRecord_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 maxKeyRecord_argsStandardSchemeFactory implements SchemeFactory { public maxKeyRecord_argsStandardScheme getScheme() { return new maxKeyRecord_argsStandardScheme(); } } private static class maxKeyRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, maxKeyRecord_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 maxKeyRecord_argsTupleSchemeFactory implements SchemeFactory { public maxKeyRecord_argsTupleScheme getScheme() { return new maxKeyRecord_argsTupleScheme(); } } private static class maxKeyRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyRecord_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, maxKeyRecord_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 maxKeyRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyRecord_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyRecord_result.class, metaDataMap); } public maxKeyRecord_result() {} public maxKeyRecord_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public maxKeyRecord_result(maxKeyRecord_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.PermissionException( other.ex3); } } public maxKeyRecord_result deepCopy() { return new maxKeyRecord_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 maxKeyRecord_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 maxKeyRecord_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public maxKeyRecord_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public maxKeyRecord_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 maxKeyRecord_result) return this.equals((maxKeyRecord_result) that); return false; } public boolean equals(maxKeyRecord_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(maxKeyRecord_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("maxKeyRecord_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.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 maxKeyRecord_resultStandardSchemeFactory implements SchemeFactory { public maxKeyRecord_resultStandardScheme getScheme() { return new maxKeyRecord_resultStandardScheme(); } } private static class maxKeyRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, maxKeyRecord_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 maxKeyRecord_resultTupleSchemeFactory implements SchemeFactory { public maxKeyRecord_resultTupleScheme getScheme() { return new maxKeyRecord_resultTupleScheme(); } } private static class maxKeyRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, maxKeyRecord_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class maxKeyRecordTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyRecordTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyRecordTime_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyRecordTime_args.class, metaDataMap); } public maxKeyRecordTime_args() {} public maxKeyRecordTime_args(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public maxKeyRecordTime_args(maxKeyRecordTime_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 maxKeyRecordTime_args deepCopy() { return new maxKeyRecordTime_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 maxKeyRecordTime_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 maxKeyRecordTime_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 maxKeyRecordTime_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 maxKeyRecordTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public maxKeyRecordTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public maxKeyRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 maxKeyRecordTime_args) return this.equals((maxKeyRecordTime_args) that); return false; } public boolean equals(maxKeyRecordTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(maxKeyRecordTime_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("maxKeyRecordTime_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 maxKeyRecordTime_argsStandardSchemeFactory implements SchemeFactory { public maxKeyRecordTime_argsStandardScheme getScheme() { return new maxKeyRecordTime_argsStandardScheme(); } } private static class maxKeyRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyRecordTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, maxKeyRecordTime_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 maxKeyRecordTime_argsTupleSchemeFactory implements SchemeFactory { public maxKeyRecordTime_argsTupleScheme getScheme() { return new maxKeyRecordTime_argsTupleScheme(); } } private static class maxKeyRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyRecordTime_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, maxKeyRecordTime_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 maxKeyRecordTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyRecordTime_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyRecordTime_result.class, metaDataMap); } public maxKeyRecordTime_result() {} public maxKeyRecordTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public maxKeyRecordTime_result(maxKeyRecordTime_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.PermissionException( other.ex3); } } public maxKeyRecordTime_result deepCopy() { return new maxKeyRecordTime_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 maxKeyRecordTime_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 maxKeyRecordTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public maxKeyRecordTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public maxKeyRecordTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 maxKeyRecordTime_result) return this.equals((maxKeyRecordTime_result) that); return false; } public boolean equals(maxKeyRecordTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(maxKeyRecordTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("maxKeyRecordTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.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 maxKeyRecordTime_resultStandardSchemeFactory implements SchemeFactory { public maxKeyRecordTime_resultStandardScheme getScheme() { return new maxKeyRecordTime_resultStandardScheme(); } } private static class maxKeyRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, maxKeyRecordTime_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 maxKeyRecordTime_resultTupleSchemeFactory implements SchemeFactory { public maxKeyRecordTime_resultTupleScheme getScheme() { return new maxKeyRecordTime_resultTupleScheme(); } } private static class maxKeyRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, maxKeyRecordTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class maxKeyRecordTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyRecordTimestr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyRecordTimestr_args.class, metaDataMap); } public maxKeyRecordTimestr_args() {} public maxKeyRecordTimestr_args(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public maxKeyRecordTimestr_args(maxKeyRecordTimestr_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 maxKeyRecordTimestr_args deepCopy() { return new maxKeyRecordTimestr_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 maxKeyRecordTimestr_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 maxKeyRecordTimestr_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 maxKeyRecordTimestr_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 maxKeyRecordTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public maxKeyRecordTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public maxKeyRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 maxKeyRecordTimestr_args) return this.equals((maxKeyRecordTimestr_args) that); return false; } public boolean equals(maxKeyRecordTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(maxKeyRecordTimestr_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("maxKeyRecordTimestr_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 maxKeyRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public maxKeyRecordTimestr_argsStandardScheme getScheme() { return new maxKeyRecordTimestr_argsStandardScheme(); } } private static class maxKeyRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyRecordTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, maxKeyRecordTimestr_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 maxKeyRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public maxKeyRecordTimestr_argsTupleScheme getScheme() { return new maxKeyRecordTimestr_argsTupleScheme(); } } private static class maxKeyRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyRecordTimestr_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, maxKeyRecordTimestr_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 maxKeyRecordTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyRecordTimestr_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyRecordTimestr_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyRecordTimestr_result.class, metaDataMap); } public maxKeyRecordTimestr_result() {} public maxKeyRecordTimestr_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public maxKeyRecordTimestr_result(maxKeyRecordTimestr_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public maxKeyRecordTimestr_result deepCopy() { return new maxKeyRecordTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public maxKeyRecordTimestr_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 maxKeyRecordTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public maxKeyRecordTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 maxKeyRecordTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public maxKeyRecordTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof maxKeyRecordTimestr_result) return this.equals((maxKeyRecordTimestr_result) that); return false; } public boolean equals(maxKeyRecordTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(maxKeyRecordTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("maxKeyRecordTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 maxKeyRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public maxKeyRecordTimestr_resultStandardScheme getScheme() { return new maxKeyRecordTimestr_resultStandardScheme(); } } private static class maxKeyRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyRecordTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, maxKeyRecordTimestr_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class maxKeyRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public maxKeyRecordTimestr_resultTupleScheme getScheme() { return new maxKeyRecordTimestr_resultTupleScheme(); } } private static class maxKeyRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, maxKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class maxKeyRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyRecords_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyRecords_argsTupleSchemeFactory()); } public String key; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyRecords_args.class, metaDataMap); } public maxKeyRecords_args() {} public maxKeyRecords_args(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public maxKeyRecords_args(maxKeyRecords_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public maxKeyRecords_args deepCopy() { return new maxKeyRecords_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 maxKeyRecords_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public maxKeyRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public maxKeyRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public maxKeyRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public maxKeyRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof maxKeyRecords_args) return this.equals((maxKeyRecords_args) that); return false; } public boolean equals(maxKeyRecords_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(maxKeyRecords_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("maxKeyRecords_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 maxKeyRecords_argsStandardSchemeFactory implements SchemeFactory { public maxKeyRecords_argsStandardScheme getScheme() { return new maxKeyRecords_argsStandardScheme(); } } private static class maxKeyRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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 _list2736 = iprot .readListBegin(); struct.records = new ArrayList( _list2736.size); long _elem2737; for (int _i2738 = 0; _i2738 < _list2736.size; ++_i2738) { _elem2737 = iprot.readI64(); struct.records.add(_elem2737); } 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, maxKeyRecords_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 _iter2739 : struct.records) { oprot.writeI64(_iter2739); } 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 maxKeyRecords_argsTupleSchemeFactory implements SchemeFactory { public maxKeyRecords_argsTupleScheme getScheme() { return new maxKeyRecords_argsTupleScheme(); } } private static class maxKeyRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyRecords_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 _iter2740 : struct.records) { oprot.writeI64(_iter2740); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, maxKeyRecords_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 _list2741 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2741.size); long _elem2742; for (int _i2743 = 0; _i2743 < _list2741.size; ++_i2743) { _elem2742 = iprot.readI64(); struct.records.add(_elem2742); } } 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 maxKeyRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyRecords_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyRecords_result.class, metaDataMap); } public maxKeyRecords_result() {} public maxKeyRecords_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public maxKeyRecords_result(maxKeyRecords_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.PermissionException( other.ex3); } } public maxKeyRecords_result deepCopy() { return new maxKeyRecords_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 maxKeyRecords_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 maxKeyRecords_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public maxKeyRecords_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public maxKeyRecords_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 maxKeyRecords_result) return this.equals((maxKeyRecords_result) that); return false; } public boolean equals(maxKeyRecords_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(maxKeyRecords_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("maxKeyRecords_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.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 maxKeyRecords_resultStandardSchemeFactory implements SchemeFactory { public maxKeyRecords_resultStandardScheme getScheme() { return new maxKeyRecords_resultStandardScheme(); } } private static class maxKeyRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, maxKeyRecords_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 maxKeyRecords_resultTupleSchemeFactory implements SchemeFactory { public maxKeyRecords_resultTupleScheme getScheme() { return new maxKeyRecords_resultTupleScheme(); } } private static class maxKeyRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, maxKeyRecords_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class maxKeyRecordsTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyRecordsTime_argsTupleSchemeFactory()); } public String key; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyRecordsTime_args.class, metaDataMap); } public maxKeyRecordsTime_args() {} public maxKeyRecordsTime_args(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public maxKeyRecordsTime_args(maxKeyRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public maxKeyRecordsTime_args deepCopy() { return new maxKeyRecordsTime_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 maxKeyRecordsTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public maxKeyRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public maxKeyRecordsTime_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 maxKeyRecordsTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public maxKeyRecordsTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public maxKeyRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof maxKeyRecordsTime_args) return this.equals((maxKeyRecordsTime_args) that); return false; } public boolean equals(maxKeyRecordsTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(maxKeyRecordsTime_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("maxKeyRecordsTime_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 maxKeyRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public maxKeyRecordsTime_argsStandardScheme getScheme() { return new maxKeyRecordsTime_argsStandardScheme(); } } private static class maxKeyRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyRecordsTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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 _list2744 = iprot .readListBegin(); struct.records = new ArrayList( _list2744.size); long _elem2745; for (int _i2746 = 0; _i2746 < _list2744.size; ++_i2746) { _elem2745 = iprot.readI64(); struct.records.add(_elem2745); } 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, maxKeyRecordsTime_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 _iter2747 : struct.records) { oprot.writeI64(_iter2747); } 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 maxKeyRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public maxKeyRecordsTime_argsTupleScheme getScheme() { return new maxKeyRecordsTime_argsTupleScheme(); } } private static class maxKeyRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyRecordsTime_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 _iter2748 : struct.records) { oprot.writeI64(_iter2748); } } } 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, maxKeyRecordsTime_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 _list2749 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2749.size); long _elem2750; for (int _i2751 = 0; _i2751 < _list2749.size; ++_i2751) { _elem2750 = iprot.readI64(); struct.records.add(_elem2750); } } 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 maxKeyRecordsTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyRecordsTime_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyRecordsTime_result.class, metaDataMap); } public maxKeyRecordsTime_result() {} public maxKeyRecordsTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public maxKeyRecordsTime_result(maxKeyRecordsTime_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.PermissionException( other.ex3); } } public maxKeyRecordsTime_result deepCopy() { return new maxKeyRecordsTime_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 maxKeyRecordsTime_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 maxKeyRecordsTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public maxKeyRecordsTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public maxKeyRecordsTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 maxKeyRecordsTime_result) return this.equals((maxKeyRecordsTime_result) that); return false; } public boolean equals(maxKeyRecordsTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(maxKeyRecordsTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("maxKeyRecordsTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.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 maxKeyRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public maxKeyRecordsTime_resultStandardScheme getScheme() { return new maxKeyRecordsTime_resultStandardScheme(); } } private static class maxKeyRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyRecordsTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, maxKeyRecordsTime_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 maxKeyRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public maxKeyRecordsTime_resultTupleScheme getScheme() { return new maxKeyRecordsTime_resultTupleScheme(); } } private static class maxKeyRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, maxKeyRecordsTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class maxKeyRecordsTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyRecordsTimestr_argsTupleSchemeFactory()); } public String key; // required public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyRecordsTimestr_args.class, metaDataMap); } public maxKeyRecordsTimestr_args() {} public maxKeyRecordsTimestr_args(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public maxKeyRecordsTimestr_args(maxKeyRecordsTimestr_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public maxKeyRecordsTimestr_args deepCopy() { return new maxKeyRecordsTimestr_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 maxKeyRecordsTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public maxKeyRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public maxKeyRecordsTimestr_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 maxKeyRecordsTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public maxKeyRecordsTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public maxKeyRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof maxKeyRecordsTimestr_args) return this.equals((maxKeyRecordsTimestr_args) that); return false; } public boolean equals(maxKeyRecordsTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(maxKeyRecordsTimestr_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("maxKeyRecordsTimestr_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 maxKeyRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public maxKeyRecordsTimestr_argsStandardScheme getScheme() { return new maxKeyRecordsTimestr_argsStandardScheme(); } } private static class maxKeyRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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 _list2752 = iprot .readListBegin(); struct.records = new ArrayList( _list2752.size); long _elem2753; for (int _i2754 = 0; _i2754 < _list2752.size; ++_i2754) { _elem2753 = iprot.readI64(); struct.records.add(_elem2753); } 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, maxKeyRecordsTimestr_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 _iter2755 : struct.records) { oprot.writeI64(_iter2755); } 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 maxKeyRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public maxKeyRecordsTimestr_argsTupleScheme getScheme() { return new maxKeyRecordsTimestr_argsTupleScheme(); } } private static class maxKeyRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyRecordsTimestr_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 _iter2756 : struct.records) { oprot.writeI64(_iter2756); } } } 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, maxKeyRecordsTimestr_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 _list2757 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2757.size); long _elem2758; for (int _i2759 = 0; _i2759 < _list2757.size; ++_i2759) { _elem2758 = iprot.readI64(); struct.records.add(_elem2758); } } 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 maxKeyRecordsTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyRecordsTimestr_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyRecordsTimestr_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyRecordsTimestr_result.class, metaDataMap); } public maxKeyRecordsTimestr_result() {} public maxKeyRecordsTimestr_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public maxKeyRecordsTimestr_result(maxKeyRecordsTimestr_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public maxKeyRecordsTimestr_result deepCopy() { return new maxKeyRecordsTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public maxKeyRecordsTimestr_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 maxKeyRecordsTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public maxKeyRecordsTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 maxKeyRecordsTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public maxKeyRecordsTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof maxKeyRecordsTimestr_result) return this.equals((maxKeyRecordsTimestr_result) that); return false; } public boolean equals(maxKeyRecordsTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(maxKeyRecordsTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "maxKeyRecordsTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 maxKeyRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public maxKeyRecordsTimestr_resultStandardScheme getScheme() { return new maxKeyRecordsTimestr_resultStandardScheme(); } } private static class maxKeyRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, maxKeyRecordsTimestr_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class maxKeyRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public maxKeyRecordsTimestr_resultTupleScheme getScheme() { return new maxKeyRecordsTimestr_resultTupleScheme(); } } private static class maxKeyRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, maxKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class maxKeyCriteria_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyCriteria_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyCriteria_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyCriteria_args.class, metaDataMap); } public maxKeyCriteria_args() {} public maxKeyCriteria_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public maxKeyCriteria_args(maxKeyCriteria_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 maxKeyCriteria_args deepCopy() { return new maxKeyCriteria_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 maxKeyCriteria_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 maxKeyCriteria_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 maxKeyCriteria_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public maxKeyCriteria_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public maxKeyCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 maxKeyCriteria_args) return this.equals((maxKeyCriteria_args) that); return false; } public boolean equals(maxKeyCriteria_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(maxKeyCriteria_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("maxKeyCriteria_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 maxKeyCriteria_argsStandardSchemeFactory implements SchemeFactory { public maxKeyCriteria_argsStandardScheme getScheme() { return new maxKeyCriteria_argsStandardScheme(); } } private static class maxKeyCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyCriteria_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, maxKeyCriteria_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 maxKeyCriteria_argsTupleSchemeFactory implements SchemeFactory { public maxKeyCriteria_argsTupleScheme getScheme() { return new maxKeyCriteria_argsTupleScheme(); } } private static class maxKeyCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyCriteria_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, maxKeyCriteria_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 maxKeyCriteria_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyCriteria_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyCriteria_result.class, metaDataMap); } public maxKeyCriteria_result() {} public maxKeyCriteria_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public maxKeyCriteria_result(maxKeyCriteria_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.PermissionException( other.ex3); } } public maxKeyCriteria_result deepCopy() { return new maxKeyCriteria_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 maxKeyCriteria_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 maxKeyCriteria_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public maxKeyCriteria_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public maxKeyCriteria_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 maxKeyCriteria_result) return this.equals((maxKeyCriteria_result) that); return false; } public boolean equals(maxKeyCriteria_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(maxKeyCriteria_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("maxKeyCriteria_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.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 maxKeyCriteria_resultStandardSchemeFactory implements SchemeFactory { public maxKeyCriteria_resultStandardScheme getScheme() { return new maxKeyCriteria_resultStandardScheme(); } } private static class maxKeyCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyCriteria_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, maxKeyCriteria_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 maxKeyCriteria_resultTupleSchemeFactory implements SchemeFactory { public maxKeyCriteria_resultTupleScheme getScheme() { return new maxKeyCriteria_resultTupleScheme(); } } private static class maxKeyCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, maxKeyCriteria_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class maxKeyCriteriaTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyCriteriaTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyCriteriaTime_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyCriteriaTime_args.class, metaDataMap); } public maxKeyCriteriaTime_args() {} public maxKeyCriteriaTime_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public maxKeyCriteriaTime_args(maxKeyCriteriaTime_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 maxKeyCriteriaTime_args deepCopy() { return new maxKeyCriteriaTime_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 maxKeyCriteriaTime_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 maxKeyCriteriaTime_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 maxKeyCriteriaTime_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 maxKeyCriteriaTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public maxKeyCriteriaTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public maxKeyCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 maxKeyCriteriaTime_args) return this.equals((maxKeyCriteriaTime_args) that); return false; } public boolean equals(maxKeyCriteriaTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(maxKeyCriteriaTime_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("maxKeyCriteriaTime_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 maxKeyCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public maxKeyCriteriaTime_argsStandardScheme getScheme() { return new maxKeyCriteriaTime_argsStandardScheme(); } } private static class maxKeyCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyCriteriaTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, maxKeyCriteriaTime_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 maxKeyCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public maxKeyCriteriaTime_argsTupleScheme getScheme() { return new maxKeyCriteriaTime_argsTupleScheme(); } } private static class maxKeyCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyCriteriaTime_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, maxKeyCriteriaTime_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 maxKeyCriteriaTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyCriteriaTime_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyCriteriaTime_result.class, metaDataMap); } public maxKeyCriteriaTime_result() {} public maxKeyCriteriaTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public maxKeyCriteriaTime_result(maxKeyCriteriaTime_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.PermissionException( other.ex3); } } public maxKeyCriteriaTime_result deepCopy() { return new maxKeyCriteriaTime_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 maxKeyCriteriaTime_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 maxKeyCriteriaTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public maxKeyCriteriaTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public maxKeyCriteriaTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 maxKeyCriteriaTime_result) return this.equals((maxKeyCriteriaTime_result) that); return false; } public boolean equals(maxKeyCriteriaTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(maxKeyCriteriaTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("maxKeyCriteriaTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.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 maxKeyCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public maxKeyCriteriaTime_resultStandardScheme getScheme() { return new maxKeyCriteriaTime_resultStandardScheme(); } } private static class maxKeyCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyCriteriaTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, maxKeyCriteriaTime_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 maxKeyCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public maxKeyCriteriaTime_resultTupleScheme getScheme() { return new maxKeyCriteriaTime_resultTupleScheme(); } } private static class maxKeyCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, maxKeyCriteriaTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class maxKeyCriteriaTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyCriteriaTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyCriteriaTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyCriteriaTimestr_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyCriteriaTimestr_args.class, metaDataMap); } public maxKeyCriteriaTimestr_args() {} public maxKeyCriteriaTimestr_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public maxKeyCriteriaTimestr_args(maxKeyCriteriaTimestr_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 maxKeyCriteriaTimestr_args deepCopy() { return new maxKeyCriteriaTimestr_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 maxKeyCriteriaTimestr_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 maxKeyCriteriaTimestr_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 maxKeyCriteriaTimestr_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 maxKeyCriteriaTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public maxKeyCriteriaTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public maxKeyCriteriaTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 maxKeyCriteriaTimestr_args) return this.equals((maxKeyCriteriaTimestr_args) that); return false; } public boolean equals(maxKeyCriteriaTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(maxKeyCriteriaTimestr_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("maxKeyCriteriaTimestr_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 maxKeyCriteriaTimestr_argsStandardSchemeFactory implements SchemeFactory { public maxKeyCriteriaTimestr_argsStandardScheme getScheme() { return new maxKeyCriteriaTimestr_argsStandardScheme(); } } private static class maxKeyCriteriaTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, maxKeyCriteriaTimestr_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 maxKeyCriteriaTimestr_argsTupleSchemeFactory implements SchemeFactory { public maxKeyCriteriaTimestr_argsTupleScheme getScheme() { return new maxKeyCriteriaTimestr_argsTupleScheme(); } } private static class maxKeyCriteriaTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyCriteriaTimestr_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, maxKeyCriteriaTimestr_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 maxKeyCriteriaTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyCriteriaTimestr_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyCriteriaTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyCriteriaTimestr_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyCriteriaTimestr_result.class, metaDataMap); } public maxKeyCriteriaTimestr_result() {} public maxKeyCriteriaTimestr_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public maxKeyCriteriaTimestr_result( maxKeyCriteriaTimestr_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public maxKeyCriteriaTimestr_result deepCopy() { return new maxKeyCriteriaTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public maxKeyCriteriaTimestr_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 maxKeyCriteriaTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public maxKeyCriteriaTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 maxKeyCriteriaTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public maxKeyCriteriaTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof maxKeyCriteriaTimestr_result) return this.equals((maxKeyCriteriaTimestr_result) that); return false; } public boolean equals(maxKeyCriteriaTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(maxKeyCriteriaTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "maxKeyCriteriaTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 maxKeyCriteriaTimestr_resultStandardSchemeFactory implements SchemeFactory { public maxKeyCriteriaTimestr_resultStandardScheme getScheme() { return new maxKeyCriteriaTimestr_resultStandardScheme(); } } private static class maxKeyCriteriaTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, maxKeyCriteriaTimestr_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class maxKeyCriteriaTimestr_resultTupleSchemeFactory implements SchemeFactory { public maxKeyCriteriaTimestr_resultTupleScheme getScheme() { return new maxKeyCriteriaTimestr_resultTupleScheme(); } } private static class maxKeyCriteriaTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, maxKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class maxKeyCcl_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyCcl_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyCcl_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(maxKeyCcl_args.class, metaDataMap); } public maxKeyCcl_args() {} public maxKeyCcl_args(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public maxKeyCcl_args(maxKeyCcl_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 maxKeyCcl_args deepCopy() { return new maxKeyCcl_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 maxKeyCcl_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 maxKeyCcl_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 maxKeyCcl_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public maxKeyCcl_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public maxKeyCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 maxKeyCcl_args) return this.equals((maxKeyCcl_args) that); return false; } public boolean equals(maxKeyCcl_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(maxKeyCcl_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("maxKeyCcl_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 maxKeyCcl_argsStandardSchemeFactory implements SchemeFactory { public maxKeyCcl_argsStandardScheme getScheme() { return new maxKeyCcl_argsStandardScheme(); } } private static class maxKeyCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyCcl_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, maxKeyCcl_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 maxKeyCcl_argsTupleSchemeFactory implements SchemeFactory { public maxKeyCcl_argsTupleScheme getScheme() { return new maxKeyCcl_argsTupleScheme(); } } private static class maxKeyCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyCcl_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, maxKeyCcl_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 maxKeyCcl_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyCcl_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyCcl_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(maxKeyCcl_result.class, metaDataMap); } public maxKeyCcl_result() {} public maxKeyCcl_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public maxKeyCcl_result(maxKeyCcl_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public maxKeyCcl_result deepCopy() { return new maxKeyCcl_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public maxKeyCcl_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 maxKeyCcl_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public maxKeyCcl_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 maxKeyCcl_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public maxKeyCcl_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof maxKeyCcl_result) return this.equals((maxKeyCcl_result) that); return false; } public boolean equals(maxKeyCcl_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(maxKeyCcl_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("maxKeyCcl_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 maxKeyCcl_resultStandardSchemeFactory implements SchemeFactory { public maxKeyCcl_resultStandardScheme getScheme() { return new maxKeyCcl_resultStandardScheme(); } } private static class maxKeyCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyCcl_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, maxKeyCcl_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class maxKeyCcl_resultTupleSchemeFactory implements SchemeFactory { public maxKeyCcl_resultTupleScheme getScheme() { return new maxKeyCcl_resultTupleScheme(); } } private static class maxKeyCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, maxKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class maxKeyCclTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyCclTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyCclTime_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyCclTime_args.class, metaDataMap); } public maxKeyCclTime_args() {} public maxKeyCclTime_args(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public maxKeyCclTime_args(maxKeyCclTime_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 maxKeyCclTime_args deepCopy() { return new maxKeyCclTime_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 maxKeyCclTime_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 maxKeyCclTime_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 maxKeyCclTime_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 maxKeyCclTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public maxKeyCclTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public maxKeyCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 maxKeyCclTime_args) return this.equals((maxKeyCclTime_args) that); return false; } public boolean equals(maxKeyCclTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(maxKeyCclTime_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("maxKeyCclTime_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 maxKeyCclTime_argsStandardSchemeFactory implements SchemeFactory { public maxKeyCclTime_argsStandardScheme getScheme() { return new maxKeyCclTime_argsStandardScheme(); } } private static class maxKeyCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyCclTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, maxKeyCclTime_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 maxKeyCclTime_argsTupleSchemeFactory implements SchemeFactory { public maxKeyCclTime_argsTupleScheme getScheme() { return new maxKeyCclTime_argsTupleScheme(); } } private static class maxKeyCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyCclTime_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, maxKeyCclTime_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 maxKeyCclTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyCclTime_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyCclTime_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyCclTime_result.class, metaDataMap); } public maxKeyCclTime_result() {} public maxKeyCclTime_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public maxKeyCclTime_result(maxKeyCclTime_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public maxKeyCclTime_result deepCopy() { return new maxKeyCclTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public maxKeyCclTime_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 maxKeyCclTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public maxKeyCclTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 maxKeyCclTime_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public maxKeyCclTime_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof maxKeyCclTime_result) return this.equals((maxKeyCclTime_result) that); return false; } public boolean equals(maxKeyCclTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(maxKeyCclTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("maxKeyCclTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 maxKeyCclTime_resultStandardSchemeFactory implements SchemeFactory { public maxKeyCclTime_resultStandardScheme getScheme() { return new maxKeyCclTime_resultStandardScheme(); } } private static class maxKeyCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyCclTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, maxKeyCclTime_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class maxKeyCclTime_resultTupleSchemeFactory implements SchemeFactory { public maxKeyCclTime_resultTupleScheme getScheme() { return new maxKeyCclTime_resultTupleScheme(); } } private static class maxKeyCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, maxKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class maxKeyCclTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyCclTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyCclTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyCclTimestr_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyCclTimestr_args.class, metaDataMap); } public maxKeyCclTimestr_args() {} public maxKeyCclTimestr_args(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public maxKeyCclTimestr_args(maxKeyCclTimestr_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 maxKeyCclTimestr_args deepCopy() { return new maxKeyCclTimestr_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 maxKeyCclTimestr_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 maxKeyCclTimestr_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 maxKeyCclTimestr_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 maxKeyCclTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public maxKeyCclTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public maxKeyCclTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 maxKeyCclTimestr_args) return this.equals((maxKeyCclTimestr_args) that); return false; } public boolean equals(maxKeyCclTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(maxKeyCclTimestr_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("maxKeyCclTimestr_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 maxKeyCclTimestr_argsStandardSchemeFactory implements SchemeFactory { public maxKeyCclTimestr_argsStandardScheme getScheme() { return new maxKeyCclTimestr_argsStandardScheme(); } } private static class maxKeyCclTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyCclTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, maxKeyCclTimestr_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 maxKeyCclTimestr_argsTupleSchemeFactory implements SchemeFactory { public maxKeyCclTimestr_argsTupleScheme getScheme() { return new maxKeyCclTimestr_argsTupleScheme(); } } private static class maxKeyCclTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyCclTimestr_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, maxKeyCclTimestr_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 maxKeyCclTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyCclTimestr_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyCclTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyCclTimestr_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyCclTimestr_result.class, metaDataMap); } public maxKeyCclTimestr_result() {} public maxKeyCclTimestr_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public maxKeyCclTimestr_result(maxKeyCclTimestr_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public maxKeyCclTimestr_result deepCopy() { return new maxKeyCclTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public maxKeyCclTimestr_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 maxKeyCclTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public maxKeyCclTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 maxKeyCclTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public maxKeyCclTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof maxKeyCclTimestr_result) return this.equals((maxKeyCclTimestr_result) that); return false; } public boolean equals(maxKeyCclTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(maxKeyCclTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("maxKeyCclTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 maxKeyCclTimestr_resultStandardSchemeFactory implements SchemeFactory { public maxKeyCclTimestr_resultStandardScheme getScheme() { return new maxKeyCclTimestr_resultStandardScheme(); } } private static class maxKeyCclTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyCclTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, maxKeyCclTimestr_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class maxKeyCclTimestr_resultTupleSchemeFactory implements SchemeFactory { public maxKeyCclTimestr_resultTupleScheme getScheme() { return new maxKeyCclTimestr_resultTupleScheme(); } } private static class maxKeyCclTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, maxKeyCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class maxKey_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKey_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKey_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKey_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(maxKey_args.class, metaDataMap); } public maxKey_args() {} public maxKey_args(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public maxKey_args(maxKey_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 maxKey_args deepCopy() { return new maxKey_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 maxKey_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 maxKey_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public maxKey_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public maxKey_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 maxKey_args) return this.equals((maxKey_args) that); return false; } public boolean equals(maxKey_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(maxKey_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("maxKey_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 maxKey_argsStandardSchemeFactory implements SchemeFactory { public maxKey_argsStandardScheme getScheme() { return new maxKey_argsStandardScheme(); } } private static class maxKey_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKey_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, maxKey_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 maxKey_argsTupleSchemeFactory implements SchemeFactory { public maxKey_argsTupleScheme getScheme() { return new maxKey_argsTupleScheme(); } } private static class maxKey_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKey_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, maxKey_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 maxKey_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKey_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKey_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKey_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(maxKey_result.class, metaDataMap); } public maxKey_result() {} public maxKey_result(com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public maxKey_result(maxKey_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.PermissionException( other.ex3); } } public maxKey_result deepCopy() { return new maxKey_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 maxKey_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 maxKey_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public maxKey_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public maxKey_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 maxKey_result) return this.equals((maxKey_result) that); return false; } public boolean equals(maxKey_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(maxKey_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("maxKey_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.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 maxKey_resultStandardSchemeFactory implements SchemeFactory { public maxKey_resultStandardScheme getScheme() { return new maxKey_resultStandardScheme(); } } private static class maxKey_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKey_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, maxKey_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 maxKey_resultTupleSchemeFactory implements SchemeFactory { public maxKey_resultTupleScheme getScheme() { return new maxKey_resultTupleScheme(); } } private static class maxKey_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKey_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, maxKey_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class maxKeyTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyTime_argsTupleSchemeFactory()); } public String key; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(maxKeyTime_args.class, metaDataMap); } public maxKeyTime_args() {} public maxKeyTime_args(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public maxKeyTime_args(maxKeyTime_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 maxKeyTime_args deepCopy() { return new maxKeyTime_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 maxKeyTime_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 maxKeyTime_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 maxKeyTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public maxKeyTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public maxKeyTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 maxKeyTime_args) return this.equals((maxKeyTime_args) that); return false; } public boolean equals(maxKeyTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(maxKeyTime_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("maxKeyTime_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 maxKeyTime_argsStandardSchemeFactory implements SchemeFactory { public maxKeyTime_argsStandardScheme getScheme() { return new maxKeyTime_argsStandardScheme(); } } private static class maxKeyTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, maxKeyTime_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 maxKeyTime_argsTupleSchemeFactory implements SchemeFactory { public maxKeyTime_argsTupleScheme getScheme() { return new maxKeyTime_argsTupleScheme(); } } private static class maxKeyTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyTime_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, maxKeyTime_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 maxKeyTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyTime_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(maxKeyTime_result.class, metaDataMap); } public maxKeyTime_result() {} public maxKeyTime_result(com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public maxKeyTime_result(maxKeyTime_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.PermissionException( other.ex3); } } public maxKeyTime_result deepCopy() { return new maxKeyTime_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 maxKeyTime_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 maxKeyTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public maxKeyTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public maxKeyTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 maxKeyTime_result) return this.equals((maxKeyTime_result) that); return false; } public boolean equals(maxKeyTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(maxKeyTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("maxKeyTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.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 maxKeyTime_resultStandardSchemeFactory implements SchemeFactory { public maxKeyTime_resultStandardScheme getScheme() { return new maxKeyTime_resultStandardScheme(); } } private static class maxKeyTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, maxKeyTime_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 maxKeyTime_resultTupleSchemeFactory implements SchemeFactory { public maxKeyTime_resultTupleScheme getScheme() { return new maxKeyTime_resultTupleScheme(); } } private static class maxKeyTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, maxKeyTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class maxKeyTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyTimestr_argsTupleSchemeFactory()); } public String key; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyTimestr_args.class, metaDataMap); } public maxKeyTimestr_args() {} public maxKeyTimestr_args(String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public maxKeyTimestr_args(maxKeyTimestr_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 maxKeyTimestr_args deepCopy() { return new maxKeyTimestr_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 maxKeyTimestr_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 maxKeyTimestr_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 maxKeyTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public maxKeyTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public maxKeyTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 maxKeyTimestr_args) return this.equals((maxKeyTimestr_args) that); return false; } public boolean equals(maxKeyTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(maxKeyTimestr_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("maxKeyTimestr_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 maxKeyTimestr_argsStandardSchemeFactory implements SchemeFactory { public maxKeyTimestr_argsStandardScheme getScheme() { return new maxKeyTimestr_argsStandardScheme(); } } private static class maxKeyTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, maxKeyTimestr_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 maxKeyTimestr_argsTupleSchemeFactory implements SchemeFactory { public maxKeyTimestr_argsTupleScheme getScheme() { return new maxKeyTimestr_argsTupleScheme(); } } private static class maxKeyTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyTimestr_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, maxKeyTimestr_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 maxKeyTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "maxKeyTimestr_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new maxKeyTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new maxKeyTimestr_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( maxKeyTimestr_result.class, metaDataMap); } public maxKeyTimestr_result() {} public maxKeyTimestr_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public maxKeyTimestr_result(maxKeyTimestr_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public maxKeyTimestr_result deepCopy() { return new maxKeyTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public maxKeyTimestr_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 maxKeyTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public maxKeyTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 maxKeyTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public maxKeyTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof maxKeyTimestr_result) return this.equals((maxKeyTimestr_result) that); return false; } public boolean equals(maxKeyTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(maxKeyTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("maxKeyTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 maxKeyTimestr_resultStandardSchemeFactory implements SchemeFactory { public maxKeyTimestr_resultStandardScheme getScheme() { return new maxKeyTimestr_resultStandardScheme(); } } private static class maxKeyTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, maxKeyTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, maxKeyTimestr_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class maxKeyTimestr_resultTupleSchemeFactory implements SchemeFactory { public maxKeyTimestr_resultTupleScheme getScheme() { return new maxKeyTimestr_resultTupleScheme(); } } private static class maxKeyTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, maxKeyTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, maxKeyTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class minKeyRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyRecord_argsTupleSchemeFactory()); } public String key; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(minKeyRecord_args.class, metaDataMap); } public minKeyRecord_args() {} public minKeyRecord_args(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public minKeyRecord_args(minKeyRecord_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 minKeyRecord_args deepCopy() { return new minKeyRecord_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 minKeyRecord_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 minKeyRecord_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 minKeyRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public minKeyRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public minKeyRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 minKeyRecord_args) return this.equals((minKeyRecord_args) that); return false; } public boolean equals(minKeyRecord_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(minKeyRecord_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("minKeyRecord_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 minKeyRecord_argsStandardSchemeFactory implements SchemeFactory { public minKeyRecord_argsStandardScheme getScheme() { return new minKeyRecord_argsStandardScheme(); } } private static class minKeyRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, minKeyRecord_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 minKeyRecord_argsTupleSchemeFactory implements SchemeFactory { public minKeyRecord_argsTupleScheme getScheme() { return new minKeyRecord_argsTupleScheme(); } } private static class minKeyRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyRecord_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, minKeyRecord_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 minKeyRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyRecord_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyRecord_result.class, metaDataMap); } public minKeyRecord_result() {} public minKeyRecord_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public minKeyRecord_result(minKeyRecord_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.PermissionException( other.ex3); } } public minKeyRecord_result deepCopy() { return new minKeyRecord_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 minKeyRecord_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 minKeyRecord_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public minKeyRecord_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public minKeyRecord_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 minKeyRecord_result) return this.equals((minKeyRecord_result) that); return false; } public boolean equals(minKeyRecord_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(minKeyRecord_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("minKeyRecord_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.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 minKeyRecord_resultStandardSchemeFactory implements SchemeFactory { public minKeyRecord_resultStandardScheme getScheme() { return new minKeyRecord_resultStandardScheme(); } } private static class minKeyRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, minKeyRecord_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 minKeyRecord_resultTupleSchemeFactory implements SchemeFactory { public minKeyRecord_resultTupleScheme getScheme() { return new minKeyRecord_resultTupleScheme(); } } private static class minKeyRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, minKeyRecord_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class minKeyRecordTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyRecordTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyRecordTime_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyRecordTime_args.class, metaDataMap); } public minKeyRecordTime_args() {} public minKeyRecordTime_args(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public minKeyRecordTime_args(minKeyRecordTime_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 minKeyRecordTime_args deepCopy() { return new minKeyRecordTime_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 minKeyRecordTime_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 minKeyRecordTime_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 minKeyRecordTime_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 minKeyRecordTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public minKeyRecordTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public minKeyRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 minKeyRecordTime_args) return this.equals((minKeyRecordTime_args) that); return false; } public boolean equals(minKeyRecordTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(minKeyRecordTime_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("minKeyRecordTime_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 minKeyRecordTime_argsStandardSchemeFactory implements SchemeFactory { public minKeyRecordTime_argsStandardScheme getScheme() { return new minKeyRecordTime_argsStandardScheme(); } } private static class minKeyRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyRecordTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, minKeyRecordTime_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 minKeyRecordTime_argsTupleSchemeFactory implements SchemeFactory { public minKeyRecordTime_argsTupleScheme getScheme() { return new minKeyRecordTime_argsTupleScheme(); } } private static class minKeyRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyRecordTime_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, minKeyRecordTime_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 minKeyRecordTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyRecordTime_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyRecordTime_result.class, metaDataMap); } public minKeyRecordTime_result() {} public minKeyRecordTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public minKeyRecordTime_result(minKeyRecordTime_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.PermissionException( other.ex3); } } public minKeyRecordTime_result deepCopy() { return new minKeyRecordTime_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 minKeyRecordTime_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 minKeyRecordTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public minKeyRecordTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public minKeyRecordTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 minKeyRecordTime_result) return this.equals((minKeyRecordTime_result) that); return false; } public boolean equals(minKeyRecordTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(minKeyRecordTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("minKeyRecordTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.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 minKeyRecordTime_resultStandardSchemeFactory implements SchemeFactory { public minKeyRecordTime_resultStandardScheme getScheme() { return new minKeyRecordTime_resultStandardScheme(); } } private static class minKeyRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, minKeyRecordTime_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 minKeyRecordTime_resultTupleSchemeFactory implements SchemeFactory { public minKeyRecordTime_resultTupleScheme getScheme() { return new minKeyRecordTime_resultTupleScheme(); } } private static class minKeyRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, minKeyRecordTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class minKeyRecordTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyRecordTimestr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyRecordTimestr_args.class, metaDataMap); } public minKeyRecordTimestr_args() {} public minKeyRecordTimestr_args(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public minKeyRecordTimestr_args(minKeyRecordTimestr_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 minKeyRecordTimestr_args deepCopy() { return new minKeyRecordTimestr_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 minKeyRecordTimestr_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 minKeyRecordTimestr_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 minKeyRecordTimestr_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 minKeyRecordTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public minKeyRecordTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public minKeyRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 minKeyRecordTimestr_args) return this.equals((minKeyRecordTimestr_args) that); return false; } public boolean equals(minKeyRecordTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(minKeyRecordTimestr_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("minKeyRecordTimestr_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 minKeyRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public minKeyRecordTimestr_argsStandardScheme getScheme() { return new minKeyRecordTimestr_argsStandardScheme(); } } private static class minKeyRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyRecordTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, minKeyRecordTimestr_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 minKeyRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public minKeyRecordTimestr_argsTupleScheme getScheme() { return new minKeyRecordTimestr_argsTupleScheme(); } } private static class minKeyRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyRecordTimestr_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, minKeyRecordTimestr_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 minKeyRecordTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyRecordTimestr_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyRecordTimestr_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyRecordTimestr_result.class, metaDataMap); } public minKeyRecordTimestr_result() {} public minKeyRecordTimestr_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public minKeyRecordTimestr_result(minKeyRecordTimestr_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public minKeyRecordTimestr_result deepCopy() { return new minKeyRecordTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public minKeyRecordTimestr_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 minKeyRecordTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public minKeyRecordTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 minKeyRecordTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public minKeyRecordTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof minKeyRecordTimestr_result) return this.equals((minKeyRecordTimestr_result) that); return false; } public boolean equals(minKeyRecordTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(minKeyRecordTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("minKeyRecordTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 minKeyRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public minKeyRecordTimestr_resultStandardScheme getScheme() { return new minKeyRecordTimestr_resultStandardScheme(); } } private static class minKeyRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyRecordTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, minKeyRecordTimestr_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class minKeyRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public minKeyRecordTimestr_resultTupleScheme getScheme() { return new minKeyRecordTimestr_resultTupleScheme(); } } private static class minKeyRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, minKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class minKey_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKey_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKey_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKey_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CREDS((short) 2, "creds"), TRANSACTION((short) 3, "transaction"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(minKey_args.class, metaDataMap); } public minKey_args() {} public minKey_args(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public minKey_args(minKey_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 minKey_args deepCopy() { return new minKey_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 minKey_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 minKey_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public minKey_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public minKey_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 minKey_args) return this.equals((minKey_args) that); return false; } public boolean equals(minKey_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(minKey_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("minKey_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 minKey_argsStandardSchemeFactory implements SchemeFactory { public minKey_argsStandardScheme getScheme() { return new minKey_argsStandardScheme(); } } private static class minKey_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKey_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, minKey_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 minKey_argsTupleSchemeFactory implements SchemeFactory { public minKey_argsTupleScheme getScheme() { return new minKey_argsTupleScheme(); } } private static class minKey_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKey_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, minKey_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 minKey_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKey_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKey_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKey_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(minKey_result.class, metaDataMap); } public minKey_result() {} public minKey_result(com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public minKey_result(minKey_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.PermissionException( other.ex3); } } public minKey_result deepCopy() { return new minKey_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 minKey_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 minKey_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public minKey_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public minKey_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 minKey_result) return this.equals((minKey_result) that); return false; } public boolean equals(minKey_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(minKey_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("minKey_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.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 minKey_resultStandardSchemeFactory implements SchemeFactory { public minKey_resultStandardScheme getScheme() { return new minKey_resultStandardScheme(); } } private static class minKey_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKey_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, minKey_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 minKey_resultTupleSchemeFactory implements SchemeFactory { public minKey_resultTupleScheme getScheme() { return new minKey_resultTupleScheme(); } } private static class minKey_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKey_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, minKey_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class minKeyRecordsTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyRecordsTime_argsTupleSchemeFactory()); } public String key; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyRecordsTime_args.class, metaDataMap); } public minKeyRecordsTime_args() {} public minKeyRecordsTime_args(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public minKeyRecordsTime_args(minKeyRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public minKeyRecordsTime_args deepCopy() { return new minKeyRecordsTime_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 minKeyRecordsTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public minKeyRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public minKeyRecordsTime_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 minKeyRecordsTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public minKeyRecordsTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public minKeyRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof minKeyRecordsTime_args) return this.equals((minKeyRecordsTime_args) that); return false; } public boolean equals(minKeyRecordsTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(minKeyRecordsTime_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("minKeyRecordsTime_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 minKeyRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public minKeyRecordsTime_argsStandardScheme getScheme() { return new minKeyRecordsTime_argsStandardScheme(); } } private static class minKeyRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyRecordsTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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 _list2760 = iprot .readListBegin(); struct.records = new ArrayList( _list2760.size); long _elem2761; for (int _i2762 = 0; _i2762 < _list2760.size; ++_i2762) { _elem2761 = iprot.readI64(); struct.records.add(_elem2761); } 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, minKeyRecordsTime_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 _iter2763 : struct.records) { oprot.writeI64(_iter2763); } 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 minKeyRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public minKeyRecordsTime_argsTupleScheme getScheme() { return new minKeyRecordsTime_argsTupleScheme(); } } private static class minKeyRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyRecordsTime_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 _iter2764 : struct.records) { oprot.writeI64(_iter2764); } } } 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, minKeyRecordsTime_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 _list2765 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2765.size); long _elem2766; for (int _i2767 = 0; _i2767 < _list2765.size; ++_i2767) { _elem2766 = iprot.readI64(); struct.records.add(_elem2766); } } 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 minKeyRecordsTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyRecordsTime_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyRecordsTime_result.class, metaDataMap); } public minKeyRecordsTime_result() {} public minKeyRecordsTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public minKeyRecordsTime_result(minKeyRecordsTime_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.PermissionException( other.ex3); } } public minKeyRecordsTime_result deepCopy() { return new minKeyRecordsTime_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 minKeyRecordsTime_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 minKeyRecordsTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public minKeyRecordsTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public minKeyRecordsTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 minKeyRecordsTime_result) return this.equals((minKeyRecordsTime_result) that); return false; } public boolean equals(minKeyRecordsTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(minKeyRecordsTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("minKeyRecordsTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.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 minKeyRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public minKeyRecordsTime_resultStandardScheme getScheme() { return new minKeyRecordsTime_resultStandardScheme(); } } private static class minKeyRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyRecordsTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, minKeyRecordsTime_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 minKeyRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public minKeyRecordsTime_resultTupleScheme getScheme() { return new minKeyRecordsTime_resultTupleScheme(); } } private static class minKeyRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, minKeyRecordsTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class minKeyRecordsTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyRecordsTimestr_argsTupleSchemeFactory()); } public String key; // required public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyRecordsTimestr_args.class, metaDataMap); } public minKeyRecordsTimestr_args() {} public minKeyRecordsTimestr_args(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public minKeyRecordsTimestr_args(minKeyRecordsTimestr_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public minKeyRecordsTimestr_args deepCopy() { return new minKeyRecordsTimestr_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 minKeyRecordsTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public minKeyRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public minKeyRecordsTimestr_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 minKeyRecordsTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public minKeyRecordsTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public minKeyRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof minKeyRecordsTimestr_args) return this.equals((minKeyRecordsTimestr_args) that); return false; } public boolean equals(minKeyRecordsTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(minKeyRecordsTimestr_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("minKeyRecordsTimestr_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 minKeyRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public minKeyRecordsTimestr_argsStandardScheme getScheme() { return new minKeyRecordsTimestr_argsStandardScheme(); } } private static class minKeyRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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 _list2768 = iprot .readListBegin(); struct.records = new ArrayList( _list2768.size); long _elem2769; for (int _i2770 = 0; _i2770 < _list2768.size; ++_i2770) { _elem2769 = iprot.readI64(); struct.records.add(_elem2769); } 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, minKeyRecordsTimestr_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 _iter2771 : struct.records) { oprot.writeI64(_iter2771); } 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 minKeyRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public minKeyRecordsTimestr_argsTupleScheme getScheme() { return new minKeyRecordsTimestr_argsTupleScheme(); } } private static class minKeyRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyRecordsTimestr_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 _iter2772 : struct.records) { oprot.writeI64(_iter2772); } } } 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, minKeyRecordsTimestr_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 _list2773 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2773.size); long _elem2774; for (int _i2775 = 0; _i2775 < _list2773.size; ++_i2775) { _elem2774 = iprot.readI64(); struct.records.add(_elem2774); } } 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 minKeyRecordsTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyRecordsTimestr_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyRecordsTimestr_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyRecordsTimestr_result.class, metaDataMap); } public minKeyRecordsTimestr_result() {} public minKeyRecordsTimestr_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public minKeyRecordsTimestr_result(minKeyRecordsTimestr_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public minKeyRecordsTimestr_result deepCopy() { return new minKeyRecordsTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public minKeyRecordsTimestr_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 minKeyRecordsTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public minKeyRecordsTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 minKeyRecordsTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public minKeyRecordsTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof minKeyRecordsTimestr_result) return this.equals((minKeyRecordsTimestr_result) that); return false; } public boolean equals(minKeyRecordsTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(minKeyRecordsTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "minKeyRecordsTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 minKeyRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public minKeyRecordsTimestr_resultStandardScheme getScheme() { return new minKeyRecordsTimestr_resultStandardScheme(); } } private static class minKeyRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, minKeyRecordsTimestr_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class minKeyRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public minKeyRecordsTimestr_resultTupleScheme getScheme() { return new minKeyRecordsTimestr_resultTupleScheme(); } } private static class minKeyRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, minKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class minKeyCriteria_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyCriteria_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyCriteria_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyCriteria_args.class, metaDataMap); } public minKeyCriteria_args() {} public minKeyCriteria_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public minKeyCriteria_args(minKeyCriteria_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 minKeyCriteria_args deepCopy() { return new minKeyCriteria_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 minKeyCriteria_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 minKeyCriteria_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 minKeyCriteria_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public minKeyCriteria_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public minKeyCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 minKeyCriteria_args) return this.equals((minKeyCriteria_args) that); return false; } public boolean equals(minKeyCriteria_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(minKeyCriteria_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("minKeyCriteria_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 minKeyCriteria_argsStandardSchemeFactory implements SchemeFactory { public minKeyCriteria_argsStandardScheme getScheme() { return new minKeyCriteria_argsStandardScheme(); } } private static class minKeyCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyCriteria_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, minKeyCriteria_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 minKeyCriteria_argsTupleSchemeFactory implements SchemeFactory { public minKeyCriteria_argsTupleScheme getScheme() { return new minKeyCriteria_argsTupleScheme(); } } private static class minKeyCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyCriteria_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, minKeyCriteria_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 minKeyCriteria_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyCriteria_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyCriteria_result.class, metaDataMap); } public minKeyCriteria_result() {} public minKeyCriteria_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public minKeyCriteria_result(minKeyCriteria_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.PermissionException( other.ex3); } } public minKeyCriteria_result deepCopy() { return new minKeyCriteria_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 minKeyCriteria_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 minKeyCriteria_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public minKeyCriteria_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public minKeyCriteria_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 minKeyCriteria_result) return this.equals((minKeyCriteria_result) that); return false; } public boolean equals(minKeyCriteria_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(minKeyCriteria_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("minKeyCriteria_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.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 minKeyCriteria_resultStandardSchemeFactory implements SchemeFactory { public minKeyCriteria_resultStandardScheme getScheme() { return new minKeyCriteria_resultStandardScheme(); } } private static class minKeyCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyCriteria_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, minKeyCriteria_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 minKeyCriteria_resultTupleSchemeFactory implements SchemeFactory { public minKeyCriteria_resultTupleScheme getScheme() { return new minKeyCriteria_resultTupleScheme(); } } private static class minKeyCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, minKeyCriteria_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class minKeyCriteriaTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyCriteriaTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyCriteriaTime_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyCriteriaTime_args.class, metaDataMap); } public minKeyCriteriaTime_args() {} public minKeyCriteriaTime_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public minKeyCriteriaTime_args(minKeyCriteriaTime_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 minKeyCriteriaTime_args deepCopy() { return new minKeyCriteriaTime_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 minKeyCriteriaTime_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 minKeyCriteriaTime_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 minKeyCriteriaTime_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 minKeyCriteriaTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public minKeyCriteriaTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public minKeyCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 minKeyCriteriaTime_args) return this.equals((minKeyCriteriaTime_args) that); return false; } public boolean equals(minKeyCriteriaTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(minKeyCriteriaTime_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("minKeyCriteriaTime_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 minKeyCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public minKeyCriteriaTime_argsStandardScheme getScheme() { return new minKeyCriteriaTime_argsStandardScheme(); } } private static class minKeyCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyCriteriaTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, minKeyCriteriaTime_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 minKeyCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public minKeyCriteriaTime_argsTupleScheme getScheme() { return new minKeyCriteriaTime_argsTupleScheme(); } } private static class minKeyCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyCriteriaTime_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, minKeyCriteriaTime_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 minKeyCriteriaTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyCriteriaTime_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyCriteriaTime_result.class, metaDataMap); } public minKeyCriteriaTime_result() {} public minKeyCriteriaTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public minKeyCriteriaTime_result(minKeyCriteriaTime_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.PermissionException( other.ex3); } } public minKeyCriteriaTime_result deepCopy() { return new minKeyCriteriaTime_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 minKeyCriteriaTime_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 minKeyCriteriaTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public minKeyCriteriaTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public minKeyCriteriaTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 minKeyCriteriaTime_result) return this.equals((minKeyCriteriaTime_result) that); return false; } public boolean equals(minKeyCriteriaTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(minKeyCriteriaTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("minKeyCriteriaTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.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 minKeyCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public minKeyCriteriaTime_resultStandardScheme getScheme() { return new minKeyCriteriaTime_resultStandardScheme(); } } private static class minKeyCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyCriteriaTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, minKeyCriteriaTime_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 minKeyCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public minKeyCriteriaTime_resultTupleScheme getScheme() { return new minKeyCriteriaTime_resultTupleScheme(); } } private static class minKeyCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, minKeyCriteriaTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class minKeyCriteriaTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyCriteriaTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyCriteriaTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyCriteriaTimestr_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyCriteriaTimestr_args.class, metaDataMap); } public minKeyCriteriaTimestr_args() {} public minKeyCriteriaTimestr_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public minKeyCriteriaTimestr_args(minKeyCriteriaTimestr_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 minKeyCriteriaTimestr_args deepCopy() { return new minKeyCriteriaTimestr_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 minKeyCriteriaTimestr_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 minKeyCriteriaTimestr_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 minKeyCriteriaTimestr_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 minKeyCriteriaTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public minKeyCriteriaTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public minKeyCriteriaTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 minKeyCriteriaTimestr_args) return this.equals((minKeyCriteriaTimestr_args) that); return false; } public boolean equals(minKeyCriteriaTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(minKeyCriteriaTimestr_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("minKeyCriteriaTimestr_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 minKeyCriteriaTimestr_argsStandardSchemeFactory implements SchemeFactory { public minKeyCriteriaTimestr_argsStandardScheme getScheme() { return new minKeyCriteriaTimestr_argsStandardScheme(); } } private static class minKeyCriteriaTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, minKeyCriteriaTimestr_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 minKeyCriteriaTimestr_argsTupleSchemeFactory implements SchemeFactory { public minKeyCriteriaTimestr_argsTupleScheme getScheme() { return new minKeyCriteriaTimestr_argsTupleScheme(); } } private static class minKeyCriteriaTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyCriteriaTimestr_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, minKeyCriteriaTimestr_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 minKeyCriteriaTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyCriteriaTimestr_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyCriteriaTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyCriteriaTimestr_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyCriteriaTimestr_result.class, metaDataMap); } public minKeyCriteriaTimestr_result() {} public minKeyCriteriaTimestr_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public minKeyCriteriaTimestr_result( minKeyCriteriaTimestr_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public minKeyCriteriaTimestr_result deepCopy() { return new minKeyCriteriaTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public minKeyCriteriaTimestr_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 minKeyCriteriaTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public minKeyCriteriaTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 minKeyCriteriaTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public minKeyCriteriaTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof minKeyCriteriaTimestr_result) return this.equals((minKeyCriteriaTimestr_result) that); return false; } public boolean equals(minKeyCriteriaTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(minKeyCriteriaTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "minKeyCriteriaTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 minKeyCriteriaTimestr_resultStandardSchemeFactory implements SchemeFactory { public minKeyCriteriaTimestr_resultStandardScheme getScheme() { return new minKeyCriteriaTimestr_resultStandardScheme(); } } private static class minKeyCriteriaTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, minKeyCriteriaTimestr_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class minKeyCriteriaTimestr_resultTupleSchemeFactory implements SchemeFactory { public minKeyCriteriaTimestr_resultTupleScheme getScheme() { return new minKeyCriteriaTimestr_resultTupleScheme(); } } private static class minKeyCriteriaTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, minKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class minKeyCcl_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyCcl_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyCcl_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(minKeyCcl_args.class, metaDataMap); } public minKeyCcl_args() {} public minKeyCcl_args(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public minKeyCcl_args(minKeyCcl_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 minKeyCcl_args deepCopy() { return new minKeyCcl_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 minKeyCcl_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 minKeyCcl_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 minKeyCcl_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public minKeyCcl_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public minKeyCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 minKeyCcl_args) return this.equals((minKeyCcl_args) that); return false; } public boolean equals(minKeyCcl_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(minKeyCcl_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("minKeyCcl_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 minKeyCcl_argsStandardSchemeFactory implements SchemeFactory { public minKeyCcl_argsStandardScheme getScheme() { return new minKeyCcl_argsStandardScheme(); } } private static class minKeyCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyCcl_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, minKeyCcl_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 minKeyCcl_argsTupleSchemeFactory implements SchemeFactory { public minKeyCcl_argsTupleScheme getScheme() { return new minKeyCcl_argsTupleScheme(); } } private static class minKeyCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyCcl_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, minKeyCcl_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 minKeyCcl_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyCcl_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyCcl_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(minKeyCcl_result.class, metaDataMap); } public minKeyCcl_result() {} public minKeyCcl_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public minKeyCcl_result(minKeyCcl_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public minKeyCcl_result deepCopy() { return new minKeyCcl_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public minKeyCcl_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 minKeyCcl_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public minKeyCcl_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 minKeyCcl_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public minKeyCcl_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof minKeyCcl_result) return this.equals((minKeyCcl_result) that); return false; } public boolean equals(minKeyCcl_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(minKeyCcl_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("minKeyCcl_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 minKeyCcl_resultStandardSchemeFactory implements SchemeFactory { public minKeyCcl_resultStandardScheme getScheme() { return new minKeyCcl_resultStandardScheme(); } } private static class minKeyCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyCcl_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, minKeyCcl_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class minKeyCcl_resultTupleSchemeFactory implements SchemeFactory { public minKeyCcl_resultTupleScheme getScheme() { return new minKeyCcl_resultTupleScheme(); } } private static class minKeyCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, minKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class minKeyCclTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyCclTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyCclTime_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyCclTime_args.class, metaDataMap); } public minKeyCclTime_args() {} public minKeyCclTime_args(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public minKeyCclTime_args(minKeyCclTime_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 minKeyCclTime_args deepCopy() { return new minKeyCclTime_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 minKeyCclTime_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 minKeyCclTime_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 minKeyCclTime_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 minKeyCclTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public minKeyCclTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public minKeyCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 minKeyCclTime_args) return this.equals((minKeyCclTime_args) that); return false; } public boolean equals(minKeyCclTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(minKeyCclTime_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("minKeyCclTime_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 minKeyCclTime_argsStandardSchemeFactory implements SchemeFactory { public minKeyCclTime_argsStandardScheme getScheme() { return new minKeyCclTime_argsStandardScheme(); } } private static class minKeyCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyCclTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, minKeyCclTime_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 minKeyCclTime_argsTupleSchemeFactory implements SchemeFactory { public minKeyCclTime_argsTupleScheme getScheme() { return new minKeyCclTime_argsTupleScheme(); } } private static class minKeyCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyCclTime_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, minKeyCclTime_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 minKeyCclTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyCclTime_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyCclTime_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyCclTime_result.class, metaDataMap); } public minKeyCclTime_result() {} public minKeyCclTime_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public minKeyCclTime_result(minKeyCclTime_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public minKeyCclTime_result deepCopy() { return new minKeyCclTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public minKeyCclTime_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 minKeyCclTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public minKeyCclTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 minKeyCclTime_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public minKeyCclTime_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof minKeyCclTime_result) return this.equals((minKeyCclTime_result) that); return false; } public boolean equals(minKeyCclTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(minKeyCclTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("minKeyCclTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 minKeyCclTime_resultStandardSchemeFactory implements SchemeFactory { public minKeyCclTime_resultStandardScheme getScheme() { return new minKeyCclTime_resultStandardScheme(); } } private static class minKeyCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyCclTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, minKeyCclTime_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class minKeyCclTime_resultTupleSchemeFactory implements SchemeFactory { public minKeyCclTime_resultTupleScheme getScheme() { return new minKeyCclTime_resultTupleScheme(); } } private static class minKeyCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, minKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class minKeyCclTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyCclTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyCclTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyCclTimestr_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyCclTimestr_args.class, metaDataMap); } public minKeyCclTimestr_args() {} public minKeyCclTimestr_args(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public minKeyCclTimestr_args(minKeyCclTimestr_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 minKeyCclTimestr_args deepCopy() { return new minKeyCclTimestr_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 minKeyCclTimestr_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 minKeyCclTimestr_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 minKeyCclTimestr_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 minKeyCclTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public minKeyCclTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public minKeyCclTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 minKeyCclTimestr_args) return this.equals((minKeyCclTimestr_args) that); return false; } public boolean equals(minKeyCclTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(minKeyCclTimestr_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("minKeyCclTimestr_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 minKeyCclTimestr_argsStandardSchemeFactory implements SchemeFactory { public minKeyCclTimestr_argsStandardScheme getScheme() { return new minKeyCclTimestr_argsStandardScheme(); } } private static class minKeyCclTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyCclTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, minKeyCclTimestr_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 minKeyCclTimestr_argsTupleSchemeFactory implements SchemeFactory { public minKeyCclTimestr_argsTupleScheme getScheme() { return new minKeyCclTimestr_argsTupleScheme(); } } private static class minKeyCclTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyCclTimestr_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, minKeyCclTimestr_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 minKeyCclTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyCclTimestr_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyCclTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyCclTimestr_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyCclTimestr_result.class, metaDataMap); } public minKeyCclTimestr_result() {} public minKeyCclTimestr_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public minKeyCclTimestr_result(minKeyCclTimestr_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public minKeyCclTimestr_result deepCopy() { return new minKeyCclTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public minKeyCclTimestr_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 minKeyCclTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public minKeyCclTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 minKeyCclTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public minKeyCclTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof minKeyCclTimestr_result) return this.equals((minKeyCclTimestr_result) that); return false; } public boolean equals(minKeyCclTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(minKeyCclTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("minKeyCclTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 minKeyCclTimestr_resultStandardSchemeFactory implements SchemeFactory { public minKeyCclTimestr_resultStandardScheme getScheme() { return new minKeyCclTimestr_resultStandardScheme(); } } private static class minKeyCclTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyCclTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, minKeyCclTimestr_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class minKeyCclTimestr_resultTupleSchemeFactory implements SchemeFactory { public minKeyCclTimestr_resultTupleScheme getScheme() { return new minKeyCclTimestr_resultTupleScheme(); } } private static class minKeyCclTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, minKeyCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class minKeyTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyTime_argsTupleSchemeFactory()); } public String key; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(minKeyTime_args.class, metaDataMap); } public minKeyTime_args() {} public minKeyTime_args(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public minKeyTime_args(minKeyTime_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 minKeyTime_args deepCopy() { return new minKeyTime_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 minKeyTime_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 minKeyTime_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 minKeyTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public minKeyTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public minKeyTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 minKeyTime_args) return this.equals((minKeyTime_args) that); return false; } public boolean equals(minKeyTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(minKeyTime_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("minKeyTime_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 minKeyTime_argsStandardSchemeFactory implements SchemeFactory { public minKeyTime_argsStandardScheme getScheme() { return new minKeyTime_argsStandardScheme(); } } private static class minKeyTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, minKeyTime_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 minKeyTime_argsTupleSchemeFactory implements SchemeFactory { public minKeyTime_argsTupleScheme getScheme() { return new minKeyTime_argsTupleScheme(); } } private static class minKeyTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyTime_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, minKeyTime_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 minKeyTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyTime_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(minKeyTime_result.class, metaDataMap); } public minKeyTime_result() {} public minKeyTime_result(com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public minKeyTime_result(minKeyTime_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.PermissionException( other.ex3); } } public minKeyTime_result deepCopy() { return new minKeyTime_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 minKeyTime_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 minKeyTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public minKeyTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public minKeyTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 minKeyTime_result) return this.equals((minKeyTime_result) that); return false; } public boolean equals(minKeyTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(minKeyTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("minKeyTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.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 minKeyTime_resultStandardSchemeFactory implements SchemeFactory { public minKeyTime_resultStandardScheme getScheme() { return new minKeyTime_resultStandardScheme(); } } private static class minKeyTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, minKeyTime_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 minKeyTime_resultTupleSchemeFactory implements SchemeFactory { public minKeyTime_resultTupleScheme getScheme() { return new minKeyTime_resultTupleScheme(); } } private static class minKeyTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, minKeyTime_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class minKeyTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyTimestr_argsTupleSchemeFactory()); } public String key; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), TIMESTAMP((short) 2, "timestamp"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyTimestr_args.class, metaDataMap); } public minKeyTimestr_args() {} public minKeyTimestr_args(String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public minKeyTimestr_args(minKeyTimestr_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 minKeyTimestr_args deepCopy() { return new minKeyTimestr_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 minKeyTimestr_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 minKeyTimestr_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 minKeyTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public minKeyTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public minKeyTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { 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 minKeyTimestr_args) return this.equals((minKeyTimestr_args) that); return false; } public boolean equals(minKeyTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(minKeyTimestr_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("minKeyTimestr_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 minKeyTimestr_argsStandardSchemeFactory implements SchemeFactory { public minKeyTimestr_argsStandardScheme getScheme() { return new minKeyTimestr_argsStandardScheme(); } } private static class minKeyTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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, minKeyTimestr_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 minKeyTimestr_argsTupleSchemeFactory implements SchemeFactory { public minKeyTimestr_argsTupleScheme getScheme() { return new minKeyTimestr_argsTupleScheme(); } } private static class minKeyTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyTimestr_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, minKeyTimestr_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 minKeyTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyTimestr_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 org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyTimestr_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 public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyTimestr_result.class, metaDataMap); } public minKeyTimestr_result() {} public minKeyTimestr_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, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public minKeyTimestr_result(minKeyTimestr_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); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public minKeyTimestr_result deepCopy() { return new minKeyTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public minKeyTimestr_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 minKeyTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public minKeyTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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 minKeyTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public minKeyTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((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; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof minKeyTimestr_result) return this.equals((minKeyTimestr_result) that); return false; } public boolean equals(minKeyTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(minKeyTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("minKeyTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity 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 minKeyTimestr_resultStandardSchemeFactory implements SchemeFactory { public minKeyTimestr_resultStandardScheme getScheme() { return new minKeyTimestr_resultStandardScheme(); } } private static class minKeyTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, minKeyTimestr_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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class minKeyTimestr_resultTupleSchemeFactory implements SchemeFactory { public minKeyTimestr_resultTupleScheme getScheme() { return new minKeyTimestr_resultTupleScheme(); } } private static class minKeyTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { 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); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, minKeyTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); 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); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class minKeyRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyRecords_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyRecords_argsTupleSchemeFactory()); } public String key; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyRecords_args.class, metaDataMap); } public minKeyRecords_args() {} public minKeyRecords_args(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public minKeyRecords_args(minKeyRecords_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public minKeyRecords_args deepCopy() { return new minKeyRecords_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 minKeyRecords_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public minKeyRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public minKeyRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public minKeyRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public minKeyRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof minKeyRecords_args) return this.equals((minKeyRecords_args) that); return false; } public boolean equals(minKeyRecords_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(minKeyRecords_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("minKeyRecords_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 minKeyRecords_argsStandardSchemeFactory implements SchemeFactory { public minKeyRecords_argsStandardScheme getScheme() { return new minKeyRecords_argsStandardScheme(); } } private static class minKeyRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.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 _list2776 = iprot .readListBegin(); struct.records = new ArrayList( _list2776.size); long _elem2777; for (int _i2778 = 0; _i2778 < _list2776.size; ++_i2778) { _elem2777 = iprot.readI64(); struct.records.add(_elem2777); } 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, minKeyRecords_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 _iter2779 : struct.records) { oprot.writeI64(_iter2779); } 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 minKeyRecords_argsTupleSchemeFactory implements SchemeFactory { public minKeyRecords_argsTupleScheme getScheme() { return new minKeyRecords_argsTupleScheme(); } } private static class minKeyRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyRecords_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 _iter2780 : struct.records) { oprot.writeI64(_iter2780); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, minKeyRecords_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 _list2781 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2781.size); long _elem2782; for (int _i2783 = 0; _i2783 < _list2781.size; ++_i2783) { _elem2782 = iprot.readI64(); struct.records.add(_elem2782); } } 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 minKeyRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "minKeyRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new minKeyRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new minKeyRecords_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.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( minKeyRecords_result.class, metaDataMap); } public minKeyRecords_result() {} public minKeyRecords_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public minKeyRecords_result(minKeyRecords_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.PermissionException( other.ex3); } } public minKeyRecords_result deepCopy() { return new minKeyRecords_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 minKeyRecords_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 minKeyRecords_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public minKeyRecords_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.PermissionException getEx3() { return this.ex3; } public minKeyRecords_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 minKeyRecords_result) return this.equals((minKeyRecords_result) that); return false; } public boolean equals(minKeyRecords_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(minKeyRecords_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("minKeyRecords_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.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 minKeyRecords_resultStandardSchemeFactory implements SchemeFactory { public minKeyRecords_resultStandardScheme getScheme() { return new minKeyRecords_resultStandardScheme(); } } private static class minKeyRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, minKeyRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.PermissionException(); 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, minKeyRecords_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 minKeyRecords_resultTupleSchemeFactory implements SchemeFactory { public minKeyRecords_resultTupleScheme getScheme() { return new minKeyRecords_resultTupleScheme(); } } private static class minKeyRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, minKeyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, minKeyRecords_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class navigateKeyRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecord_argsTupleSchemeFactory()); } public String key; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyRecord_args.class, metaDataMap); } public navigateKeyRecord_args() {} public navigateKeyRecord_args(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyRecord_args(navigateKeyRecord_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyRecord_args deepCopy() { return new navigateKeyRecord_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public navigateKeyRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeyRecord_args) return this.equals((navigateKeyRecord_args) that); return false; } public boolean equals(navigateKeyRecord_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("navigateKeyRecord_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeyRecord_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyRecord_argsStandardScheme getScheme() { return new navigateKeyRecord_argsStandardScheme(); } } private static class navigateKeyRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeyRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyRecord_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyRecord_argsTupleScheme getScheme() { return new navigateKeyRecord_argsTupleScheme(); } } private static class navigateKeyRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecord_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyRecord_result.class, metaDataMap); } public navigateKeyRecord_result() {} public navigateKeyRecord_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public navigateKeyRecord_result(navigateKeyRecord_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public navigateKeyRecord_result deepCopy() { return new navigateKeyRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyRecord_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyRecord_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyRecord_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public navigateKeyRecord_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 navigateKeyRecord_result) return this.equals((navigateKeyRecord_result) that); return false; } public boolean equals(navigateKeyRecord_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(navigateKeyRecord_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("navigateKeyRecord_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 navigateKeyRecord_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyRecord_resultStandardScheme getScheme() { return new navigateKeyRecord_resultStandardScheme(); } } private static class navigateKeyRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2784 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map2784.size); long _key2785; Set _val2786; for (int _i2787 = 0; _i2787 < _map2784.size; ++_i2787) { _key2785 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set2788 = iprot .readSetBegin(); _val2786 = new LinkedHashSet( 2 * _set2788.size); com.cinchapi.concourse.thrift.TObject _elem2789; for (int _i2790 = 0; _i2790 < _set2788.size; ++_i2790) { _elem2789 = new com.cinchapi.concourse.thrift.TObject(); _elem2789.read(iprot); _val2786.add(_elem2789); } iprot.readSetEnd(); } struct.success.put(_key2785, _val2786); } 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.PermissionException(); 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, navigateKeyRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter2791 : struct.success .entrySet()) { oprot.writeI64(_iter2791.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter2791.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter2792 : _iter2791 .getValue()) { _iter2792.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 navigateKeyRecord_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyRecord_resultTupleScheme getScheme() { return new navigateKeyRecord_resultTupleScheme(); } } private static class navigateKeyRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2793 : struct.success .entrySet()) { oprot.writeI64(_iter2793.getKey()); { oprot.writeI32(_iter2793.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter2794 : _iter2793 .getValue()) { _iter2794.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, navigateKeyRecord_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 _map2795 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map2795.size); long _key2796; Set _val2797; for (int _i2798 = 0; _i2798 < _map2795.size; ++_i2798) { _key2796 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set2799 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2797 = new LinkedHashSet( 2 * _set2799.size); com.cinchapi.concourse.thrift.TObject _elem2800; for (int _i2801 = 0; _i2801 < _set2799.size; ++_i2801) { _elem2800 = new com.cinchapi.concourse.thrift.TObject(); _elem2800.read(iprot); _val2797.add(_elem2800); } } struct.success.put(_key2796, _val2797); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class navigateKeyRecordTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyRecordTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecordTime_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyRecordTime_args.class, metaDataMap); } public navigateKeyRecordTime_args() {} public navigateKeyRecordTime_args(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyRecordTime_args(navigateKeyRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyRecordTime_args deepCopy() { return new navigateKeyRecordTime_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyRecordTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public navigateKeyRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public navigateKeyRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyRecordTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyRecordTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeyRecordTime_args) return this.equals((navigateKeyRecordTime_args) that); return false; } public boolean equals(navigateKeyRecordTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyRecordTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("navigateKeyRecordTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeyRecordTime_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyRecordTime_argsStandardScheme getScheme() { return new navigateKeyRecordTime_argsStandardScheme(); } } private static class navigateKeyRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecordTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeyRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyRecordTime_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyRecordTime_argsTupleScheme getScheme() { return new navigateKeyRecordTime_argsTupleScheme(); } } private static class navigateKeyRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyRecordTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecordTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyRecordTime_result.class, metaDataMap); } public navigateKeyRecordTime_result() {} public navigateKeyRecordTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public navigateKeyRecordTime_result( navigateKeyRecordTime_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public navigateKeyRecordTime_result deepCopy() { return new navigateKeyRecordTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyRecordTime_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyRecordTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyRecordTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public navigateKeyRecordTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 navigateKeyRecordTime_result) return this.equals((navigateKeyRecordTime_result) that); return false; } public boolean equals(navigateKeyRecordTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(navigateKeyRecordTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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( "navigateKeyRecordTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 navigateKeyRecordTime_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyRecordTime_resultStandardScheme getScheme() { return new navigateKeyRecordTime_resultStandardScheme(); } } private static class navigateKeyRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2802 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map2802.size); long _key2803; Set _val2804; for (int _i2805 = 0; _i2805 < _map2802.size; ++_i2805) { _key2803 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set2806 = iprot .readSetBegin(); _val2804 = new LinkedHashSet( 2 * _set2806.size); com.cinchapi.concourse.thrift.TObject _elem2807; for (int _i2808 = 0; _i2808 < _set2806.size; ++_i2808) { _elem2807 = new com.cinchapi.concourse.thrift.TObject(); _elem2807.read(iprot); _val2804.add(_elem2807); } iprot.readSetEnd(); } struct.success.put(_key2803, _val2804); } 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.PermissionException(); 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, navigateKeyRecordTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter2809 : struct.success .entrySet()) { oprot.writeI64(_iter2809.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter2809.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter2810 : _iter2809 .getValue()) { _iter2810.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 navigateKeyRecordTime_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyRecordTime_resultTupleScheme getScheme() { return new navigateKeyRecordTime_resultTupleScheme(); } } private static class navigateKeyRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2811 : struct.success .entrySet()) { oprot.writeI64(_iter2811.getKey()); { oprot.writeI32(_iter2811.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter2812 : _iter2811 .getValue()) { _iter2812.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, navigateKeyRecordTime_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 _map2813 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map2813.size); long _key2814; Set _val2815; for (int _i2816 = 0; _i2816 < _map2813.size; ++_i2816) { _key2814 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set2817 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2815 = new LinkedHashSet( 2 * _set2817.size); com.cinchapi.concourse.thrift.TObject _elem2818; for (int _i2819 = 0; _i2819 < _set2817.size; ++_i2819) { _elem2818 = new com.cinchapi.concourse.thrift.TObject(); _elem2818.read(iprot); _val2815.add(_elem2818); } } struct.success.put(_key2814, _val2815); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class navigateKeyRecordTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecordTimestr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyRecordTimestr_args.class, metaDataMap); } public navigateKeyRecordTimestr_args() {} public navigateKeyRecordTimestr_args(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyRecordTimestr_args( navigateKeyRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } this.record = other.record; if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyRecordTimestr_args deepCopy() { return new navigateKeyRecordTimestr_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyRecordTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public long getRecord() { return this.record; } public navigateKeyRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public navigateKeyRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyRecordTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyRecordTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyRecordTimestr_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeyRecordTimestr_args) return this.equals((navigateKeyRecordTimestr_args) that); return false; } public boolean equals(navigateKeyRecordTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyRecordTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeyRecordTimestr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeyRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyRecordTimestr_argsStandardScheme getScheme() { return new navigateKeyRecordTimestr_argsStandardScheme(); } } private static class navigateKeyRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecordTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeyRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyRecordTimestr_argsTupleScheme getScheme() { return new navigateKeyRecordTimestr_argsTupleScheme(); } } private static class navigateKeyRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyRecordTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyRecordTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecordTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyRecordTimestr_result.class, metaDataMap); } public navigateKeyRecordTimestr_result() {} public navigateKeyRecordTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public navigateKeyRecordTimestr_result( navigateKeyRecordTimestr_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public navigateKeyRecordTimestr_result deepCopy() { return new navigateKeyRecordTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyRecordTimestr_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyRecordTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyRecordTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeyRecordTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public navigateKeyRecordTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeyRecordTimestr_result) return this.equals((navigateKeyRecordTimestr_result) that); return false; } public boolean equals(navigateKeyRecordTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(navigateKeyRecordTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeyRecordTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeyRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyRecordTimestr_resultStandardScheme getScheme() { return new navigateKeyRecordTimestr_resultStandardScheme(); } } private static class navigateKeyRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecordTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2820 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map2820.size); long _key2821; Set _val2822; for (int _i2823 = 0; _i2823 < _map2820.size; ++_i2823) { _key2821 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set2824 = iprot .readSetBegin(); _val2822 = new LinkedHashSet( 2 * _set2824.size); com.cinchapi.concourse.thrift.TObject _elem2825; for (int _i2826 = 0; _i2826 < _set2824.size; ++_i2826) { _elem2825 = new com.cinchapi.concourse.thrift.TObject(); _elem2825.read(iprot); _val2822.add(_elem2825); } iprot.readSetEnd(); } struct.success.put(_key2821, _val2822); } 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeyRecordTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter2827 : struct.success .entrySet()) { oprot.writeI64(_iter2827.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter2827.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter2828 : _iter2827 .getValue()) { _iter2828.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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyRecordTimestr_resultTupleScheme getScheme() { return new navigateKeyRecordTimestr_resultTupleScheme(); } } private static class navigateKeyRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2829 : struct.success .entrySet()) { oprot.writeI64(_iter2829.getKey()); { oprot.writeI32(_iter2829.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter2830 : _iter2829 .getValue()) { _iter2830.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2831 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map2831.size); long _key2832; Set _val2833; for (int _i2834 = 0; _i2834 < _map2831.size; ++_i2834) { _key2832 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set2835 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2833 = new LinkedHashSet( 2 * _set2835.size); com.cinchapi.concourse.thrift.TObject _elem2836; for (int _i2837 = 0; _i2837 < _set2835.size; ++_i2837) { _elem2836 = new com.cinchapi.concourse.thrift.TObject(); _elem2836.read(iprot); _val2833.add(_elem2836); } } struct.success.put(_key2832, _val2833); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class navigateKeysRecord_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysRecord_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecord_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORD((short) 2, "record"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysRecord_args.class, metaDataMap); } public navigateKeysRecord_args() {} public navigateKeysRecord_args(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysRecord_args(navigateKeysRecord_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysRecord_args deepCopy() { return new navigateKeysRecord_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysRecord_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public long getRecord() { return this.record; } public navigateKeysRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysRecord_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysRecord_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeysRecord_args) return this.equals((navigateKeysRecord_args) that); return false; } public boolean equals(navigateKeysRecord_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysRecord_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("navigateKeysRecord_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeysRecord_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysRecord_argsStandardScheme getScheme() { return new navigateKeysRecord_argsStandardScheme(); } } private static class navigateKeysRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecord_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2838 = iprot .readListBegin(); struct.keys = new ArrayList( _list2838.size); String _elem2839; for (int _i2840 = 0; _i2840 < _list2838.size; ++_i2840) { _elem2839 = iprot.readString(); struct.keys.add(_elem2839); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeysRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2841 : struct.keys) { oprot.writeString(_iter2841); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysRecord_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysRecord_argsTupleScheme getScheme() { return new navigateKeysRecord_argsTupleScheme(); } } private static class navigateKeysRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2842 : struct.keys) { oprot.writeString(_iter2842); } } } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list2843 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2843.size); String _elem2844; for (int _i2845 = 0; _i2845 < _list2843.size; ++_i2845) { _elem2844 = iprot.readString(); struct.keys.add(_elem2844); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysRecord_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecord_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysRecord_result.class, metaDataMap); } public navigateKeysRecord_result() {} public navigateKeysRecord_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public navigateKeysRecord_result(navigateKeysRecord_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public navigateKeysRecord_result deepCopy() { return new navigateKeysRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysRecord_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysRecord_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysRecord_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public navigateKeysRecord_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 navigateKeysRecord_result) return this.equals((navigateKeysRecord_result) that); return false; } public boolean equals(navigateKeysRecord_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(navigateKeysRecord_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("navigateKeysRecord_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 navigateKeysRecord_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysRecord_resultStandardScheme getScheme() { return new navigateKeysRecord_resultStandardScheme(); } } private static class navigateKeysRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2846 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map2846.size); long _key2847; Map> _val2848; for (int _i2849 = 0; _i2849 < _map2846.size; ++_i2849) { _key2847 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2850 = iprot .readMapBegin(); _val2848 = new LinkedHashMap>( 2 * _map2850.size); String _key2851; Set _val2852; for (int _i2853 = 0; _i2853 < _map2850.size; ++_i2853) { _key2851 = iprot.readString(); { org.apache.thrift.protocol.TSet _set2854 = iprot .readSetBegin(); _val2852 = new LinkedHashSet( 2 * _set2854.size); com.cinchapi.concourse.thrift.TObject _elem2855; for (int _i2856 = 0; _i2856 < _set2854.size; ++_i2856) { _elem2855 = new com.cinchapi.concourse.thrift.TObject(); _elem2855.read(iprot); _val2852.add(_elem2855); } iprot.readSetEnd(); } _val2848.put(_key2851, _val2852); } iprot.readMapEnd(); } struct.success.put(_key2847, _val2848); } 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.PermissionException(); 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, navigateKeysRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter2857 : struct.success .entrySet()) { oprot.writeI64(_iter2857.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter2857.getValue().size())); for (Map.Entry> _iter2858 : _iter2857 .getValue().entrySet()) { oprot.writeString(_iter2858.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter2858.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter2859 : _iter2858 .getValue()) { _iter2859.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 navigateKeysRecord_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysRecord_resultTupleScheme getScheme() { return new navigateKeysRecord_resultTupleScheme(); } } private static class navigateKeysRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter2860 : struct.success .entrySet()) { oprot.writeI64(_iter2860.getKey()); { oprot.writeI32(_iter2860.getValue().size()); for (Map.Entry> _iter2861 : _iter2860 .getValue().entrySet()) { oprot.writeString(_iter2861.getKey()); { oprot.writeI32( _iter2861.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter2862 : _iter2861 .getValue()) { _iter2862.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, navigateKeysRecord_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 _map2863 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map2863.size); long _key2864; Map> _val2865; for (int _i2866 = 0; _i2866 < _map2863.size; ++_i2866) { _key2864 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2867 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val2865 = new LinkedHashMap>( 2 * _map2867.size); String _key2868; Set _val2869; for (int _i2870 = 0; _i2870 < _map2867.size; ++_i2870) { _key2868 = iprot.readString(); { org.apache.thrift.protocol.TSet _set2871 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2869 = new LinkedHashSet( 2 * _set2871.size); com.cinchapi.concourse.thrift.TObject _elem2872; for (int _i2873 = 0; _i2873 < _set2871.size; ++_i2873) { _elem2872 = new com.cinchapi.concourse.thrift.TObject(); _elem2872.read(iprot); _val2869.add(_elem2872); } } _val2865.put(_key2868, _val2869); } } struct.success.put(_key2864, _val2865); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class navigateKeysRecordTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysRecordTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecordTime_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysRecordTime_args.class, metaDataMap); } public navigateKeysRecordTime_args() {} public navigateKeysRecordTime_args(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysRecordTime_args(navigateKeysRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysRecordTime_args deepCopy() { return new navigateKeysRecordTime_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysRecordTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public long getRecord() { return this.record; } public navigateKeysRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public navigateKeysRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysRecordTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysRecordTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeysRecordTime_args) return this.equals((navigateKeysRecordTime_args) that); return false; } public boolean equals(navigateKeysRecordTime_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysRecordTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeysRecordTime_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeysRecordTime_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysRecordTime_argsStandardScheme getScheme() { return new navigateKeysRecordTime_argsStandardScheme(); } } private static class navigateKeysRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecordTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2874 = iprot .readListBegin(); struct.keys = new ArrayList( _list2874.size); String _elem2875; for (int _i2876 = 0; _i2876 < _list2874.size; ++_i2876) { _elem2875 = iprot.readString(); struct.keys.add(_elem2875); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeysRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2877 : struct.keys) { oprot.writeString(_iter2877); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysRecordTime_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysRecordTime_argsTupleScheme getScheme() { return new navigateKeysRecordTime_argsTupleScheme(); } } private static class navigateKeysRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2878 : struct.keys) { oprot.writeString(_iter2878); } } } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list2879 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2879.size); String _elem2880; for (int _i2881 = 0; _i2881 < _list2879.size; ++_i2881) { _elem2880 = iprot.readString(); struct.keys.add(_elem2880); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysRecordTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecordTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysRecordTime_result.class, metaDataMap); } public navigateKeysRecordTime_result() {} public navigateKeysRecordTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public navigateKeysRecordTime_result( navigateKeysRecordTime_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public navigateKeysRecordTime_result deepCopy() { return new navigateKeysRecordTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysRecordTime_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysRecordTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysRecordTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public navigateKeysRecordTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 navigateKeysRecordTime_result) return this.equals((navigateKeysRecordTime_result) that); return false; } public boolean equals(navigateKeysRecordTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(navigateKeysRecordTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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( "navigateKeysRecordTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 navigateKeysRecordTime_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysRecordTime_resultStandardScheme getScheme() { return new navigateKeysRecordTime_resultStandardScheme(); } } private static class navigateKeysRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2882 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map2882.size); long _key2883; Map> _val2884; for (int _i2885 = 0; _i2885 < _map2882.size; ++_i2885) { _key2883 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2886 = iprot .readMapBegin(); _val2884 = new LinkedHashMap>( 2 * _map2886.size); String _key2887; Set _val2888; for (int _i2889 = 0; _i2889 < _map2886.size; ++_i2889) { _key2887 = iprot.readString(); { org.apache.thrift.protocol.TSet _set2890 = iprot .readSetBegin(); _val2888 = new LinkedHashSet( 2 * _set2890.size); com.cinchapi.concourse.thrift.TObject _elem2891; for (int _i2892 = 0; _i2892 < _set2890.size; ++_i2892) { _elem2891 = new com.cinchapi.concourse.thrift.TObject(); _elem2891.read(iprot); _val2888.add(_elem2891); } iprot.readSetEnd(); } _val2884.put(_key2887, _val2888); } iprot.readMapEnd(); } struct.success.put(_key2883, _val2884); } 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.PermissionException(); 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, navigateKeysRecordTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter2893 : struct.success .entrySet()) { oprot.writeI64(_iter2893.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter2893.getValue().size())); for (Map.Entry> _iter2894 : _iter2893 .getValue().entrySet()) { oprot.writeString(_iter2894.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter2894.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter2895 : _iter2894 .getValue()) { _iter2895.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 navigateKeysRecordTime_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysRecordTime_resultTupleScheme getScheme() { return new navigateKeysRecordTime_resultTupleScheme(); } } private static class navigateKeysRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter2896 : struct.success .entrySet()) { oprot.writeI64(_iter2896.getKey()); { oprot.writeI32(_iter2896.getValue().size()); for (Map.Entry> _iter2897 : _iter2896 .getValue().entrySet()) { oprot.writeString(_iter2897.getKey()); { oprot.writeI32( _iter2897.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter2898 : _iter2897 .getValue()) { _iter2898.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, navigateKeysRecordTime_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 _map2899 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map2899.size); long _key2900; Map> _val2901; for (int _i2902 = 0; _i2902 < _map2899.size; ++_i2902) { _key2900 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2903 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val2901 = new LinkedHashMap>( 2 * _map2903.size); String _key2904; Set _val2905; for (int _i2906 = 0; _i2906 < _map2903.size; ++_i2906) { _key2904 = iprot.readString(); { org.apache.thrift.protocol.TSet _set2907 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2905 = new LinkedHashSet( 2 * _set2907.size); com.cinchapi.concourse.thrift.TObject _elem2908; for (int _i2909 = 0; _i2909 < _set2907.size; ++_i2909) { _elem2908 = new com.cinchapi.concourse.thrift.TObject(); _elem2908.read(iprot); _val2905.add(_elem2908); } } _val2901.put(_key2904, _val2905); } } struct.success.put(_key2900, _val2901); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class navigateKeysRecordTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField( "record", org.apache.thrift.protocol.TType.I64, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecordTimestr_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORD((short) 2, "record"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __RECORD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysRecordTimestr_args.class, metaDataMap); } public navigateKeysRecordTimestr_args() {} public navigateKeysRecordTimestr_args(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysRecordTimestr_args( navigateKeysRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysRecordTimestr_args deepCopy() { return new navigateKeysRecordTimestr_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysRecordTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public long getRecord() { return this.record; } public navigateKeysRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** * Returns true if field record is set (has been assigned a value) and * false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public navigateKeysRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysRecordTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysRecordTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysRecordTimestr_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORD: if(value == null) { unsetRecord(); } else { setRecord((Long) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeysRecordTimestr_args) return this.equals((navigateKeysRecordTimestr_args) that); return false; } public boolean equals(navigateKeysRecordTimestr_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if(this_present_record || that_present_record) { if(!(this_present_record && that_present_record)) return false; if(this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if(present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysRecordTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()) .compareTo(other.isSetRecord()); if(lastComparison != 0) { return lastComparison; } if(isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.record, other.record); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeysRecordTimestr_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeysRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysRecordTimestr_argsStandardScheme getScheme() { return new navigateKeysRecordTimestr_argsStandardScheme(); } } private static class navigateKeysRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecordTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2910 = iprot .readListBegin(); struct.keys = new ArrayList( _list2910.size); String _elem2911; for (int _i2912 = 0; _i2912 < _list2910.size; ++_i2912) { _elem2911 = iprot.readString(); struct.keys.add(_elem2911); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeysRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2913 : struct.keys) { oprot.writeString(_iter2913); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysRecordTimestr_argsTupleScheme getScheme() { return new navigateKeysRecordTimestr_argsTupleScheme(); } } private static class navigateKeysRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecord()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2914 : struct.keys) { oprot.writeString(_iter2914); } } } if(struct.isSetRecord()) { oprot.writeI64(struct.record); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list2915 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2915.size); String _elem2916; for (int _i2917 = 0; _i2917 < _list2915.size; ++_i2917) { _elem2916 = iprot.readString(); struct.keys.add(_elem2916); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysRecordTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysRecordTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecordTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysRecordTimestr_result.class, metaDataMap); } public navigateKeysRecordTimestr_result() {} public navigateKeysRecordTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public navigateKeysRecordTimestr_result( navigateKeysRecordTimestr_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public navigateKeysRecordTimestr_result deepCopy() { return new navigateKeysRecordTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysRecordTimestr_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysRecordTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysRecordTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeysRecordTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public navigateKeysRecordTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeysRecordTimestr_result) return this.equals((navigateKeysRecordTimestr_result) that); return false; } public boolean equals(navigateKeysRecordTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(navigateKeysRecordTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeysRecordTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeysRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysRecordTimestr_resultStandardScheme getScheme() { return new navigateKeysRecordTimestr_resultStandardScheme(); } } private static class navigateKeysRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecordTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2918 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map2918.size); long _key2919; Map> _val2920; for (int _i2921 = 0; _i2921 < _map2918.size; ++_i2921) { _key2919 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2922 = iprot .readMapBegin(); _val2920 = new LinkedHashMap>( 2 * _map2922.size); String _key2923; Set _val2924; for (int _i2925 = 0; _i2925 < _map2922.size; ++_i2925) { _key2923 = iprot.readString(); { org.apache.thrift.protocol.TSet _set2926 = iprot .readSetBegin(); _val2924 = new LinkedHashSet( 2 * _set2926.size); com.cinchapi.concourse.thrift.TObject _elem2927; for (int _i2928 = 0; _i2928 < _set2926.size; ++_i2928) { _elem2927 = new com.cinchapi.concourse.thrift.TObject(); _elem2927.read(iprot); _val2924.add(_elem2927); } iprot.readSetEnd(); } _val2920.put(_key2923, _val2924); } iprot.readMapEnd(); } struct.success.put(_key2919, _val2920); } 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeysRecordTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter2929 : struct.success .entrySet()) { oprot.writeI64(_iter2929.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter2929.getValue().size())); for (Map.Entry> _iter2930 : _iter2929 .getValue().entrySet()) { oprot.writeString(_iter2930.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter2930.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter2931 : _iter2930 .getValue()) { _iter2931.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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysRecordTimestr_resultTupleScheme getScheme() { return new navigateKeysRecordTimestr_resultTupleScheme(); } } private static class navigateKeysRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter2932 : struct.success .entrySet()) { oprot.writeI64(_iter2932.getKey()); { oprot.writeI32(_iter2932.getValue().size()); for (Map.Entry> _iter2933 : _iter2932 .getValue().entrySet()) { oprot.writeString(_iter2933.getKey()); { oprot.writeI32( _iter2933.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter2934 : _iter2933 .getValue()) { _iter2934.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2935 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map2935.size); long _key2936; Map> _val2937; for (int _i2938 = 0; _i2938 < _map2935.size; ++_i2938) { _key2936 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2939 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val2937 = new LinkedHashMap>( 2 * _map2939.size); String _key2940; Set _val2941; for (int _i2942 = 0; _i2942 < _map2939.size; ++_i2942) { _key2940 = iprot.readString(); { org.apache.thrift.protocol.TSet _set2943 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2941 = new LinkedHashSet( 2 * _set2943.size); com.cinchapi.concourse.thrift.TObject _elem2944; for (int _i2945 = 0; _i2945 < _set2943.size; ++_i2945) { _elem2944 = new com.cinchapi.concourse.thrift.TObject(); _elem2944.read(iprot); _val2941.add(_elem2944); } } _val2937.put(_key2940, _val2941); } } struct.success.put(_key2936, _val2937); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class navigateKeysRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysRecords_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecords_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORDS((short) 2, "records"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysRecords_args.class, metaDataMap); } public navigateKeysRecords_args() {} public navigateKeysRecords_args(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysRecords_args(navigateKeysRecords_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysRecords_args deepCopy() { return new navigateKeysRecords_args(this); } @Override public void clear() { this.keys = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysRecords_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public navigateKeysRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeysRecords_args) return this.equals((navigateKeysRecords_args) that); return false; } public boolean equals(navigateKeysRecords_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysRecords_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("navigateKeysRecords_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeysRecords_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysRecords_argsStandardScheme getScheme() { return new navigateKeysRecords_argsStandardScheme(); } } private static class navigateKeysRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2946 = iprot .readListBegin(); struct.keys = new ArrayList( _list2946.size); String _elem2947; for (int _i2948 = 0; _i2948 < _list2946.size; ++_i2948) { _elem2947 = iprot.readString(); struct.keys.add(_elem2947); } 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 _list2949 = iprot .readListBegin(); struct.records = new ArrayList( _list2949.size); long _elem2950; for (int _i2951 = 0; _i2951 < _list2949.size; ++_i2951) { _elem2950 = iprot.readI64(); struct.records.add(_elem2950); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeysRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2952 : struct.keys) { oprot.writeString(_iter2952); } 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 _iter2953 : struct.records) { oprot.writeI64(_iter2953); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysRecords_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysRecords_argsTupleScheme getScheme() { return new navigateKeysRecords_argsTupleScheme(); } } private static class navigateKeysRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2954 : struct.keys) { oprot.writeString(_iter2954); } } } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2955 : struct.records) { oprot.writeI64(_iter2955); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list2956 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2956.size); String _elem2957; for (int _i2958 = 0; _i2958 < _list2956.size; ++_i2958) { _elem2957 = iprot.readString(); struct.keys.add(_elem2957); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list2959 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2959.size); long _elem2960; for (int _i2961 = 0; _i2961 < _list2959.size; ++_i2961) { _elem2960 = iprot.readI64(); struct.records.add(_elem2960); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecords_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysRecords_result.class, metaDataMap); } public navigateKeysRecords_result() {} public navigateKeysRecords_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public navigateKeysRecords_result(navigateKeysRecords_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public navigateKeysRecords_result deepCopy() { return new navigateKeysRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysRecords_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysRecords_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysRecords_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public navigateKeysRecords_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 navigateKeysRecords_result) return this.equals((navigateKeysRecords_result) that); return false; } public boolean equals(navigateKeysRecords_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(navigateKeysRecords_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("navigateKeysRecords_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 navigateKeysRecords_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysRecords_resultStandardScheme getScheme() { return new navigateKeysRecords_resultStandardScheme(); } } private static class navigateKeysRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2962 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map2962.size); long _key2963; Map> _val2964; for (int _i2965 = 0; _i2965 < _map2962.size; ++_i2965) { _key2963 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2966 = iprot .readMapBegin(); _val2964 = new LinkedHashMap>( 2 * _map2966.size); String _key2967; Set _val2968; for (int _i2969 = 0; _i2969 < _map2966.size; ++_i2969) { _key2967 = iprot.readString(); { org.apache.thrift.protocol.TSet _set2970 = iprot .readSetBegin(); _val2968 = new LinkedHashSet( 2 * _set2970.size); com.cinchapi.concourse.thrift.TObject _elem2971; for (int _i2972 = 0; _i2972 < _set2970.size; ++_i2972) { _elem2971 = new com.cinchapi.concourse.thrift.TObject(); _elem2971.read(iprot); _val2968.add(_elem2971); } iprot.readSetEnd(); } _val2964.put(_key2967, _val2968); } iprot.readMapEnd(); } struct.success.put(_key2963, _val2964); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, navigateKeysRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter2973 : struct.success .entrySet()) { oprot.writeI64(_iter2973.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter2973.getValue().size())); for (Map.Entry> _iter2974 : _iter2973 .getValue().entrySet()) { oprot.writeString(_iter2974.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter2974.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter2975 : _iter2974 .getValue()) { _iter2975.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 navigateKeysRecords_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysRecords_resultTupleScheme getScheme() { return new navigateKeysRecords_resultTupleScheme(); } } private static class navigateKeysRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter2976 : struct.success .entrySet()) { oprot.writeI64(_iter2976.getKey()); { oprot.writeI32(_iter2976.getValue().size()); for (Map.Entry> _iter2977 : _iter2976 .getValue().entrySet()) { oprot.writeString(_iter2977.getKey()); { oprot.writeI32( _iter2977.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter2978 : _iter2977 .getValue()) { _iter2978.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, navigateKeysRecords_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 _map2979 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map2979.size); long _key2980; Map> _val2981; for (int _i2982 = 0; _i2982 < _map2979.size; ++_i2982) { _key2980 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2983 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val2981 = new LinkedHashMap>( 2 * _map2983.size); String _key2984; Set _val2985; for (int _i2986 = 0; _i2986 < _map2983.size; ++_i2986) { _key2984 = iprot.readString(); { org.apache.thrift.protocol.TSet _set2987 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2985 = new LinkedHashSet( 2 * _set2987.size); com.cinchapi.concourse.thrift.TObject _elem2988; for (int _i2989 = 0; _i2989 < _set2987.size; ++_i2989) { _elem2988 = new com.cinchapi.concourse.thrift.TObject(); _elem2988.read(iprot); _val2985.add(_elem2988); } } _val2981.put(_key2984, _val2985); } } struct.success.put(_key2980, _val2981); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class navigateKeyRecords_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyRecords_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecords_argsTupleSchemeFactory()); } public String key; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyRecords_args.class, metaDataMap); } public navigateKeyRecords_args() {} public navigateKeyRecords_args(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyRecords_args(navigateKeyRecords_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyRecords_args deepCopy() { return new navigateKeyRecords_args(this); } @Override public void clear() { this.key = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyRecords_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public navigateKeyRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyRecords_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyRecords_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeyRecords_args) return this.equals((navigateKeyRecords_args) that); return false; } public boolean equals(navigateKeyRecords_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyRecords_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("navigateKeyRecords_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeyRecords_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyRecords_argsStandardScheme getScheme() { return new navigateKeyRecords_argsStandardScheme(); } } private static class navigateKeyRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecords_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2990 = iprot .readListBegin(); struct.records = new ArrayList( _list2990.size); long _elem2991; for (int _i2992 = 0; _i2992 < _list2990.size; ++_i2992) { _elem2991 = iprot.readI64(); struct.records.add(_elem2991); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeyRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2993 : struct.records) { oprot.writeI64(_iter2993); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyRecords_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyRecords_argsTupleScheme getScheme() { return new navigateKeyRecords_argsTupleScheme(); } } private static class navigateKeyRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2994 : struct.records) { oprot.writeI64(_iter2994); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list2995 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2995.size); long _elem2996; for (int _i2997 = 0; _i2997 < _list2995.size; ++_i2997) { _elem2996 = iprot.readI64(); struct.records.add(_elem2996); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyRecords_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecords_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyRecords_result.class, metaDataMap); } public navigateKeyRecords_result() {} public navigateKeyRecords_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public navigateKeyRecords_result(navigateKeyRecords_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public navigateKeyRecords_result deepCopy() { return new navigateKeyRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyRecords_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyRecords_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyRecords_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public navigateKeyRecords_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 navigateKeyRecords_result) return this.equals((navigateKeyRecords_result) that); return false; } public boolean equals(navigateKeyRecords_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(navigateKeyRecords_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("navigateKeyRecords_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 navigateKeyRecords_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyRecords_resultStandardScheme getScheme() { return new navigateKeyRecords_resultStandardScheme(); } } private static class navigateKeyRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map2998 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map2998.size); long _key2999; Set _val3000; for (int _i3001 = 0; _i3001 < _map2998.size; ++_i3001) { _key2999 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3002 = iprot .readSetBegin(); _val3000 = new LinkedHashSet( 2 * _set3002.size); com.cinchapi.concourse.thrift.TObject _elem3003; for (int _i3004 = 0; _i3004 < _set3002.size; ++_i3004) { _elem3003 = new com.cinchapi.concourse.thrift.TObject(); _elem3003.read(iprot); _val3000.add(_elem3003); } iprot.readSetEnd(); } struct.success.put(_key2999, _val3000); } 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.PermissionException(); 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, navigateKeyRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter3005 : struct.success .entrySet()) { oprot.writeI64(_iter3005.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter3005.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3006 : _iter3005 .getValue()) { _iter3006.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 navigateKeyRecords_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyRecords_resultTupleScheme getScheme() { return new navigateKeyRecords_resultTupleScheme(); } } private static class navigateKeyRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter3007 : struct.success .entrySet()) { oprot.writeI64(_iter3007.getKey()); { oprot.writeI32(_iter3007.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3008 : _iter3007 .getValue()) { _iter3008.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, navigateKeyRecords_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 _map3009 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map3009.size); long _key3010; Set _val3011; for (int _i3012 = 0; _i3012 < _map3009.size; ++_i3012) { _key3010 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3013 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3011 = new LinkedHashSet( 2 * _set3013.size); com.cinchapi.concourse.thrift.TObject _elem3014; for (int _i3015 = 0; _i3015 < _set3013.size; ++_i3015) { _elem3014 = new com.cinchapi.concourse.thrift.TObject(); _elem3014.read(iprot); _val3011.add(_elem3014); } } struct.success.put(_key3010, _val3011); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class navigateKeyRecordsTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecordsTime_argsTupleSchemeFactory()); } public String key; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyRecordsTime_args.class, metaDataMap); } public navigateKeyRecordsTime_args() {} public navigateKeyRecordsTime_args(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyRecordsTime_args(navigateKeyRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyRecordsTime_args deepCopy() { return new navigateKeyRecordsTime_args(this); } @Override public void clear() { this.key = null; this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyRecordsTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public navigateKeyRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public navigateKeyRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyRecordsTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyRecordsTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeyRecordsTime_args) return this.equals((navigateKeyRecordsTime_args) that); return false; } public boolean equals(navigateKeyRecordsTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyRecordsTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeyRecordsTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeyRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyRecordsTime_argsStandardScheme getScheme() { return new navigateKeyRecordsTime_argsStandardScheme(); } } private static class navigateKeyRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecordsTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list3016 = iprot .readListBegin(); struct.records = new ArrayList( _list3016.size); long _elem3017; for (int _i3018 = 0; _i3018 < _list3016.size; ++_i3018) { _elem3017 = iprot.readI64(); struct.records.add(_elem3017); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeyRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter3019 : struct.records) { oprot.writeI64(_iter3019); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyRecordsTime_argsTupleScheme getScheme() { return new navigateKeyRecordsTime_argsTupleScheme(); } } private static class navigateKeyRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter3020 : struct.records) { oprot.writeI64(_iter3020); } } } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list3021 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list3021.size); long _elem3022; for (int _i3023 = 0; _i3023 < _list3021.size; ++_i3023) { _elem3022 = iprot.readI64(); struct.records.add(_elem3022); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyRecordsTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecordsTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyRecordsTime_result.class, metaDataMap); } public navigateKeyRecordsTime_result() {} public navigateKeyRecordsTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public navigateKeyRecordsTime_result( navigateKeyRecordsTime_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public navigateKeyRecordsTime_result deepCopy() { return new navigateKeyRecordsTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyRecordsTime_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyRecordsTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyRecordsTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public navigateKeyRecordsTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 navigateKeyRecordsTime_result) return this.equals((navigateKeyRecordsTime_result) that); return false; } public boolean equals(navigateKeyRecordsTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(navigateKeyRecordsTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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( "navigateKeyRecordsTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 navigateKeyRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyRecordsTime_resultStandardScheme getScheme() { return new navigateKeyRecordsTime_resultStandardScheme(); } } private static class navigateKeyRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecordsTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map3024 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map3024.size); long _key3025; Set _val3026; for (int _i3027 = 0; _i3027 < _map3024.size; ++_i3027) { _key3025 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3028 = iprot .readSetBegin(); _val3026 = new LinkedHashSet( 2 * _set3028.size); com.cinchapi.concourse.thrift.TObject _elem3029; for (int _i3030 = 0; _i3030 < _set3028.size; ++_i3030) { _elem3029 = new com.cinchapi.concourse.thrift.TObject(); _elem3029.read(iprot); _val3026.add(_elem3029); } iprot.readSetEnd(); } struct.success.put(_key3025, _val3026); } 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.PermissionException(); 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, navigateKeyRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter3031 : struct.success .entrySet()) { oprot.writeI64(_iter3031.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter3031.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3032 : _iter3031 .getValue()) { _iter3032.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 navigateKeyRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyRecordsTime_resultTupleScheme getScheme() { return new navigateKeyRecordsTime_resultTupleScheme(); } } private static class navigateKeyRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter3033 : struct.success .entrySet()) { oprot.writeI64(_iter3033.getKey()); { oprot.writeI32(_iter3033.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3034 : _iter3033 .getValue()) { _iter3034.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, navigateKeyRecordsTime_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 _map3035 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map3035.size); long _key3036; Set _val3037; for (int _i3038 = 0; _i3038 < _map3035.size; ++_i3038) { _key3036 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3039 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3037 = new LinkedHashSet( 2 * _set3039.size); com.cinchapi.concourse.thrift.TObject _elem3040; for (int _i3041 = 0; _i3041 < _set3039.size; ++_i3041) { _elem3040 = new com.cinchapi.concourse.thrift.TObject(); _elem3040.read(iprot); _val3037.add(_elem3040); } } struct.success.put(_key3036, _val3037); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class navigateKeyRecordsTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecordsTimestr_argsTupleSchemeFactory()); } public String key; // required public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyRecordsTimestr_args.class, metaDataMap); } public navigateKeyRecordsTimestr_args() {} public navigateKeyRecordsTimestr_args(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyRecordsTimestr_args( navigateKeyRecordsTimestr_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyRecordsTimestr_args deepCopy() { return new navigateKeyRecordsTimestr_args(this); } @Override public void clear() { this.key = null; this.records = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyRecordsTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public navigateKeyRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public navigateKeyRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyRecordsTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyRecordsTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyRecordsTimestr_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeyRecordsTimestr_args) return this.equals((navigateKeyRecordsTimestr_args) that); return false; } public boolean equals(navigateKeyRecordsTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyRecordsTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeyRecordsTimestr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeyRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyRecordsTimestr_argsStandardScheme getScheme() { return new navigateKeyRecordsTimestr_argsStandardScheme(); } } private static class navigateKeyRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list3042 = iprot .readListBegin(); struct.records = new ArrayList( _list3042.size); long _elem3043; for (int _i3044 = 0; _i3044 < _list3042.size; ++_i3044) { _elem3043 = iprot.readI64(); struct.records.add(_elem3043); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter3045 : struct.records) { oprot.writeI64(_iter3045); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyRecordsTimestr_argsTupleScheme getScheme() { return new navigateKeyRecordsTimestr_argsTupleScheme(); } } private static class navigateKeyRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter3046 : struct.records) { oprot.writeI64(_iter3046); } } } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list3047 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list3047.size); long _elem3048; for (int _i3049 = 0; _i3049 < _list3047.size; ++_i3049) { _elem3048 = iprot.readI64(); struct.records.add(_elem3048); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyRecordsTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecordsTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyRecordsTimestr_result.class, metaDataMap); } public navigateKeyRecordsTimestr_result() {} public navigateKeyRecordsTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public navigateKeyRecordsTimestr_result( navigateKeyRecordsTimestr_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public navigateKeyRecordsTimestr_result deepCopy() { return new navigateKeyRecordsTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyRecordsTimestr_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyRecordsTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyRecordsTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeyRecordsTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public navigateKeyRecordsTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeyRecordsTimestr_result) return this.equals((navigateKeyRecordsTimestr_result) that); return false; } public boolean equals(navigateKeyRecordsTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(navigateKeyRecordsTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeyRecordsTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeyRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyRecordsTimestr_resultStandardScheme getScheme() { return new navigateKeyRecordsTimestr_resultStandardScheme(); } } private static class navigateKeyRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map3050 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map3050.size); long _key3051; Set _val3052; for (int _i3053 = 0; _i3053 < _map3050.size; ++_i3053) { _key3051 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3054 = iprot .readSetBegin(); _val3052 = new LinkedHashSet( 2 * _set3054.size); com.cinchapi.concourse.thrift.TObject _elem3055; for (int _i3056 = 0; _i3056 < _set3054.size; ++_i3056) { _elem3055 = new com.cinchapi.concourse.thrift.TObject(); _elem3055.read(iprot); _val3052.add(_elem3055); } iprot.readSetEnd(); } struct.success.put(_key3051, _val3052); } 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter3057 : struct.success .entrySet()) { oprot.writeI64(_iter3057.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter3057.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3058 : _iter3057 .getValue()) { _iter3058.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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyRecordsTimestr_resultTupleScheme getScheme() { return new navigateKeyRecordsTimestr_resultTupleScheme(); } } private static class navigateKeyRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter3059 : struct.success .entrySet()) { oprot.writeI64(_iter3059.getKey()); { oprot.writeI32(_iter3059.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3060 : _iter3059 .getValue()) { _iter3060.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3061 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map3061.size); long _key3062; Set _val3063; for (int _i3064 = 0; _i3064 < _map3061.size; ++_i3064) { _key3062 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3065 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3063 = new LinkedHashSet( 2 * _set3065.size); com.cinchapi.concourse.thrift.TObject _elem3066; for (int _i3067 = 0; _i3067 < _set3065.size; ++_i3067) { _elem3066 = new com.cinchapi.concourse.thrift.TObject(); _elem3066.read(iprot); _val3063.add(_elem3066); } } struct.success.put(_key3062, _val3063); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class navigateKeysRecordsTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecordsTime_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysRecordsTime_args.class, metaDataMap); } public navigateKeysRecordsTime_args() {} public navigateKeysRecordsTime_args(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysRecordsTime_args( navigateKeysRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysRecordsTime_args deepCopy() { return new navigateKeysRecordsTime_args(this); } @Override public void clear() { this.keys = null; this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysRecordsTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public navigateKeysRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public navigateKeysRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysRecordsTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysRecordsTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeysRecordsTime_args) return this.equals((navigateKeysRecordsTime_args) that); return false; } public boolean equals(navigateKeysRecordsTime_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysRecordsTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeysRecordsTime_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeysRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysRecordsTime_argsStandardScheme getScheme() { return new navigateKeysRecordsTime_argsStandardScheme(); } } private static class navigateKeysRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecordsTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list3068 = iprot .readListBegin(); struct.keys = new ArrayList( _list3068.size); String _elem3069; for (int _i3070 = 0; _i3070 < _list3068.size; ++_i3070) { _elem3069 = iprot.readString(); struct.keys.add(_elem3069); } 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 _list3071 = iprot .readListBegin(); struct.records = new ArrayList( _list3071.size); long _elem3072; for (int _i3073 = 0; _i3073 < _list3071.size; ++_i3073) { _elem3072 = iprot.readI64(); struct.records.add(_elem3072); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeysRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter3074 : struct.keys) { oprot.writeString(_iter3074); } 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 _iter3075 : struct.records) { oprot.writeI64(_iter3075); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysRecordsTime_argsTupleScheme getScheme() { return new navigateKeysRecordsTime_argsTupleScheme(); } } private static class navigateKeysRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter3076 : struct.keys) { oprot.writeString(_iter3076); } } } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter3077 : struct.records) { oprot.writeI64(_iter3077); } } } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list3078 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list3078.size); String _elem3079; for (int _i3080 = 0; _i3080 < _list3078.size; ++_i3080) { _elem3079 = iprot.readString(); struct.keys.add(_elem3079); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list3081 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list3081.size); long _elem3082; for (int _i3083 = 0; _i3083 < _list3081.size; ++_i3083) { _elem3082 = iprot.readI64(); struct.records.add(_elem3082); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysRecordsTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecordsTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData( org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData( org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysRecordsTime_result.class, metaDataMap); } public navigateKeysRecordsTime_result() {} public navigateKeysRecordsTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public navigateKeysRecordsTime_result( navigateKeysRecordsTime_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public navigateKeysRecordsTime_result deepCopy() { return new navigateKeysRecordsTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysRecordsTime_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysRecordsTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysRecordsTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public navigateKeysRecordsTime_result setEx3( com.cinchapi.concourse.thrift.PermissionException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.PermissionException) 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 navigateKeysRecordsTime_result) return this.equals((navigateKeysRecordsTime_result) that); return false; } public boolean equals(navigateKeysRecordsTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(navigateKeysRecordsTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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( "navigateKeysRecordsTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 navigateKeysRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysRecordsTime_resultStandardScheme getScheme() { return new navigateKeysRecordsTime_resultStandardScheme(); } } private static class navigateKeysRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecordsTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map3084 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map3084.size); long _key3085; Map> _val3086; for (int _i3087 = 0; _i3087 < _map3084.size; ++_i3087) { _key3085 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3088 = iprot .readMapBegin(); _val3086 = new LinkedHashMap>( 2 * _map3088.size); String _key3089; Set _val3090; for (int _i3091 = 0; _i3091 < _map3088.size; ++_i3091) { _key3089 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3092 = iprot .readSetBegin(); _val3090 = new LinkedHashSet( 2 * _set3092.size); com.cinchapi.concourse.thrift.TObject _elem3093; for (int _i3094 = 0; _i3094 < _set3092.size; ++_i3094) { _elem3093 = new com.cinchapi.concourse.thrift.TObject(); _elem3093.read(iprot); _val3090.add(_elem3093); } iprot.readSetEnd(); } _val3086.put(_key3089, _val3090); } iprot.readMapEnd(); } struct.success.put(_key3085, _val3086); } 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.PermissionException(); 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, navigateKeysRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter3095 : struct.success .entrySet()) { oprot.writeI64(_iter3095.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter3095.getValue().size())); for (Map.Entry> _iter3096 : _iter3095 .getValue().entrySet()) { oprot.writeString(_iter3096.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter3096.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter3097 : _iter3096 .getValue()) { _iter3097.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 navigateKeysRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysRecordsTime_resultTupleScheme getScheme() { return new navigateKeysRecordsTime_resultTupleScheme(); } } private static class navigateKeysRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter3098 : struct.success .entrySet()) { oprot.writeI64(_iter3098.getKey()); { oprot.writeI32(_iter3098.getValue().size()); for (Map.Entry> _iter3099 : _iter3098 .getValue().entrySet()) { oprot.writeString(_iter3099.getKey()); { oprot.writeI32( _iter3099.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3100 : _iter3099 .getValue()) { _iter3100.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, navigateKeysRecordsTime_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 _map3101 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map3101.size); long _key3102; Map> _val3103; for (int _i3104 = 0; _i3104 < _map3101.size; ++_i3104) { _key3102 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3105 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val3103 = new LinkedHashMap>( 2 * _map3105.size); String _key3106; Set _val3107; for (int _i3108 = 0; _i3108 < _map3105.size; ++_i3108) { _key3106 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3109 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3107 = new LinkedHashSet( 2 * _set3109.size); com.cinchapi.concourse.thrift.TObject _elem3110; for (int _i3111 = 0; _i3111 < _set3109.size; ++_i3111) { _elem3110 = new com.cinchapi.concourse.thrift.TObject(); _elem3110.read(iprot); _val3107.add(_elem3110); } } _val3103.put(_key3106, _val3107); } } struct.success.put(_key3102, _val3103); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class navigateKeysRecordsTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "records", org.apache.thrift.protocol.TType.LIST, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecordsTimestr_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), RECORDS((short) 2, "records"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysRecordsTimestr_args.class, metaDataMap); } public navigateKeysRecordsTimestr_args() {} public navigateKeysRecordsTimestr_args(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysRecordsTimestr_args( navigateKeysRecordsTimestr_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysRecordsTimestr_args deepCopy() { return new navigateKeysRecordsTimestr_args(this); } @Override public void clear() { this.keys = null; this.records = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysRecordsTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if(this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public navigateKeysRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** * Returns true if field records is set (has been assigned a value) and * false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if(!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public navigateKeysRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysRecordsTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysRecordsTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysRecordsTimestr_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case RECORDS: if(value == null) { unsetRecords(); } else { setRecords((List) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeysRecordsTimestr_args) return this.equals((navigateKeysRecordsTimestr_args) that); return false; } public boolean equals(navigateKeysRecordsTimestr_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if(this_present_records || that_present_records) { if(!(this_present_records && that_present_records)) return false; if(!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if(present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysRecordsTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()) .compareTo(other.isSetRecords()); if(lastComparison != 0) { return lastComparison; } if(isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.records, other.records); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeysRecordsTimestr_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("records:"); if(this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeysRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysRecordsTimestr_argsStandardScheme getScheme() { return new navigateKeysRecordsTimestr_argsStandardScheme(); } } private static class navigateKeysRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list3112 = iprot .readListBegin(); struct.keys = new ArrayList( _list3112.size); String _elem3113; for (int _i3114 = 0; _i3114 < _list3112.size; ++_i3114) { _elem3113 = iprot.readString(); struct.keys.add(_elem3113); } 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 _list3115 = iprot .readListBegin(); struct.records = new ArrayList( _list3115.size); long _elem3116; for (int _i3117 = 0; _i3117 < _list3115.size; ++_i3117) { _elem3116 = iprot.readI64(); struct.records.add(_elem3116); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter3118 : struct.keys) { oprot.writeString(_iter3118); } 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 _iter3119 : struct.records) { oprot.writeI64(_iter3119); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysRecordsTimestr_argsTupleScheme getScheme() { return new navigateKeysRecordsTimestr_argsTupleScheme(); } } private static class navigateKeysRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetRecords()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter3120 : struct.keys) { oprot.writeString(_iter3120); } } } if(struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter3121 : struct.records) { oprot.writeI64(_iter3121); } } } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list3122 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list3122.size); String _elem3123; for (int _i3124 = 0; _i3124 < _list3122.size; ++_i3124) { _elem3123 = iprot.readString(); struct.keys.add(_elem3123); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list3125 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list3125.size); long _elem3126; for (int _i3127 = 0; _i3127 < _list3125.size; ++_i3127) { _elem3126 = iprot.readI64(); struct.records.add(_elem3126); } } struct.setRecordsIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysRecordsTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecordsTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysRecordsTimestr_result.class, metaDataMap); } public navigateKeysRecordsTimestr_result() {} public navigateKeysRecordsTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public navigateKeysRecordsTimestr_result( navigateKeysRecordsTimestr_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public navigateKeysRecordsTimestr_result deepCopy() { return new navigateKeysRecordsTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysRecordsTimestr_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysRecordsTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysRecordsTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeysRecordsTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public navigateKeysRecordsTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeysRecordsTimestr_result) return this.equals((navigateKeysRecordsTimestr_result) that); return false; } public boolean equals(navigateKeysRecordsTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(navigateKeysRecordsTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeysRecordsTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeysRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysRecordsTimestr_resultStandardScheme getScheme() { return new navigateKeysRecordsTimestr_resultStandardScheme(); } } private static class navigateKeysRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map3128 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map3128.size); long _key3129; Map> _val3130; for (int _i3131 = 0; _i3131 < _map3128.size; ++_i3131) { _key3129 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3132 = iprot .readMapBegin(); _val3130 = new LinkedHashMap>( 2 * _map3132.size); String _key3133; Set _val3134; for (int _i3135 = 0; _i3135 < _map3132.size; ++_i3135) { _key3133 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3136 = iprot .readSetBegin(); _val3134 = new LinkedHashSet( 2 * _set3136.size); com.cinchapi.concourse.thrift.TObject _elem3137; for (int _i3138 = 0; _i3138 < _set3136.size; ++_i3138) { _elem3137 = new com.cinchapi.concourse.thrift.TObject(); _elem3137.read(iprot); _val3134.add(_elem3137); } iprot.readSetEnd(); } _val3130.put(_key3133, _val3134); } iprot.readMapEnd(); } struct.success.put(_key3129, _val3130); } 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter3139 : struct.success .entrySet()) { oprot.writeI64(_iter3139.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter3139.getValue().size())); for (Map.Entry> _iter3140 : _iter3139 .getValue().entrySet()) { oprot.writeString(_iter3140.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter3140.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter3141 : _iter3140 .getValue()) { _iter3141.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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysRecordsTimestr_resultTupleScheme getScheme() { return new navigateKeysRecordsTimestr_resultTupleScheme(); } } private static class navigateKeysRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter3142 : struct.success .entrySet()) { oprot.writeI64(_iter3142.getKey()); { oprot.writeI32(_iter3142.getValue().size()); for (Map.Entry> _iter3143 : _iter3142 .getValue().entrySet()) { oprot.writeString(_iter3143.getKey()); { oprot.writeI32( _iter3143.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3144 : _iter3143 .getValue()) { _iter3144.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3145 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map3145.size); long _key3146; Map> _val3147; for (int _i3148 = 0; _i3148 < _map3145.size; ++_i3148) { _key3146 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3149 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val3147 = new LinkedHashMap>( 2 * _map3149.size); String _key3150; Set _val3151; for (int _i3152 = 0; _i3152 < _map3149.size; ++_i3152) { _key3150 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3153 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3151 = new LinkedHashSet( 2 * _set3153.size); com.cinchapi.concourse.thrift.TObject _elem3154; for (int _i3155 = 0; _i3155 < _set3153.size; ++_i3155) { _elem3154 = new com.cinchapi.concourse.thrift.TObject(); _elem3154.read(iprot); _val3151.add(_elem3154); } } _val3147.put(_key3150, _val3151); } } struct.success.put(_key3146, _val3147); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class navigateKeyCcl_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyCcl_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCcl_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyCcl_args.class, metaDataMap); } public navigateKeyCcl_args() {} public navigateKeyCcl_args(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyCcl_args(navigateKeyCcl_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetCcl()) { this.ccl = other.ccl; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyCcl_args deepCopy() { return new navigateKeyCcl_args(this); } @Override public void clear() { this.key = null; this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyCcl_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public String getCcl() { return this.ccl; } public navigateKeyCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyCcl_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyCcl_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeyCcl_args) return this.equals((navigateKeyCcl_args) that); return false; } public boolean equals(navigateKeyCcl_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyCcl_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("navigateKeyCcl_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeyCcl_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyCcl_argsStandardScheme getScheme() { return new navigateKeyCcl_argsStandardScheme(); } } private static class navigateKeyCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCcl_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeyCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCcl_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyCcl_argsTupleScheme getScheme() { return new navigateKeyCcl_argsTupleScheme(); } } private static class navigateKeyCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyCcl_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCcl_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyCcl_result.class, metaDataMap); } public navigateKeyCcl_result() {} public navigateKeyCcl_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public navigateKeyCcl_result(navigateKeyCcl_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public navigateKeyCcl_result deepCopy() { return new navigateKeyCcl_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyCcl_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyCcl_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyCcl_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeyCcl_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public navigateKeyCcl_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeyCcl_result) return this.equals((navigateKeyCcl_result) that); return false; } public boolean equals(navigateKeyCcl_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(navigateKeyCcl_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("navigateKeyCcl_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeyCcl_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyCcl_resultStandardScheme getScheme() { return new navigateKeyCcl_resultStandardScheme(); } } private static class navigateKeyCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCcl_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map3156 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map3156.size); long _key3157; Set _val3158; for (int _i3159 = 0; _i3159 < _map3156.size; ++_i3159) { _key3157 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3160 = iprot .readSetBegin(); _val3158 = new LinkedHashSet( 2 * _set3160.size); com.cinchapi.concourse.thrift.TObject _elem3161; for (int _i3162 = 0; _i3162 < _set3160.size; ++_i3162) { _elem3161 = new com.cinchapi.concourse.thrift.TObject(); _elem3161.read(iprot); _val3158.add(_elem3161); } iprot.readSetEnd(); } struct.success.put(_key3157, _val3158); } 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeyCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter3163 : struct.success .entrySet()) { oprot.writeI64(_iter3163.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter3163.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3164 : _iter3163 .getValue()) { _iter3164.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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCcl_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyCcl_resultTupleScheme getScheme() { return new navigateKeyCcl_resultTupleScheme(); } } private static class navigateKeyCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter3165 : struct.success .entrySet()) { oprot.writeI64(_iter3165.getKey()); { oprot.writeI32(_iter3165.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3166 : _iter3165 .getValue()) { _iter3166.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3167 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map3167.size); long _key3168; Set _val3169; for (int _i3170 = 0; _i3170 < _map3167.size; ++_i3170) { _key3168 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3171 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3169 = new LinkedHashSet( 2 * _set3171.size); com.cinchapi.concourse.thrift.TObject _elem3172; for (int _i3173 = 0; _i3173 < _set3171.size; ++_i3173) { _elem3172 = new com.cinchapi.concourse.thrift.TObject(); _elem3172.read(iprot); _val3169.add(_elem3172); } } struct.success.put(_key3168, _val3169); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class navigateKeyCclTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyCclTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCclTime_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyCclTime_args.class, metaDataMap); } public navigateKeyCclTime_args() {} public navigateKeyCclTime_args(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyCclTime_args(navigateKeyCclTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetCcl()) { this.ccl = other.ccl; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyCclTime_args deepCopy() { return new navigateKeyCclTime_args(this); } @Override public void clear() { this.key = null; this.ccl = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyCclTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public String getCcl() { return this.ccl; } public navigateKeyCclTime_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public long getTimestamp() { return this.timestamp; } public navigateKeyCclTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyCclTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyCclTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeyCclTime_args) return this.equals((navigateKeyCclTime_args) that); return false; } public boolean equals(navigateKeyCclTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyCclTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("navigateKeyCclTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeyCclTime_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyCclTime_argsStandardScheme getScheme() { return new navigateKeyCclTime_argsStandardScheme(); } } private static class navigateKeyCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCclTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeyCclTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCclTime_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyCclTime_argsTupleScheme getScheme() { return new navigateKeyCclTime_argsTupleScheme(); } } private static class navigateKeyCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyCclTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyCclTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCclTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyCclTime_result.class, metaDataMap); } public navigateKeyCclTime_result() {} public navigateKeyCclTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public navigateKeyCclTime_result(navigateKeyCclTime_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public navigateKeyCclTime_result deepCopy() { return new navigateKeyCclTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyCclTime_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyCclTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyCclTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeyCclTime_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public navigateKeyCclTime_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeyCclTime_result) return this.equals((navigateKeyCclTime_result) that); return false; } public boolean equals(navigateKeyCclTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(navigateKeyCclTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("navigateKeyCclTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeyCclTime_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyCclTime_resultStandardScheme getScheme() { return new navigateKeyCclTime_resultStandardScheme(); } } private static class navigateKeyCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCclTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map3174 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map3174.size); long _key3175; Set _val3176; for (int _i3177 = 0; _i3177 < _map3174.size; ++_i3177) { _key3175 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3178 = iprot .readSetBegin(); _val3176 = new LinkedHashSet( 2 * _set3178.size); com.cinchapi.concourse.thrift.TObject _elem3179; for (int _i3180 = 0; _i3180 < _set3178.size; ++_i3180) { _elem3179 = new com.cinchapi.concourse.thrift.TObject(); _elem3179.read(iprot); _val3176.add(_elem3179); } iprot.readSetEnd(); } struct.success.put(_key3175, _val3176); } 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeyCclTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter3181 : struct.success .entrySet()) { oprot.writeI64(_iter3181.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter3181.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3182 : _iter3181 .getValue()) { _iter3182.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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCclTime_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyCclTime_resultTupleScheme getScheme() { return new navigateKeyCclTime_resultTupleScheme(); } } private static class navigateKeyCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter3183 : struct.success .entrySet()) { oprot.writeI64(_iter3183.getKey()); { oprot.writeI32(_iter3183.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3184 : _iter3183 .getValue()) { _iter3184.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3185 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map3185.size); long _key3186; Set _val3187; for (int _i3188 = 0; _i3188 < _map3185.size; ++_i3188) { _key3186 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3189 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3187 = new LinkedHashSet( 2 * _set3189.size); com.cinchapi.concourse.thrift.TObject _elem3190; for (int _i3191 = 0; _i3191 < _set3189.size; ++_i3191) { _elem3190 = new com.cinchapi.concourse.thrift.TObject(); _elem3190.read(iprot); _val3187.add(_elem3190); } } struct.success.put(_key3186, _val3187); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class navigateKeyCclTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyCclTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCclTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCclTimestr_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyCclTimestr_args.class, metaDataMap); } public navigateKeyCclTimestr_args() {} public navigateKeyCclTimestr_args(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyCclTimestr_args(navigateKeyCclTimestr_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetCcl()) { this.ccl = other.ccl; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyCclTimestr_args deepCopy() { return new navigateKeyCclTimestr_args(this); } @Override public void clear() { this.key = null; this.ccl = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyCclTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public String getCcl() { return this.ccl; } public navigateKeyCclTimestr_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public String getTimestamp() { return this.timestamp; } public navigateKeyCclTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyCclTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyCclTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyCclTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeyCclTimestr_args) return this.equals((navigateKeyCclTimestr_args) that); return false; } public boolean equals(navigateKeyCclTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyCclTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("navigateKeyCclTimestr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeyCclTimestr_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyCclTimestr_argsStandardScheme getScheme() { return new navigateKeyCclTimestr_argsStandardScheme(); } } private static class navigateKeyCclTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCclTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeyCclTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCclTimestr_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyCclTimestr_argsTupleScheme getScheme() { return new navigateKeyCclTimestr_argsTupleScheme(); } } private static class navigateKeyCclTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyCclTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyCclTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCclTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCclTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyCclTimestr_result.class, metaDataMap); } public navigateKeyCclTimestr_result() {} public navigateKeyCclTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public navigateKeyCclTimestr_result( navigateKeyCclTimestr_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public navigateKeyCclTimestr_result deepCopy() { return new navigateKeyCclTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyCclTimestr_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyCclTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyCclTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeyCclTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public navigateKeyCclTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeyCclTimestr_result) return this.equals((navigateKeyCclTimestr_result) that); return false; } public boolean equals(navigateKeyCclTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(navigateKeyCclTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeyCclTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeyCclTimestr_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyCclTimestr_resultStandardScheme getScheme() { return new navigateKeyCclTimestr_resultStandardScheme(); } } private static class navigateKeyCclTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCclTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map3192 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map3192.size); long _key3193; Set _val3194; for (int _i3195 = 0; _i3195 < _map3192.size; ++_i3195) { _key3193 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3196 = iprot .readSetBegin(); _val3194 = new LinkedHashSet( 2 * _set3196.size); com.cinchapi.concourse.thrift.TObject _elem3197; for (int _i3198 = 0; _i3198 < _set3196.size; ++_i3198) { _elem3197 = new com.cinchapi.concourse.thrift.TObject(); _elem3197.read(iprot); _val3194.add(_elem3197); } iprot.readSetEnd(); } struct.success.put(_key3193, _val3194); } 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeyCclTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter3199 : struct.success .entrySet()) { oprot.writeI64(_iter3199.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter3199.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3200 : _iter3199 .getValue()) { _iter3200.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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCclTimestr_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyCclTimestr_resultTupleScheme getScheme() { return new navigateKeyCclTimestr_resultTupleScheme(); } } private static class navigateKeyCclTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter3201 : struct.success .entrySet()) { oprot.writeI64(_iter3201.getKey()); { oprot.writeI32(_iter3201.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3202 : _iter3201 .getValue()) { _iter3202.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3203 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map3203.size); long _key3204; Set _val3205; for (int _i3206 = 0; _i3206 < _map3203.size; ++_i3206) { _key3204 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3207 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3205 = new LinkedHashSet( 2 * _set3207.size); com.cinchapi.concourse.thrift.TObject _elem3208; for (int _i3209 = 0; _i3209 < _set3207.size; ++_i3209) { _elem3208 = new com.cinchapi.concourse.thrift.TObject(); _elem3208.read(iprot); _val3205.add(_elem3208); } } struct.success.put(_key3204, _val3205); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class navigateKeysCcl_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysCcl_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCcl_argsTupleSchemeFactory()); } public List keys; // required public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), CCL((short) 2, "ccl"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // CCL return CCL; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysCcl_args.class, metaDataMap); } public navigateKeysCcl_args() {} public navigateKeysCcl_args(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysCcl_args(navigateKeysCcl_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetCcl()) { this.ccl = other.ccl; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysCcl_args deepCopy() { return new navigateKeysCcl_args(this); } @Override public void clear() { this.keys = null; this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysCcl_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public String getCcl() { return this.ccl; } public navigateKeysCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysCcl_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysCcl_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeysCcl_args) return this.equals((navigateKeysCcl_args) that); return false; } public boolean equals(navigateKeysCcl_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysCcl_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("navigateKeysCcl_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeysCcl_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysCcl_argsStandardScheme getScheme() { return new navigateKeysCcl_argsStandardScheme(); } } private static class navigateKeysCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCcl_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list3210 = iprot .readListBegin(); struct.keys = new ArrayList( _list3210.size); String _elem3211; for (int _i3212 = 0; _i3212 < _list3210.size; ++_i3212) { _elem3211 = iprot.readString(); struct.keys.add(_elem3211); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeysCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter3213 : struct.keys) { oprot.writeString(_iter3213); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCcl_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysCcl_argsTupleScheme getScheme() { return new navigateKeysCcl_argsTupleScheme(); } } private static class navigateKeysCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter3214 : struct.keys) { oprot.writeString(_iter3214); } } } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list3215 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list3215.size); String _elem3216; for (int _i3217 = 0; _i3217 < _list3215.size; ++_i3217) { _elem3216 = iprot.readString(); struct.keys.add(_elem3216); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysCcl_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCcl_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysCcl_result.class, metaDataMap); } public navigateKeysCcl_result() {} public navigateKeysCcl_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public navigateKeysCcl_result(navigateKeysCcl_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public navigateKeysCcl_result deepCopy() { return new navigateKeysCcl_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysCcl_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysCcl_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysCcl_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeysCcl_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public navigateKeysCcl_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeysCcl_result) return this.equals((navigateKeysCcl_result) that); return false; } public boolean equals(navigateKeysCcl_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(navigateKeysCcl_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("navigateKeysCcl_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeysCcl_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysCcl_resultStandardScheme getScheme() { return new navigateKeysCcl_resultStandardScheme(); } } private static class navigateKeysCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCcl_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map3218 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map3218.size); long _key3219; Map> _val3220; for (int _i3221 = 0; _i3221 < _map3218.size; ++_i3221) { _key3219 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3222 = iprot .readMapBegin(); _val3220 = new LinkedHashMap>( 2 * _map3222.size); String _key3223; Set _val3224; for (int _i3225 = 0; _i3225 < _map3222.size; ++_i3225) { _key3223 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3226 = iprot .readSetBegin(); _val3224 = new LinkedHashSet( 2 * _set3226.size); com.cinchapi.concourse.thrift.TObject _elem3227; for (int _i3228 = 0; _i3228 < _set3226.size; ++_i3228) { _elem3227 = new com.cinchapi.concourse.thrift.TObject(); _elem3227.read(iprot); _val3224.add(_elem3227); } iprot.readSetEnd(); } _val3220.put(_key3223, _val3224); } iprot.readMapEnd(); } struct.success.put(_key3219, _val3220); } 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeysCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter3229 : struct.success .entrySet()) { oprot.writeI64(_iter3229.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter3229.getValue().size())); for (Map.Entry> _iter3230 : _iter3229 .getValue().entrySet()) { oprot.writeString(_iter3230.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter3230.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter3231 : _iter3230 .getValue()) { _iter3231.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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCcl_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysCcl_resultTupleScheme getScheme() { return new navigateKeysCcl_resultTupleScheme(); } } private static class navigateKeysCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter3232 : struct.success .entrySet()) { oprot.writeI64(_iter3232.getKey()); { oprot.writeI32(_iter3232.getValue().size()); for (Map.Entry> _iter3233 : _iter3232 .getValue().entrySet()) { oprot.writeString(_iter3233.getKey()); { oprot.writeI32( _iter3233.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3234 : _iter3233 .getValue()) { _iter3234.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3235 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map3235.size); long _key3236; Map> _val3237; for (int _i3238 = 0; _i3238 < _map3235.size; ++_i3238) { _key3236 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3239 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val3237 = new LinkedHashMap>( 2 * _map3239.size); String _key3240; Set _val3241; for (int _i3242 = 0; _i3242 < _map3239.size; ++_i3242) { _key3240 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3243 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3241 = new LinkedHashSet( 2 * _set3243.size); com.cinchapi.concourse.thrift.TObject _elem3244; for (int _i3245 = 0; _i3245 < _set3243.size; ++_i3245) { _elem3244 = new com.cinchapi.concourse.thrift.TObject(); _elem3244.read(iprot); _val3241.add(_elem3244); } } _val3237.put(_key3240, _val3241); } } struct.success.put(_key3236, _val3237); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class navigateKeysCclTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysCclTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCclTime_argsTupleSchemeFactory()); } public List keys; // required public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysCclTime_args.class, metaDataMap); } public navigateKeysCclTime_args() {} public navigateKeysCclTime_args(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysCclTime_args(navigateKeysCclTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetCcl()) { this.ccl = other.ccl; } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysCclTime_args deepCopy() { return new navigateKeysCclTime_args(this); } @Override public void clear() { this.keys = null; this.ccl = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysCclTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public String getCcl() { return this.ccl; } public navigateKeysCclTime_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public long getTimestamp() { return this.timestamp; } public navigateKeysCclTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysCclTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysCclTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeysCclTime_args) return this.equals((navigateKeysCclTime_args) that); return false; } public boolean equals(navigateKeysCclTime_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysCclTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("navigateKeysCclTime_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeysCclTime_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysCclTime_argsStandardScheme getScheme() { return new navigateKeysCclTime_argsStandardScheme(); } } private static class navigateKeysCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCclTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list3246 = iprot .readListBegin(); struct.keys = new ArrayList( _list3246.size); String _elem3247; for (int _i3248 = 0; _i3248 < _list3246.size; ++_i3248) { _elem3247 = iprot.readString(); struct.keys.add(_elem3247); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeysCclTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter3249 : struct.keys) { oprot.writeString(_iter3249); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCclTime_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysCclTime_argsTupleScheme getScheme() { return new navigateKeysCclTime_argsTupleScheme(); } } private static class navigateKeysCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter3250 : struct.keys) { oprot.writeString(_iter3250); } } } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list3251 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list3251.size); String _elem3252; for (int _i3253 = 0; _i3253 < _list3251.size; ++_i3253) { _elem3252 = iprot.readString(); struct.keys.add(_elem3252); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysCclTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysCclTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCclTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysCclTime_result.class, metaDataMap); } public navigateKeysCclTime_result() {} public navigateKeysCclTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public navigateKeysCclTime_result(navigateKeysCclTime_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public navigateKeysCclTime_result deepCopy() { return new navigateKeysCclTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysCclTime_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysCclTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysCclTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeysCclTime_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public navigateKeysCclTime_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeysCclTime_result) return this.equals((navigateKeysCclTime_result) that); return false; } public boolean equals(navigateKeysCclTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(navigateKeysCclTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("navigateKeysCclTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeysCclTime_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysCclTime_resultStandardScheme getScheme() { return new navigateKeysCclTime_resultStandardScheme(); } } private static class navigateKeysCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCclTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map3254 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map3254.size); long _key3255; Map> _val3256; for (int _i3257 = 0; _i3257 < _map3254.size; ++_i3257) { _key3255 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3258 = iprot .readMapBegin(); _val3256 = new LinkedHashMap>( 2 * _map3258.size); String _key3259; Set _val3260; for (int _i3261 = 0; _i3261 < _map3258.size; ++_i3261) { _key3259 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3262 = iprot .readSetBegin(); _val3260 = new LinkedHashSet( 2 * _set3262.size); com.cinchapi.concourse.thrift.TObject _elem3263; for (int _i3264 = 0; _i3264 < _set3262.size; ++_i3264) { _elem3263 = new com.cinchapi.concourse.thrift.TObject(); _elem3263.read(iprot); _val3260.add(_elem3263); } iprot.readSetEnd(); } _val3256.put(_key3259, _val3260); } iprot.readMapEnd(); } struct.success.put(_key3255, _val3256); } 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeysCclTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter3265 : struct.success .entrySet()) { oprot.writeI64(_iter3265.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter3265.getValue().size())); for (Map.Entry> _iter3266 : _iter3265 .getValue().entrySet()) { oprot.writeString(_iter3266.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter3266.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter3267 : _iter3266 .getValue()) { _iter3267.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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCclTime_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysCclTime_resultTupleScheme getScheme() { return new navigateKeysCclTime_resultTupleScheme(); } } private static class navigateKeysCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter3268 : struct.success .entrySet()) { oprot.writeI64(_iter3268.getKey()); { oprot.writeI32(_iter3268.getValue().size()); for (Map.Entry> _iter3269 : _iter3268 .getValue().entrySet()) { oprot.writeString(_iter3269.getKey()); { oprot.writeI32( _iter3269.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3270 : _iter3269 .getValue()) { _iter3270.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3271 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map3271.size); long _key3272; Map> _val3273; for (int _i3274 = 0; _i3274 < _map3271.size; ++_i3274) { _key3272 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3275 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val3273 = new LinkedHashMap>( 2 * _map3275.size); String _key3276; Set _val3277; for (int _i3278 = 0; _i3278 < _map3275.size; ++_i3278) { _key3276 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3279 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3277 = new LinkedHashSet( 2 * _set3279.size); com.cinchapi.concourse.thrift.TObject _elem3280; for (int _i3281 = 0; _i3281 < _set3279.size; ++_i3281) { _elem3280 = new com.cinchapi.concourse.thrift.TObject(); _elem3280.read(iprot); _val3277.add(_elem3280); } } _val3273.put(_key3276, _val3277); } } struct.success.put(_key3272, _val3273); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class navigateKeysCclTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysCclTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField( "ccl", org.apache.thrift.protocol.TType.STRING, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCclTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCclTimestr_argsTupleSchemeFactory()); } public List keys; // required public String ccl; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), CCL((short) 2, "ccl"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysCclTimestr_args.class, metaDataMap); } public navigateKeysCclTimestr_args() {} public navigateKeysCclTimestr_args(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysCclTimestr_args(navigateKeysCclTimestr_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetCcl()) { this.ccl = other.ccl; } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysCclTimestr_args deepCopy() { return new navigateKeysCclTimestr_args(this); } @Override public void clear() { this.keys = null; this.ccl = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysCclTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public String getCcl() { return this.ccl; } public navigateKeysCclTimestr_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** * Returns true if field ccl is set (has been assigned a value) and * false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if(!value) { this.ccl = null; } } public String getTimestamp() { return this.timestamp; } public navigateKeysCclTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysCclTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysCclTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysCclTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case CCL: if(value == null) { unsetCcl(); } else { setCcl((String) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeysCclTimestr_args) return this.equals((navigateKeysCclTimestr_args) that); return false; } public boolean equals(navigateKeysCclTimestr_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if(this_present_ccl || that_present_ccl) { if(!(this_present_ccl && that_present_ccl)) return false; if(!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if(present_ccl) list.add(ccl); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysCclTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()) .compareTo(other.isSetCcl()); if(lastComparison != 0) { return lastComparison; } if(isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ccl, other.ccl); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeysCclTimestr_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("ccl:"); if(this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeysCclTimestr_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysCclTimestr_argsStandardScheme getScheme() { return new navigateKeysCclTimestr_argsStandardScheme(); } } private static class navigateKeysCclTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCclTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list3282 = iprot .readListBegin(); struct.keys = new ArrayList( _list3282.size); String _elem3283; for (int _i3284 = 0; _i3284 < _list3282.size; ++_i3284) { _elem3283 = iprot.readString(); struct.keys.add(_elem3283); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeysCclTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter3285 : struct.keys) { oprot.writeString(_iter3285); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCclTimestr_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysCclTimestr_argsTupleScheme getScheme() { return new navigateKeysCclTimestr_argsTupleScheme(); } } private static class navigateKeysCclTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetCcl()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter3286 : struct.keys) { oprot.writeString(_iter3286); } } } if(struct.isSetCcl()) { oprot.writeString(struct.ccl); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list3287 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list3287.size); String _elem3288; for (int _i3289 = 0; _i3289 < _list3287.size; ++_i3289) { _elem3288 = iprot.readString(); struct.keys.add(_elem3288); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysCclTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysCclTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCclTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCclTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysCclTimestr_result.class, metaDataMap); } public navigateKeysCclTimestr_result() {} public navigateKeysCclTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public navigateKeysCclTimestr_result( navigateKeysCclTimestr_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public navigateKeysCclTimestr_result deepCopy() { return new navigateKeysCclTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysCclTimestr_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysCclTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysCclTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeysCclTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public navigateKeysCclTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeysCclTimestr_result) return this.equals((navigateKeysCclTimestr_result) that); return false; } public boolean equals(navigateKeysCclTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(navigateKeysCclTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeysCclTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeysCclTimestr_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysCclTimestr_resultStandardScheme getScheme() { return new navigateKeysCclTimestr_resultStandardScheme(); } } private static class navigateKeysCclTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCclTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map3290 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map3290.size); long _key3291; Map> _val3292; for (int _i3293 = 0; _i3293 < _map3290.size; ++_i3293) { _key3291 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3294 = iprot .readMapBegin(); _val3292 = new LinkedHashMap>( 2 * _map3294.size); String _key3295; Set _val3296; for (int _i3297 = 0; _i3297 < _map3294.size; ++_i3297) { _key3295 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3298 = iprot .readSetBegin(); _val3296 = new LinkedHashSet( 2 * _set3298.size); com.cinchapi.concourse.thrift.TObject _elem3299; for (int _i3300 = 0; _i3300 < _set3298.size; ++_i3300) { _elem3299 = new com.cinchapi.concourse.thrift.TObject(); _elem3299.read(iprot); _val3296.add(_elem3299); } iprot.readSetEnd(); } _val3292.put(_key3295, _val3296); } iprot.readMapEnd(); } struct.success.put(_key3291, _val3292); } 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeysCclTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter3301 : struct.success .entrySet()) { oprot.writeI64(_iter3301.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter3301.getValue().size())); for (Map.Entry> _iter3302 : _iter3301 .getValue().entrySet()) { oprot.writeString(_iter3302.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter3302.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter3303 : _iter3302 .getValue()) { _iter3303.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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCclTimestr_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysCclTimestr_resultTupleScheme getScheme() { return new navigateKeysCclTimestr_resultTupleScheme(); } } private static class navigateKeysCclTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter3304 : struct.success .entrySet()) { oprot.writeI64(_iter3304.getKey()); { oprot.writeI32(_iter3304.getValue().size()); for (Map.Entry> _iter3305 : _iter3304 .getValue().entrySet()) { oprot.writeString(_iter3305.getKey()); { oprot.writeI32( _iter3305.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3306 : _iter3305 .getValue()) { _iter3306.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3307 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map3307.size); long _key3308; Map> _val3309; for (int _i3310 = 0; _i3310 < _map3307.size; ++_i3310) { _key3308 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3311 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val3309 = new LinkedHashMap>( 2 * _map3311.size); String _key3312; Set _val3313; for (int _i3314 = 0; _i3314 < _map3311.size; ++_i3314) { _key3312 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3315 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3313 = new LinkedHashSet( 2 * _set3315.size); com.cinchapi.concourse.thrift.TObject _elem3316; for (int _i3317 = 0; _i3317 < _set3315.size; ++_i3317) { _elem3316 = new com.cinchapi.concourse.thrift.TObject(); _elem3316.read(iprot); _val3313.add(_elem3316); } } _val3309.put(_key3312, _val3313); } } struct.success.put(_key3308, _val3309); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class navigateKeyCriteria_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyCriteria_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCriteria_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyCriteria_args.class, metaDataMap); } public navigateKeyCriteria_args() {} public navigateKeyCriteria_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyCriteria_args(navigateKeyCriteria_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyCriteria_args deepCopy() { return new navigateKeyCriteria_args(this); } @Override public void clear() { this.key = null; this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyCriteria_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public navigateKeyCriteria_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyCriteria_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyCriteria_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeyCriteria_args) return this.equals((navigateKeyCriteria_args) that); return false; } public boolean equals(navigateKeyCriteria_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyCriteria_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("navigateKeyCriteria_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeyCriteria_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyCriteria_argsStandardScheme getScheme() { return new navigateKeyCriteria_argsStandardScheme(); } } private static class navigateKeyCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCriteria_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeyCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCriteria_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyCriteria_argsTupleScheme getScheme() { return new navigateKeyCriteria_argsTupleScheme(); } } private static class navigateKeyCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyCriteria_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCriteria_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyCriteria_result.class, metaDataMap); } public navigateKeyCriteria_result() {} public navigateKeyCriteria_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public navigateKeyCriteria_result(navigateKeyCriteria_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public navigateKeyCriteria_result deepCopy() { return new navigateKeyCriteria_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyCriteria_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyCriteria_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyCriteria_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeyCriteria_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public navigateKeyCriteria_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeyCriteria_result) return this.equals((navigateKeyCriteria_result) that); return false; } public boolean equals(navigateKeyCriteria_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(navigateKeyCriteria_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("navigateKeyCriteria_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeyCriteria_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyCriteria_resultStandardScheme getScheme() { return new navigateKeyCriteria_resultStandardScheme(); } } private static class navigateKeyCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCriteria_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map3318 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map3318.size); long _key3319; Set _val3320; for (int _i3321 = 0; _i3321 < _map3318.size; ++_i3321) { _key3319 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3322 = iprot .readSetBegin(); _val3320 = new LinkedHashSet( 2 * _set3322.size); com.cinchapi.concourse.thrift.TObject _elem3323; for (int _i3324 = 0; _i3324 < _set3322.size; ++_i3324) { _elem3323 = new com.cinchapi.concourse.thrift.TObject(); _elem3323.read(iprot); _val3320.add(_elem3323); } iprot.readSetEnd(); } struct.success.put(_key3319, _val3320); } 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeyCriteria_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter3325 : struct.success .entrySet()) { oprot.writeI64(_iter3325.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter3325.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3326 : _iter3325 .getValue()) { _iter3326.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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCriteria_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyCriteria_resultTupleScheme getScheme() { return new navigateKeyCriteria_resultTupleScheme(); } } private static class navigateKeyCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter3327 : struct.success .entrySet()) { oprot.writeI64(_iter3327.getKey()); { oprot.writeI32(_iter3327.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3328 : _iter3327 .getValue()) { _iter3328.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3329 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map3329.size); long _key3330; Set _val3331; for (int _i3332 = 0; _i3332 < _map3329.size; ++_i3332) { _key3330 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3333 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3331 = new LinkedHashSet( 2 * _set3333.size); com.cinchapi.concourse.thrift.TObject _elem3334; for (int _i3335 = 0; _i3335 < _set3333.size; ++_i3335) { _elem3334 = new com.cinchapi.concourse.thrift.TObject(); _elem3334.read(iprot); _val3331.add(_elem3334); } } struct.success.put(_key3330, _val3331); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class navigateKeyCriteriaTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyCriteriaTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCriteriaTime_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyCriteriaTime_args.class, metaDataMap); } public navigateKeyCriteriaTime_args() {} public navigateKeyCriteriaTime_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyCriteriaTime_args( navigateKeyCriteriaTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKey()) { this.key = other.key; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyCriteriaTime_args deepCopy() { return new navigateKeyCriteriaTime_args(this); } @Override public void clear() { this.key = null; this.criteria = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyCriteriaTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public navigateKeyCriteriaTime_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public long getTimestamp() { return this.timestamp; } public navigateKeyCriteriaTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyCriteriaTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyCriteriaTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeyCriteriaTime_args) return this.equals((navigateKeyCriteriaTime_args) that); return false; } public boolean equals(navigateKeyCriteriaTime_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyCriteriaTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeyCriteriaTime_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeyCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyCriteriaTime_argsStandardScheme getScheme() { return new navigateKeyCriteriaTime_argsStandardScheme(); } } private static class navigateKeyCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCriteriaTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeyCriteriaTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyCriteriaTime_argsTupleScheme getScheme() { return new navigateKeyCriteriaTime_argsTupleScheme(); } } private static class navigateKeyCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyCriteriaTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCriteriaTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyCriteriaTime_result.class, metaDataMap); } public navigateKeyCriteriaTime_result() {} public navigateKeyCriteriaTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public navigateKeyCriteriaTime_result( navigateKeyCriteriaTime_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public navigateKeyCriteriaTime_result deepCopy() { return new navigateKeyCriteriaTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyCriteriaTime_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyCriteriaTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyCriteriaTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeyCriteriaTime_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public navigateKeyCriteriaTime_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeyCriteriaTime_result) return this.equals((navigateKeyCriteriaTime_result) that); return false; } public boolean equals(navigateKeyCriteriaTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(navigateKeyCriteriaTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeyCriteriaTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeyCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyCriteriaTime_resultStandardScheme getScheme() { return new navigateKeyCriteriaTime_resultStandardScheme(); } } private static class navigateKeyCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCriteriaTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map3336 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map3336.size); long _key3337; Set _val3338; for (int _i3339 = 0; _i3339 < _map3336.size; ++_i3339) { _key3337 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3340 = iprot .readSetBegin(); _val3338 = new LinkedHashSet( 2 * _set3340.size); com.cinchapi.concourse.thrift.TObject _elem3341; for (int _i3342 = 0; _i3342 < _set3340.size; ++_i3342) { _elem3341 = new com.cinchapi.concourse.thrift.TObject(); _elem3341.read(iprot); _val3338.add(_elem3341); } iprot.readSetEnd(); } struct.success.put(_key3337, _val3338); } 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeyCriteriaTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter3343 : struct.success .entrySet()) { oprot.writeI64(_iter3343.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter3343.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3344 : _iter3343 .getValue()) { _iter3344.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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyCriteriaTime_resultTupleScheme getScheme() { return new navigateKeyCriteriaTime_resultTupleScheme(); } } private static class navigateKeyCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter3345 : struct.success .entrySet()) { oprot.writeI64(_iter3345.getKey()); { oprot.writeI32(_iter3345.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3346 : _iter3345 .getValue()) { _iter3346.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3347 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map3347.size); long _key3348; Set _val3349; for (int _i3350 = 0; _i3350 < _map3347.size; ++_i3350) { _key3348 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3351 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3349 = new LinkedHashSet( 2 * _set3351.size); com.cinchapi.concourse.thrift.TObject _elem3352; for (int _i3353 = 0; _i3353 < _set3351.size; ++_i3353) { _elem3352 = new com.cinchapi.concourse.thrift.TObject(); _elem3352.read(iprot); _val3349.add(_elem3352); } } struct.success.put(_key3348, _val3349); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class navigateKeyCriteriaTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyCriteriaTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField( "key", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCriteriaTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCriteriaTimestr_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short) 1, "key"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyCriteriaTimestr_args.class, metaDataMap); } public navigateKeyCriteriaTimestr_args() {} public navigateKeyCriteriaTimestr_args(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyCriteriaTimestr_args( navigateKeyCriteriaTimestr_args other) { if(other.isSetKey()) { this.key = other.key; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyCriteriaTimestr_args deepCopy() { return new navigateKeyCriteriaTimestr_args(this); } @Override public void clear() { this.key = null; this.criteria = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyCriteriaTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** * Returns true if field key is set (has been assigned a value) and * false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if(!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public navigateKeyCriteriaTimestr_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public String getTimestamp() { return this.timestamp; } public navigateKeyCriteriaTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyCriteriaTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyCriteriaTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyCriteriaTimestr_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if(value == null) { unsetKey(); } else { setKey((String) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeyCriteriaTimestr_args) return this.equals((navigateKeyCriteriaTimestr_args) that); return false; } public boolean equals(navigateKeyCriteriaTimestr_args that) { if(that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if(this_present_key || that_present_key) { if(!(this_present_key && that_present_key)) return false; if(!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if(present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyCriteriaTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()) .compareTo(other.isSetKey()); if(lastComparison != 0) { return lastComparison; } if(isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.key, other.key); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeyCriteriaTimestr_args("); boolean first = true; sb.append("key:"); if(this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeyCriteriaTimestr_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyCriteriaTimestr_argsStandardScheme getScheme() { return new navigateKeyCriteriaTimestr_argsStandardScheme(); } } private static class navigateKeyCriteriaTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEY if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCriteriaTimestr_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyCriteriaTimestr_argsTupleScheme getScheme() { return new navigateKeyCriteriaTimestr_argsTupleScheme(); } } private static class navigateKeyCriteriaTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKey()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKey()) { oprot.writeString(struct.key); } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyCriteriaTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeyCriteriaTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCriteriaTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCriteriaTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeyCriteriaTimestr_result.class, metaDataMap); } public navigateKeyCriteriaTimestr_result() {} public navigateKeyCriteriaTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public navigateKeyCriteriaTimestr_result( navigateKeyCriteriaTimestr_result other) { if(other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>( other.success.size()); for (Map.Entry> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet( other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public navigateKeyCriteriaTimestr_result deepCopy() { return new navigateKeyCriteriaTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if(this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyCriteriaTimestr_result setSuccess( Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyCriteriaTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyCriteriaTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeyCriteriaTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public navigateKeyCriteriaTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeyCriteriaTimestr_result) return this.equals((navigateKeyCriteriaTimestr_result) that); return false; } public boolean equals(navigateKeyCriteriaTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(navigateKeyCriteriaTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeyCriteriaTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeyCriteriaTimestr_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyCriteriaTimestr_resultStandardScheme getScheme() { return new navigateKeyCriteriaTimestr_resultStandardScheme(); } } private static class navigateKeyCriteriaTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map3354 = iprot .readMapBegin(); struct.success = new LinkedHashMap>( 2 * _map3354.size); long _key3355; Set _val3356; for (int _i3357 = 0; _i3357 < _map3354.size; ++_i3357) { _key3355 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3358 = iprot .readSetBegin(); _val3356 = new LinkedHashSet( 2 * _set3358.size); com.cinchapi.concourse.thrift.TObject _elem3359; for (int _i3360 = 0; _i3360 < _set3358.size; ++_i3360) { _elem3359 = new com.cinchapi.concourse.thrift.TObject(); _elem3359.read(iprot); _val3356.add(_elem3359); } iprot.readSetEnd(); } struct.success.put(_key3355, _val3356); } 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter3361 : struct.success .entrySet()) { oprot.writeI64(_iter3361.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter3361.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3362 : _iter3361 .getValue()) { _iter3362.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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCriteriaTimestr_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyCriteriaTimestr_resultTupleScheme getScheme() { return new navigateKeyCriteriaTimestr_resultTupleScheme(); } } private static class navigateKeyCriteriaTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter3363 : struct.success .entrySet()) { oprot.writeI64(_iter3363.getKey()); { oprot.writeI32(_iter3363.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3364 : _iter3363 .getValue()) { _iter3364.write(oprot); } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3365 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>( 2 * _map3365.size); long _key3366; Set _val3367; for (int _i3368 = 0; _i3368 < _map3365.size; ++_i3368) { _key3366 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3369 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3367 = new LinkedHashSet( 2 * _set3369.size); com.cinchapi.concourse.thrift.TObject _elem3370; for (int _i3371 = 0; _i3371 < _set3369.size; ++_i3371) { _elem3370 = new com.cinchapi.concourse.thrift.TObject(); _elem3370.read(iprot); _val3367.add(_elem3370); } } struct.success.put(_key3366, _val3367); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class navigateKeysCriteria_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysCriteria_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCriteria_argsTupleSchemeFactory()); } public List keys; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), CRITERIA((short) 2, "criteria"), CREDS((short) 3, "creds"), TRANSACTION((short) 4, "transaction"), ENVIRONMENT((short) 5, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // CRITERIA return CRITERIA; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysCriteria_args.class, metaDataMap); } public navigateKeysCriteria_args() {} public navigateKeysCriteria_args(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysCriteria_args(navigateKeysCriteria_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysCriteria_args deepCopy() { return new navigateKeysCriteria_args(this); } @Override public void clear() { this.keys = null; this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysCriteria_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public navigateKeysCriteria_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysCriteria_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysCriteria_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeysCriteria_args) return this.equals((navigateKeysCriteria_args) that); return false; } public boolean equals(navigateKeysCriteria_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysCriteria_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("navigateKeysCriteria_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeysCriteria_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysCriteria_argsStandardScheme getScheme() { return new navigateKeysCriteria_argsStandardScheme(); } } private static class navigateKeysCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCriteria_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list3372 = iprot .readListBegin(); struct.keys = new ArrayList( _list3372.size); String _elem3373; for (int _i3374 = 0; _i3374 < _list3372.size; ++_i3374) { _elem3373 = iprot.readString(); struct.keys.add(_elem3373); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeysCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter3375 : struct.keys) { oprot.writeString(_iter3375); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCriteria_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysCriteria_argsTupleScheme getScheme() { return new navigateKeysCriteria_argsTupleScheme(); } } private static class navigateKeysCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } if(struct.isSetTransaction()) { optionals.set(3); } if(struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter3376 : struct.keys) { oprot.writeString(_iter3376); } } } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list3377 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list3377.size); String _elem3378; for (int _i3379 = 0; _i3379 < _list3377.size; ++_i3379) { _elem3378 = iprot.readString(); struct.keys.add(_elem3378); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysCriteria_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCriteria_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysCriteria_result.class, metaDataMap); } public navigateKeysCriteria_result() {} public navigateKeysCriteria_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public navigateKeysCriteria_result(navigateKeysCriteria_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public navigateKeysCriteria_result deepCopy() { return new navigateKeysCriteria_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysCriteria_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysCriteria_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysCriteria_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeysCriteria_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public navigateKeysCriteria_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeysCriteria_result) return this.equals((navigateKeysCriteria_result) that); return false; } public boolean equals(navigateKeysCriteria_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(navigateKeysCriteria_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeysCriteria_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeysCriteria_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysCriteria_resultStandardScheme getScheme() { return new navigateKeysCriteria_resultStandardScheme(); } } private static class navigateKeysCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCriteria_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map3380 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map3380.size); long _key3381; Map> _val3382; for (int _i3383 = 0; _i3383 < _map3380.size; ++_i3383) { _key3381 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3384 = iprot .readMapBegin(); _val3382 = new LinkedHashMap>( 2 * _map3384.size); String _key3385; Set _val3386; for (int _i3387 = 0; _i3387 < _map3384.size; ++_i3387) { _key3385 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3388 = iprot .readSetBegin(); _val3386 = new LinkedHashSet( 2 * _set3388.size); com.cinchapi.concourse.thrift.TObject _elem3389; for (int _i3390 = 0; _i3390 < _set3388.size; ++_i3390) { _elem3389 = new com.cinchapi.concourse.thrift.TObject(); _elem3389.read(iprot); _val3386.add(_elem3389); } iprot.readSetEnd(); } _val3382.put(_key3385, _val3386); } iprot.readMapEnd(); } struct.success.put(_key3381, _val3382); } 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeysCriteria_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter3391 : struct.success .entrySet()) { oprot.writeI64(_iter3391.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter3391.getValue().size())); for (Map.Entry> _iter3392 : _iter3391 .getValue().entrySet()) { oprot.writeString(_iter3392.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter3392.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter3393 : _iter3392 .getValue()) { _iter3393.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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCriteria_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysCriteria_resultTupleScheme getScheme() { return new navigateKeysCriteria_resultTupleScheme(); } } private static class navigateKeysCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter3394 : struct.success .entrySet()) { oprot.writeI64(_iter3394.getKey()); { oprot.writeI32(_iter3394.getValue().size()); for (Map.Entry> _iter3395 : _iter3394 .getValue().entrySet()) { oprot.writeString(_iter3395.getKey()); { oprot.writeI32( _iter3395.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3396 : _iter3395 .getValue()) { _iter3396.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3397 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map3397.size); long _key3398; Map> _val3399; for (int _i3400 = 0; _i3400 < _map3397.size; ++_i3400) { _key3398 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3401 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val3399 = new LinkedHashMap>( 2 * _map3401.size); String _key3402; Set _val3403; for (int _i3404 = 0; _i3404 < _map3401.size; ++_i3404) { _key3402 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3405 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3403 = new LinkedHashSet( 2 * _set3405.size); com.cinchapi.concourse.thrift.TObject _elem3406; for (int _i3407 = 0; _i3407 < _set3405.size; ++_i3407) { _elem3406 = new com.cinchapi.concourse.thrift.TObject(); _elem3406.read(iprot); _val3403.add(_elem3406); } } _val3399.put(_key3402, _val3403); } } struct.success.put(_key3398, _val3399); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class navigateKeysCriteriaTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysCriteriaTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.I64, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCriteriaTime_argsTupleSchemeFactory()); } public List keys; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysCriteriaTime_args.class, metaDataMap); } public navigateKeysCriteriaTime_args() {} public navigateKeysCriteriaTime_args(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysCriteriaTime_args( navigateKeysCriteriaTime_args other) { __isset_bitfield = other.__isset_bitfield; if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } this.timestamp = other.timestamp; if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysCriteriaTime_args deepCopy() { return new navigateKeysCriteriaTime_args(this); } @Override public void clear() { this.keys = null; this.criteria = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysCriteriaTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public navigateKeysCriteriaTime_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public long getTimestamp() { return this.timestamp; } public navigateKeysCriteriaTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysCriteriaTime_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysCriteriaTime_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysCriteriaTime_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((Long) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeysCriteriaTime_args) return this.equals((navigateKeysCriteriaTime_args) that); return false; } public boolean equals(navigateKeysCriteriaTime_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysCriteriaTime_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeysCriteriaTime_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeysCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysCriteriaTime_argsStandardScheme getScheme() { return new navigateKeysCriteriaTime_argsStandardScheme(); } } private static class navigateKeysCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCriteriaTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list3408 = iprot .readListBegin(); struct.keys = new ArrayList( _list3408.size); String _elem3409; for (int _i3410 = 0; _i3410 < _list3408.size; ++_i3410) { _elem3409 = iprot.readString(); struct.keys.add(_elem3409); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeysCriteriaTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter3411 : struct.keys) { oprot.writeString(_iter3411); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysCriteriaTime_argsTupleScheme getScheme() { return new navigateKeysCriteriaTime_argsTupleScheme(); } } private static class navigateKeysCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter3412 : struct.keys) { oprot.writeString(_iter3412); } } } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list3413 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list3413.size); String _elem3414; for (int _i3415 = 0; _i3415 < _list3413.size; ++_i3415) { _elem3414 = iprot.readString(); struct.keys.add(_elem3414); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysCriteriaTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCriteriaTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysCriteriaTime_result.class, metaDataMap); } public navigateKeysCriteriaTime_result() {} public navigateKeysCriteriaTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public navigateKeysCriteriaTime_result( navigateKeysCriteriaTime_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public navigateKeysCriteriaTime_result deepCopy() { return new navigateKeysCriteriaTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysCriteriaTime_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysCriteriaTime_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysCriteriaTime_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeysCriteriaTime_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public navigateKeysCriteriaTime_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeysCriteriaTime_result) return this.equals((navigateKeysCriteriaTime_result) that); return false; } public boolean equals(navigateKeysCriteriaTime_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(navigateKeysCriteriaTime_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeysCriteriaTime_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeysCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysCriteriaTime_resultStandardScheme getScheme() { return new navigateKeysCriteriaTime_resultStandardScheme(); } } private static class navigateKeysCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCriteriaTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map3416 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map3416.size); long _key3417; Map> _val3418; for (int _i3419 = 0; _i3419 < _map3416.size; ++_i3419) { _key3417 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3420 = iprot .readMapBegin(); _val3418 = new LinkedHashMap>( 2 * _map3420.size); String _key3421; Set _val3422; for (int _i3423 = 0; _i3423 < _map3420.size; ++_i3423) { _key3421 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3424 = iprot .readSetBegin(); _val3422 = new LinkedHashSet( 2 * _set3424.size); com.cinchapi.concourse.thrift.TObject _elem3425; for (int _i3426 = 0; _i3426 < _set3424.size; ++_i3426) { _elem3425 = new com.cinchapi.concourse.thrift.TObject(); _elem3425.read(iprot); _val3422.add(_elem3425); } iprot.readSetEnd(); } _val3418.put(_key3421, _val3422); } iprot.readMapEnd(); } struct.success.put(_key3417, _val3418); } 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeysCriteriaTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter3427 : struct.success .entrySet()) { oprot.writeI64(_iter3427.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter3427.getValue().size())); for (Map.Entry> _iter3428 : _iter3427 .getValue().entrySet()) { oprot.writeString(_iter3428.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter3428.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter3429 : _iter3428 .getValue()) { _iter3429.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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysCriteriaTime_resultTupleScheme getScheme() { return new navigateKeysCriteriaTime_resultTupleScheme(); } } private static class navigateKeysCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter3430 : struct.success .entrySet()) { oprot.writeI64(_iter3430.getKey()); { oprot.writeI32(_iter3430.getValue().size()); for (Map.Entry> _iter3431 : _iter3430 .getValue().entrySet()) { oprot.writeString(_iter3431.getKey()); { oprot.writeI32( _iter3431.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3432 : _iter3431 .getValue()) { _iter3432.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3433 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map3433.size); long _key3434; Map> _val3435; for (int _i3436 = 0; _i3436 < _map3433.size; ++_i3436) { _key3434 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3437 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val3435 = new LinkedHashMap>( 2 * _map3437.size); String _key3438; Set _val3439; for (int _i3440 = 0; _i3440 < _map3437.size; ++_i3440) { _key3438 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3441 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3439 = new LinkedHashSet( 2 * _set3441.size); com.cinchapi.concourse.thrift.TObject _elem3442; for (int _i3443 = 0; _i3443 < _set3441.size; ++_i3443) { _elem3442 = new com.cinchapi.concourse.thrift.TObject(); _elem3442.read(iprot); _val3439.add(_elem3442); } } _val3435.put(_key3438, _val3439); } } struct.success.put(_key3434, _val3435); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class navigateKeysCriteriaTimestr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysCriteriaTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField( "keys", org.apache.thrift.protocol.TType.LIST, (short) 1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField( "criteria", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField( "timestamp", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField( "transaction", org.apache.thrift.protocol.TType.STRUCT, (short) 5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCriteriaTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCriteriaTimestr_argsTupleSchemeFactory()); } public List keys; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short) 1, "keys"), CRITERIA((short) 2, "criteria"), TIMESTAMP((short) 3, "timestamp"), CREDS((short) 4, "creds"), TRANSACTION((short) 5, "transaction"), ENVIRONMENT((short) 6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // KEYS return KEYS; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData( org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysCriteriaTimestr_args.class, metaDataMap); } public navigateKeysCriteriaTimestr_args() {} public navigateKeysCriteriaTimestr_args(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysCriteriaTimestr_args( navigateKeysCriteriaTimestr_args other) { if(other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if(other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria( other.criteria); } if(other.isSetTimestamp()) { this.timestamp = other.timestamp; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken( other.transaction); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysCriteriaTimestr_args deepCopy() { return new navigateKeysCriteriaTimestr_args(this); } @Override public void clear() { this.keys = null; this.criteria = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if(this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysCriteriaTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** * Returns true if field keys is set (has been assigned a value) and * false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if(!value) { this.keys = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public navigateKeysCriteriaTimestr_args setCriteria( com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** * Returns true if field criteria is set (has been assigned a value) and * false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if(!value) { this.criteria = null; } } public String getTimestamp() { return this.timestamp; } public navigateKeysCriteriaTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** * Returns true if field timestamp is set (has been assigned a value) * and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if(!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysCriteriaTimestr_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysCriteriaTimestr_args setTransaction( com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** * Returns true if field transaction is set (has been assigned a value) * and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if(!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysCriteriaTimestr_args setEnvironment( String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if(value == null) { unsetKeys(); } else { setKeys((List) value); } break; case CRITERIA: if(value == null) { unsetCriteria(); } else { setCriteria( (com.cinchapi.concourse.thrift.TCriteria) value); } break; case TIMESTAMP: if(value == null) { unsetTimestamp(); } else { setTimestamp((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TRANSACTION: if(value == null) { unsetTransaction(); } else { setTransaction( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYS: return isSetKeys(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeysCriteriaTimestr_args) return this.equals((navigateKeysCriteriaTimestr_args) that); return false; } public boolean equals(navigateKeysCriteriaTimestr_args that) { if(that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if(this_present_keys || that_present_keys) { if(!(this_present_keys && that_present_keys)) return false; if(!this.keys.equals(that.keys)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if(this_present_criteria || that_present_criteria) { if(!(this_present_criteria && that_present_criteria)) return false; if(!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if(this_present_timestamp || that_present_timestamp) { if(!(this_present_timestamp && that_present_timestamp)) return false; if(!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if(this_present_transaction || that_present_transaction) { if(!(this_present_transaction && that_present_transaction)) return false; if(!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if(present_keys) list.add(keys); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if(present_criteria) list.add(criteria); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if(present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if(present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysCriteriaTimestr_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()) .compareTo(other.isSetKeys()); if(lastComparison != 0) { return lastComparison; } if(isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.keys, other.keys); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()) .compareTo(other.isSetCriteria()); if(lastComparison != 0) { return lastComparison; } if(isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.criteria, other.criteria); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()) .compareTo(other.isSetTimestamp()); if(lastComparison != 0) { return lastComparison; } if(isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.timestamp, other.timestamp); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()) .compareTo(other.isSetTransaction()); if(lastComparison != 0) { return lastComparison; } if(isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.transaction, other.transaction); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeysCriteriaTimestr_args("); boolean first = true; sb.append("keys:"); if(this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if(!first) sb.append(", "); sb.append("criteria:"); if(this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if(!first) sb.append(", "); sb.append("timestamp:"); if(this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("transaction:"); if(this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(criteria != null) { criteria.validate(); } if(creds != null) { creds.validate(); } if(transaction != null) { transaction.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeysCriteriaTimestr_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysCriteriaTimestr_argsStandardScheme getScheme() { return new navigateKeysCriteriaTimestr_argsStandardScheme(); } } private static class navigateKeysCriteriaTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCriteriaTimestr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYS if(schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list3444 = iprot .readListBegin(); struct.keys = new ArrayList( _list3444.size); String _elem3445; for (int _i3446 = 0; _i3446 < _list3444.size; ++_i3446) { _elem3445 = iprot.readString(); struct.keys.add(_elem3445); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeysCriteriaTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter3447 : struct.keys) { oprot.writeString(_iter3447); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if(struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCriteriaTimestr_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysCriteriaTimestr_argsTupleScheme getScheme() { return new navigateKeysCriteriaTimestr_argsTupleScheme(); } } private static class navigateKeysCriteriaTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetKeys()) { optionals.set(0); } if(struct.isSetCriteria()) { optionals.set(1); } if(struct.isSetTimestamp()) { optionals.set(2); } if(struct.isSetCreds()) { optionals.set(3); } if(struct.isSetTransaction()) { optionals.set(4); } if(struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if(struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter3448 : struct.keys) { oprot.writeString(_iter3448); } } } if(struct.isSetCriteria()) { struct.criteria.write(oprot); } if(struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetTransaction()) { struct.transaction.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if(incoming.get(0)) { { org.apache.thrift.protocol.TList _list3449 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list3449.size); String _elem3450; for (int _i3451 = 0; _i3451 < _list3449.size; ++_i3451) { _elem3450 = iprot.readString(); struct.keys.add(_elem3450); } } struct.setKeysIsSet(true); } if(incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if(incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if(incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if(incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysCriteriaTimestr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "navigateKeysCriteriaTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.MAP, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCriteriaTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCriteriaTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.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))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( navigateKeysCriteriaTimestr_result.class, metaDataMap); } public navigateKeysCriteriaTimestr_result() {} public navigateKeysCriteriaTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public navigateKeysCriteriaTimestr_result( navigateKeysCriteriaTimestr_result other) { if(other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>( other.success.size()); for (Map.Entry>> other_element : other.success .entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element .getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>( other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value .entrySet()) { String other_element_value_element_key = other_element_value_element .getKey(); Set other_element_value_element_value = other_element_value_element .getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet( other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value .add(new com.cinchapi.concourse.thrift.TObject( other_element_value_element_value_element)); } __this__success_copy_value.put( __this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public navigateKeysCriteriaTimestr_result deepCopy() { return new navigateKeysCriteriaTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if(this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysCriteriaTimestr_result setSuccess( Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysCriteriaTimestr_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysCriteriaTimestr_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeysCriteriaTimestr_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public navigateKeysCriteriaTimestr_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess( (Map>>) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof navigateKeysCriteriaTimestr_result) return this.equals((navigateKeysCriteriaTimestr_result) that); return false; } public boolean equals(navigateKeysCriteriaTimestr_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(navigateKeysCriteriaTimestr_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder( "navigateKeysCriteriaTimestr_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class navigateKeysCriteriaTimestr_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysCriteriaTimestr_resultStandardScheme getScheme() { return new navigateKeysCriteriaTimestr_resultStandardScheme(); } } private static class navigateKeysCriteriaTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCriteriaTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map3452 = iprot .readMapBegin(); struct.success = new LinkedHashMap>>( 2 * _map3452.size); long _key3453; Map> _val3454; for (int _i3455 = 0; _i3455 < _map3452.size; ++_i3455) { _key3453 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3456 = iprot .readMapBegin(); _val3454 = new LinkedHashMap>( 2 * _map3456.size); String _key3457; Set _val3458; for (int _i3459 = 0; _i3459 < _map3456.size; ++_i3459) { _key3457 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3460 = iprot .readSetBegin(); _val3458 = new LinkedHashSet( 2 * _set3460.size); com.cinchapi.concourse.thrift.TObject _elem3461; for (int _i3462 = 0; _i3462 < _set3460.size; ++_i3462) { _elem3461 = new com.cinchapi.concourse.thrift.TObject(); _elem3461.read(iprot); _val3458.add(_elem3461); } iprot.readSetEnd(); } _val3454.put(_key3457, _val3458); } iprot.readMapEnd(); } struct.success.put(_key3453, _val3454); } 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; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, navigateKeysCriteriaTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter3463 : struct.success .entrySet()) { oprot.writeI64(_iter3463.getKey()); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter3463.getValue().size())); for (Map.Entry> _iter3464 : _iter3463 .getValue().entrySet()) { oprot.writeString(_iter3464.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, _iter3464.getValue() .size())); for (com.cinchapi.concourse.thrift.TObject _iter3465 : _iter3464 .getValue()) { _iter3465.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(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCriteriaTimestr_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysCriteriaTimestr_resultTupleScheme getScheme() { return new navigateKeysCriteriaTimestr_resultTupleScheme(); } } private static class navigateKeysCriteriaTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter3466 : struct.success .entrySet()) { oprot.writeI64(_iter3466.getKey()); { oprot.writeI32(_iter3466.getValue().size()); for (Map.Entry> _iter3467 : _iter3466 .getValue().entrySet()) { oprot.writeString(_iter3467.getKey()); { oprot.writeI32( _iter3467.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3468 : _iter3467 .getValue()) { _iter3468.write(oprot); } } } } } } } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3469 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>( 2 * _map3469.size); long _key3470; Map> _val3471; for (int _i3472 = 0; _i3472 < _map3469.size; ++_i3472) { _key3470 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3473 = new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val3471 = new LinkedHashMap>( 2 * _map3473.size); String _key3474; Set _val3475; for (int _i3476 = 0; _i3476 < _map3473.size; ++_i3476) { _key3474 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3477 = new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3475 = new LinkedHashSet( 2 * _set3477.size); com.cinchapi.concourse.thrift.TObject _elem3478; for (int _i3479 = 0; _i3479 < _set3477.size; ++_i3479) { _elem3478 = new com.cinchapi.concourse.thrift.TObject(); _elem3478.read(iprot); _val3475.add(_elem3478); } } _val3471.put(_key3474, _val3475); } } struct.success.put(_key3470, _val3471); } } struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class getServerEnvironment_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getServerEnvironment_args"); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField( "token", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getServerEnvironment_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getServerEnvironment_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken token; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CREDS((short) 1, "creds"), TOKEN((short) 2, "token"), ENVIRONMENT((short) 3, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CREDS return CREDS; case 2: // TOKEN return TOKEN; case 3: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getServerEnvironment_args.class, metaDataMap); } public getServerEnvironment_args() {} public getServerEnvironment_args( com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment) { this(); this.creds = creds; this.token = token; this.environment = environment; } /** * Performs a deep copy on other. */ public getServerEnvironment_args(getServerEnvironment_args other) { if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetToken()) { this.token = new com.cinchapi.concourse.thrift.TransactionToken( other.token); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public getServerEnvironment_args deepCopy() { return new getServerEnvironment_args(this); } @Override public void clear() { this.creds = null; this.token = null; this.environment = null; } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getServerEnvironment_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getToken() { return this.token; } public getServerEnvironment_args setToken( com.cinchapi.concourse.thrift.TransactionToken token) { this.token = token; return this; } public void unsetToken() { this.token = null; } /** * Returns true if field token is set (has been assigned a value) and * false otherwise */ public boolean isSetToken() { return this.token != null; } public void setTokenIsSet(boolean value) { if(!value) { this.token = null; } } public String getEnvironment() { return this.environment; } public getServerEnvironment_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TOKEN: if(value == null) { unsetToken(); } else { setToken( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CREDS: return getCreds(); case TOKEN: return getToken(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CREDS: return isSetCreds(); case TOKEN: return isSetToken(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getServerEnvironment_args) return this.equals((getServerEnvironment_args) that); return false; } public boolean equals(getServerEnvironment_args that) { if(that == null) return false; boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_token = true && this.isSetToken(); boolean that_present_token = true && that.isSetToken(); if(this_present_token || that_present_token) { if(!(this_present_token && that_present_token)) return false; if(!this.token.equals(that.token)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_token = true && (isSetToken()); list.add(present_token); if(present_token) list.add(token); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getServerEnvironment_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetToken()) .compareTo(other.isSetToken()); if(lastComparison != 0) { return lastComparison; } if(isSetToken()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.token, other.token); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getServerEnvironment_args("); boolean first = true; sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("token:"); if(this.token == null) { sb.append("null"); } else { sb.append(this.token); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(token != null) { token.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getServerEnvironment_argsStandardSchemeFactory implements SchemeFactory { public getServerEnvironment_argsStandardScheme getScheme() { return new getServerEnvironment_argsStandardScheme(); } } private static class getServerEnvironment_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getServerEnvironment_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TOKEN if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.token = new com.cinchapi.concourse.thrift.TransactionToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getServerEnvironment_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.token != null) { oprot.writeFieldBegin(TOKEN_FIELD_DESC); struct.token.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getServerEnvironment_argsTupleSchemeFactory implements SchemeFactory { public getServerEnvironment_argsTupleScheme getScheme() { return new getServerEnvironment_argsTupleScheme(); } } private static class getServerEnvironment_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getServerEnvironment_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCreds()) { optionals.set(0); } if(struct.isSetToken()) { optionals.set(1); } if(struct.isSetEnvironment()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetToken()) { struct.token.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getServerEnvironment_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if(incoming.get(0)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(1)) { struct.token = new com.cinchapi.concourse.thrift.TransactionToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } if(incoming.get(2)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getServerEnvironment_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getServerEnvironment_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRING, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getServerEnvironment_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getServerEnvironment_resultTupleSchemeFactory()); } public String success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getServerEnvironment_result.class, metaDataMap); } public getServerEnvironment_result() {} public getServerEnvironment_result(String success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getServerEnvironment_result(getServerEnvironment_result other) { if(other.isSetSuccess()) { this.success = other.success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public getServerEnvironment_result deepCopy() { return new getServerEnvironment_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 getServerEnvironment_result setSuccess(String success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getServerEnvironment_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getServerEnvironment_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public getServerEnvironment_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 getServerEnvironment_result) return this.equals((getServerEnvironment_result) that); return false; } public boolean equals(getServerEnvironment_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(getServerEnvironment_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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( "getServerEnvironment_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 getServerEnvironment_resultStandardSchemeFactory implements SchemeFactory { public getServerEnvironment_resultStandardScheme getScheme() { return new getServerEnvironment_resultStandardScheme(); } } private static class getServerEnvironment_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getServerEnvironment_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, getServerEnvironment_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeString(struct.success); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getServerEnvironment_resultTupleSchemeFactory implements SchemeFactory { public getServerEnvironment_resultTupleScheme getScheme() { return new getServerEnvironment_resultTupleScheme(); } } private static class getServerEnvironment_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getServerEnvironment_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, getServerEnvironment_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getServerVersion_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getServerVersion_args"); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getServerVersion_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getServerVersion_argsTupleSchemeFactory()); } /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getServerVersion_args.class, metaDataMap); } public getServerVersion_args() {} /** * Performs a deep copy on other. */ public getServerVersion_args(getServerVersion_args other) {} public getServerVersion_args deepCopy() { return new getServerVersion_args(this); } @Override public void clear() {} public void setFieldValue(_Fields field, Object value) { switch (field) { } } public Object getFieldValue(_Fields field) { switch (field) { } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof getServerVersion_args) return this.equals((getServerVersion_args) that); return false; } public boolean equals(getServerVersion_args that) { if(that == null) return false; return true; } @Override public int hashCode() { List list = new ArrayList(); return list.hashCode(); } @Override public int compareTo(getServerVersion_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getServerVersion_args("); boolean first = true; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getServerVersion_argsStandardSchemeFactory implements SchemeFactory { public getServerVersion_argsStandardScheme getScheme() { return new getServerVersion_argsStandardScheme(); } } private static class getServerVersion_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getServerVersion_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getServerVersion_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getServerVersion_argsTupleSchemeFactory implements SchemeFactory { public getServerVersion_argsTupleScheme getScheme() { return new getServerVersion_argsTupleScheme(); } } private static class getServerVersion_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getServerVersion_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getServerVersion_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } public static class getServerVersion_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "getServerVersion_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRING, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getServerVersion_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getServerVersion_resultTupleSchemeFactory()); } public String success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( getServerVersion_result.class, metaDataMap); } public getServerVersion_result() {} public getServerVersion_result(String success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getServerVersion_result(getServerVersion_result other) { if(other.isSetSuccess()) { this.success = other.success; } if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public getServerVersion_result deepCopy() { return new getServerVersion_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 getServerVersion_result setSuccess(String success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if(!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getServerVersion_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getServerVersion_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public getServerVersion_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 getServerVersion_result) return this.equals((getServerVersion_result) that); return false; } public boolean equals(getServerVersion_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(getServerVersion_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("getServerVersion_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 getServerVersion_resultStandardSchemeFactory implements SchemeFactory { public getServerVersion_resultStandardScheme getScheme() { return new getServerVersion_resultStandardScheme(); } } private static class getServerVersion_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getServerVersion_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, getServerVersion_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeString(struct.success); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getServerVersion_resultTupleSchemeFactory implements SchemeFactory { public getServerVersion_resultTupleScheme getScheme() { return new getServerVersion_resultTupleScheme(); } } private static class getServerVersion_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getServerVersion_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, getServerVersion_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class time_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "time_args"); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField( "token", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new time_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new time_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken token; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CREDS((short) 1, "creds"), TOKEN((short) 2, "token"), ENVIRONMENT((short) 3, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // CREDS return CREDS; case 2: // TOKEN return TOKEN; case 3: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(time_args.class, metaDataMap); } public time_args() {} public time_args(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment) { this(); this.creds = creds; this.token = token; this.environment = environment; } /** * Performs a deep copy on other. */ public time_args(time_args other) { if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetToken()) { this.token = new com.cinchapi.concourse.thrift.TransactionToken( other.token); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public time_args deepCopy() { return new time_args(this); } @Override public void clear() { this.creds = null; this.token = null; this.environment = null; } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public time_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getToken() { return this.token; } public time_args setToken( com.cinchapi.concourse.thrift.TransactionToken token) { this.token = token; return this; } public void unsetToken() { this.token = null; } /** * Returns true if field token is set (has been assigned a value) and * false otherwise */ public boolean isSetToken() { return this.token != null; } public void setTokenIsSet(boolean value) { if(!value) { this.token = null; } } public String getEnvironment() { return this.environment; } public time_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TOKEN: if(value == null) { unsetToken(); } else { setToken( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CREDS: return getCreds(); case TOKEN: return getToken(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case CREDS: return isSetCreds(); case TOKEN: return isSetToken(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof time_args) return this.equals((time_args) that); return false; } public boolean equals(time_args that) { if(that == null) return false; boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_token = true && this.isSetToken(); boolean that_present_token = true && that.isSetToken(); if(this_present_token || that_present_token) { if(!(this_present_token && that_present_token)) return false; if(!this.token.equals(that.token)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_token = true && (isSetToken()); list.add(present_token); if(present_token) list.add(token); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(time_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetToken()) .compareTo(other.isSetToken()); if(lastComparison != 0) { return lastComparison; } if(isSetToken()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.token, other.token); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("time_args("); boolean first = true; sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("token:"); if(this.token == null) { sb.append("null"); } else { sb.append(this.token); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(token != null) { token.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class time_argsStandardSchemeFactory implements SchemeFactory { public time_argsStandardScheme getScheme() { return new time_argsStandardScheme(); } } private static class time_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, time_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TOKEN if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.token = new com.cinchapi.concourse.thrift.TransactionToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, time_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.token != null) { oprot.writeFieldBegin(TOKEN_FIELD_DESC); struct.token.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class time_argsTupleSchemeFactory implements SchemeFactory { public time_argsTupleScheme getScheme() { return new time_argsTupleScheme(); } } private static class time_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, time_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetCreds()) { optionals.set(0); } if(struct.isSetToken()) { optionals.set(1); } if(struct.isSetEnvironment()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetToken()) { struct.token.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, time_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if(incoming.get(0)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(1)) { struct.token = new com.cinchapi.concourse.thrift.TransactionToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } if(incoming.get(2)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class time_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "time_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new time_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new time_resultTupleSchemeFactory()); } public long success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.PermissionException ex3; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(time_result.class, metaDataMap); } public time_result() {} public time_result(long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.PermissionException ex3) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public time_result(time_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.PermissionException( other.ex3); } } public time_result deepCopy() { return new time_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 time_result setSuccess(long success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public time_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public time_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx3() { return this.ex3; } public time_result setEx3( com.cinchapi.concourse.thrift.PermissionException 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.PermissionException) 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 time_result) return this.equals((time_result) that); return false; } public boolean equals(time_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(time_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } 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("time_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; 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 time_resultStandardSchemeFactory implements SchemeFactory { public time_resultStandardScheme getScheme() { return new time_resultStandardScheme(); } } private static class time_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, time_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.PermissionException(); 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, time_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeI64(struct.success); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class time_resultTupleSchemeFactory implements SchemeFactory { public time_resultTupleScheme getScheme() { return new time_resultTupleScheme(); } } private static class time_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, time_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } 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, time_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.PermissionException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class timePhrase_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "timePhrase_args"); private static final org.apache.thrift.protocol.TField PHRASE_FIELD_DESC = new org.apache.thrift.protocol.TField( "phrase", org.apache.thrift.protocol.TType.STRING, (short) 1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField( "creds", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField( "token", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField( "environment", org.apache.thrift.protocol.TType.STRING, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new timePhrase_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new timePhrase_argsTupleSchemeFactory()); } public String phrase; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken token; // required public String environment; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { PHRASE((short) 1, "phrase"), CREDS((short) 2, "creds"), TOKEN((short) 3, "token"), ENVIRONMENT((short) 4, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 1: // PHRASE return PHRASE; case 2: // CREDS return CREDS; case 3: // TOKEN return TOKEN; case 4: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.PHRASE, new org.apache.thrift.meta_data.FieldMetaData("phrase", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(timePhrase_args.class, metaDataMap); } public timePhrase_args() {} public timePhrase_args(String phrase, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment) { this(); this.phrase = phrase; this.creds = creds; this.token = token; this.environment = environment; } /** * Performs a deep copy on other. */ public timePhrase_args(timePhrase_args other) { if(other.isSetPhrase()) { this.phrase = other.phrase; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } if(other.isSetToken()) { this.token = new com.cinchapi.concourse.thrift.TransactionToken( other.token); } if(other.isSetEnvironment()) { this.environment = other.environment; } } public timePhrase_args deepCopy() { return new timePhrase_args(this); } @Override public void clear() { this.phrase = null; this.creds = null; this.token = null; this.environment = null; } public String getPhrase() { return this.phrase; } public timePhrase_args setPhrase(String phrase) { this.phrase = phrase; return this; } public void unsetPhrase() { this.phrase = null; } /** * Returns true if field phrase is set (has been assigned a value) and * false otherwise */ public boolean isSetPhrase() { return this.phrase != null; } public void setPhraseIsSet(boolean value) { if(!value) { this.phrase = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public timePhrase_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getToken() { return this.token; } public timePhrase_args setToken( com.cinchapi.concourse.thrift.TransactionToken token) { this.token = token; return this; } public void unsetToken() { this.token = null; } /** * Returns true if field token is set (has been assigned a value) and * false otherwise */ public boolean isSetToken() { return this.token != null; } public void setTokenIsSet(boolean value) { if(!value) { this.token = null; } } public String getEnvironment() { return this.environment; } public timePhrase_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** * Returns true if field environment is set (has been assigned a value) * and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if(!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PHRASE: if(value == null) { unsetPhrase(); } else { setPhrase((String) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; case TOKEN: if(value == null) { unsetToken(); } else { setToken( (com.cinchapi.concourse.thrift.TransactionToken) value); } break; case ENVIRONMENT: if(value == null) { unsetEnvironment(); } else { setEnvironment((String) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PHRASE: return getPhrase(); case CREDS: return getCreds(); case TOKEN: return getToken(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case PHRASE: return isSetPhrase(); case CREDS: return isSetCreds(); case TOKEN: return isSetToken(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof timePhrase_args) return this.equals((timePhrase_args) that); return false; } public boolean equals(timePhrase_args that) { if(that == null) return false; boolean this_present_phrase = true && this.isSetPhrase(); boolean that_present_phrase = true && that.isSetPhrase(); if(this_present_phrase || that_present_phrase) { if(!(this_present_phrase && that_present_phrase)) return false; if(!this.phrase.equals(that.phrase)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if(this_present_creds || that_present_creds) { if(!(this_present_creds && that_present_creds)) return false; if(!this.creds.equals(that.creds)) return false; } boolean this_present_token = true && this.isSetToken(); boolean that_present_token = true && that.isSetToken(); if(this_present_token || that_present_token) { if(!(this_present_token && that_present_token)) return false; if(!this.token.equals(that.token)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if(this_present_environment || that_present_environment) { if(!(this_present_environment && that_present_environment)) return false; if(!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_phrase = true && (isSetPhrase()); list.add(present_phrase); if(present_phrase) list.add(phrase); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if(present_creds) list.add(creds); boolean present_token = true && (isSetToken()); list.add(present_token); if(present_token) list.add(token); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if(present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(timePhrase_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetPhrase()) .compareTo(other.isSetPhrase()); if(lastComparison != 0) { return lastComparison; } if(isSetPhrase()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.phrase, other.phrase); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()) .compareTo(other.isSetCreds()); if(lastComparison != 0) { return lastComparison; } if(isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.creds, other.creds); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetToken()) .compareTo(other.isSetToken()); if(lastComparison != 0) { return lastComparison; } if(isSetToken()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.token, other.token); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()) .compareTo(other.isSetEnvironment()); if(lastComparison != 0) { return lastComparison; } if(isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.environment, other.environment); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("timePhrase_args("); boolean first = true; sb.append("phrase:"); if(this.phrase == null) { sb.append("null"); } else { sb.append(this.phrase); } first = false; if(!first) sb.append(", "); sb.append("creds:"); if(this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if(!first) sb.append(", "); sb.append("token:"); if(this.token == null) { sb.append("null"); } else { sb.append(this.token); } first = false; if(!first) sb.append(", "); sb.append("environment:"); if(this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } if(token != null) { token.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class timePhrase_argsStandardSchemeFactory implements SchemeFactory { public timePhrase_argsStandardScheme getScheme() { return new timePhrase_argsStandardScheme(); } } private static class timePhrase_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, timePhrase_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // PHRASE if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.phrase = iprot.readString(); struct.setPhraseIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TOKEN if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.token = new com.cinchapi.concourse.thrift.TransactionToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if(schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, timePhrase_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.phrase != null) { oprot.writeFieldBegin(PHRASE_FIELD_DESC); oprot.writeString(struct.phrase); oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if(struct.token != null) { oprot.writeFieldBegin(TOKEN_FIELD_DESC); struct.token.write(oprot); oprot.writeFieldEnd(); } if(struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class timePhrase_argsTupleSchemeFactory implements SchemeFactory { public timePhrase_argsTupleScheme getScheme() { return new timePhrase_argsTupleScheme(); } } private static class timePhrase_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, timePhrase_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetPhrase()) { optionals.set(0); } if(struct.isSetCreds()) { optionals.set(1); } if(struct.isSetToken()) { optionals.set(2); } if(struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if(struct.isSetPhrase()) { oprot.writeString(struct.phrase); } if(struct.isSetCreds()) { struct.creds.write(oprot); } if(struct.isSetToken()) { struct.token.write(oprot); } if(struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, timePhrase_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if(incoming.get(0)) { struct.phrase = iprot.readString(); struct.setPhraseIsSet(true); } if(incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if(incoming.get(2)) { struct.token = new com.cinchapi.concourse.thrift.TransactionToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } if(incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class timePhrase_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "timePhrase_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.I64, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex3", org.apache.thrift.protocol.TType.STRUCT, (short) 3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex4", org.apache.thrift.protocol.TType.STRUCT, (short) 4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new timePhrase_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new timePhrase_resultTupleSchemeFactory()); } public long success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.PermissionException ex4; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"), EX3((short) 3, "ex3"), EX4((short) 4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData( org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData .addStructMetaDataMap(timePhrase_result.class, metaDataMap); } public timePhrase_result() {} public timePhrase_result(long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.PermissionException ex4) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public timePhrase_result(timePhrase_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if(other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException( other.ex); } if(other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException( other.ex2); } if(other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException( other.ex3); } if(other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.PermissionException( other.ex4); } } public timePhrase_result deepCopy() { return new timePhrase_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = 0; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public long getSuccess() { return this.success; } public timePhrase_result setSuccess(long success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public timePhrase_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public timePhrase_result setEx2( com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if(!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public timePhrase_result setEx3( com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** * Returns true if field ex3 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if(!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.PermissionException getEx4() { return this.ex4; } public timePhrase_result setEx4( com.cinchapi.concourse.thrift.PermissionException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** * Returns true if field ex4 is set (has been assigned a value) and * false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if(!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if(value == null) { unsetSuccess(); } else { setSuccess((Long) value); } break; case EX: if(value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException) value); } break; case EX2: if(value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException) value); } break; case EX3: if(value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException) value); } break; case EX4: if(value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.PermissionException) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof timePhrase_result) return this.equals((timePhrase_result) that); return false; } public boolean equals(timePhrase_result that) { if(that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if(this_present_ex3 || that_present_ex3) { if(!(this_present_ex3 && that_present_ex3)) return false; if(!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if(this_present_ex4 || that_present_ex4) { if(!(this_present_ex4 && that_present_ex4)) return false; if(!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if(present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if(present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(timePhrase_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(other.isSetEx2()); if(lastComparison != 0) { return lastComparison; } if(isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex2, other.ex2); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()) .compareTo(other.isSetEx3()); if(lastComparison != 0) { return lastComparison; } if(isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex3, other.ex3); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()) .compareTo(other.isSetEx4()); if(lastComparison != 0) { return lastComparison; } if(isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex4, other.ex4); if(lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("timePhrase_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if(!first) sb.append(", "); sb.append("ex2:"); if(this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if(!first) sb.append(", "); sb.append("ex3:"); if(this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if(!first) sb.append(", "); sb.append("ex4:"); if(this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java // serialization is wacky, and doesn't call the default // constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class timePhrase_resultStandardSchemeFactory implements SchemeFactory { public timePhrase_resultStandardScheme getScheme() { return new timePhrase_resultStandardScheme(); } } private static class timePhrase_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, timePhrase_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if(schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if(schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, timePhrase_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if(struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeI64(struct.success); oprot.writeFieldEnd(); } if(struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if(struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if(struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if(struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class timePhrase_resultTupleSchemeFactory implements SchemeFactory { public timePhrase_resultTupleScheme getScheme() { return new timePhrase_resultTupleScheme(); } } private static class timePhrase_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, timePhrase_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetSuccess()) { optionals.set(0); } if(struct.isSetEx()) { optionals.set(1); } if(struct.isSetEx2()) { optionals.set(2); } if(struct.isSetEx3()) { optionals.set(3); } if(struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if(struct.isSetSuccess()) { oprot.writeI64(struct.success); } if(struct.isSetEx()) { struct.ex.write(oprot); } if(struct.isSetEx2()) { struct.ex2.write(oprot); } if(struct.isSetEx3()) { struct.ex3.write(oprot); } if(struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, timePhrase_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if(incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } if(incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if(incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if(incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if(incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.PermissionException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class invokeManagement_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "invokeManagement_args"); 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 Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new invokeManagement_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new invokeManagement_argsTupleSchemeFactory()); } public String method; // required public List params; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { METHOD((short) 2, "method"), PARAMS((short) 3, "params"), CREDS((short) 4, "creds"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 2: // METHOD return METHOD; case 3: // PARAMS return PARAMS; case 4: // CREDS return CREDS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.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))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( invokeManagement_args.class, metaDataMap); } public invokeManagement_args() {} public invokeManagement_args(String method, List params, com.cinchapi.concourse.thrift.AccessToken creds) { this(); this.method = method; this.params = params; this.creds = creds; } /** * Performs a deep copy on other. */ public invokeManagement_args(invokeManagement_args other) { if(other.isSetMethod()) { this.method = other.method; } if(other.isSetParams()) { List __this__params = new ArrayList( other.params.size()); for (com.cinchapi.concourse.thrift.ComplexTObject other_element : other.params) { __this__params .add(new com.cinchapi.concourse.thrift.ComplexTObject( other_element)); } this.params = __this__params; } if(other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken( other.creds); } } public invokeManagement_args deepCopy() { return new invokeManagement_args(this); } @Override public void clear() { this.method = null; this.params = null; this.creds = null; } public String getMethod() { return this.method; } public invokeManagement_args setMethod(String method) { this.method = method; return this; } public void unsetMethod() { this.method = null; } /** * Returns true if field method is set (has been assigned a value) and * false otherwise */ public boolean isSetMethod() { return this.method != null; } public void setMethodIsSet(boolean value) { if(!value) { this.method = null; } } public int getParamsSize() { return (this.params == null) ? 0 : this.params.size(); } public java.util.Iterator getParamsIterator() { return (this.params == null) ? null : this.params.iterator(); } public void addToParams( com.cinchapi.concourse.thrift.ComplexTObject elem) { if(this.params == null) { this.params = new ArrayList(); } this.params.add(elem); } public List getParams() { return this.params; } public invokeManagement_args setParams( List params) { this.params = params; return this; } public void unsetParams() { this.params = null; } /** * Returns true if field params is set (has been assigned a value) and * false otherwise */ public boolean isSetParams() { return this.params != null; } public void setParamsIsSet(boolean value) { if(!value) { this.params = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public invokeManagement_args setCreds( com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** * Returns true if field creds is set (has been assigned a value) and * false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if(!value) { this.creds = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case METHOD: if(value == null) { unsetMethod(); } else { setMethod((String) value); } break; case PARAMS: if(value == null) { unsetParams(); } else { setParams( (List) value); } break; case CREDS: if(value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken) value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case METHOD: return getMethod(); case PARAMS: return getParams(); case CREDS: return getCreds(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if(field == null) { throw new IllegalArgumentException(); } switch (field) { case METHOD: return isSetMethod(); case PARAMS: return isSetParams(); case CREDS: return isSetCreds(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if(that == null) return false; if(that instanceof invokeManagement_args) return this.equals((invokeManagement_args) that); return false; } public boolean equals(invokeManagement_args that) { if(that == null) 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; } return true; } @Override public int hashCode() { List list = new ArrayList(); 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); return list.hashCode(); } @Override public int compareTo(invokeManagement_args other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; 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; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("invokeManagement_args("); boolean first = true; 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; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if(creds != null) { creds.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport( in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class invokeManagement_argsStandardSchemeFactory implements SchemeFactory { public invokeManagement_argsStandardScheme getScheme() { return new invokeManagement_argsStandardScheme(); } } private static class invokeManagement_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, invokeManagement_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if(schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { 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 _list3480 = iprot .readListBegin(); struct.params = new ArrayList( _list3480.size); com.cinchapi.concourse.thrift.ComplexTObject _elem3481; for (int _i3482 = 0; _i3482 < _list3480.size; ++_i3482) { _elem3481 = new com.cinchapi.concourse.thrift.ComplexTObject(); _elem3481.read(iprot); struct.params.add(_elem3481); } 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; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be // checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, invokeManagement_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); 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 _iter3483 : struct.params) { _iter3483.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if(struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class invokeManagement_argsTupleSchemeFactory implements SchemeFactory { public invokeManagement_argsTupleScheme getScheme() { return new invokeManagement_argsTupleScheme(); } } private static class invokeManagement_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, invokeManagement_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if(struct.isSetMethod()) { optionals.set(0); } if(struct.isSetParams()) { optionals.set(1); } if(struct.isSetCreds()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if(struct.isSetMethod()) { oprot.writeString(struct.method); } if(struct.isSetParams()) { { oprot.writeI32(struct.params.size()); for (com.cinchapi.concourse.thrift.ComplexTObject _iter3484 : struct.params) { _iter3484.write(oprot); } } } if(struct.isSetCreds()) { struct.creds.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, invokeManagement_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if(incoming.get(0)) { struct.method = iprot.readString(); struct.setMethodIsSet(true); } if(incoming.get(1)) { { org.apache.thrift.protocol.TList _list3485 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.params = new ArrayList( _list3485.size); com.cinchapi.concourse.thrift.ComplexTObject _elem3486; for (int _i3487 = 0; _i3487 < _list3485.size; ++_i3487) { _elem3486 = new com.cinchapi.concourse.thrift.ComplexTObject(); _elem3486.read(iprot); struct.params.add(_elem3486); } } struct.setParamsIsSet(true); } if(incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } } } } public static class invokeManagement_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct( "invokeManagement_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField( "success", org.apache.thrift.protocol.TType.STRUCT, (short) 0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex", org.apache.thrift.protocol.TType.STRUCT, (short) 1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField( "ex2", org.apache.thrift.protocol.TType.STRUCT, (short) 2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new invokeManagement_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new invokeManagement_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.ComplexTObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.ManagementException ex2; // required /** * The set of fields this struct contains, along with convenience * methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short) 0, "success"), EX((short) 1, "ex"), EX2((short) 2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not found. */ public static _Fields findByThriftId(int fieldId) { switch (fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if(fields == null) throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>( _Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData( org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.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))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap( invokeManagement_result.class, metaDataMap); } public invokeManagement_result() {} public invokeManagement_result( com.cinchapi.concourse.thrift.ComplexTObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.ManagementException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public invokeManagement_result(invokeManagement_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.ManagementException( other.ex2); } } public invokeManagement_result deepCopy() { return new invokeManagement_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.ComplexTObject getSuccess() { return this.success; } public invokeManagement_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 invokeManagement_result setEx( com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** * Returns true if field ex is set (has been assigned a value) and false * otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if(!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.ManagementException getEx2() { return this.ex2; } public invokeManagement_result setEx2( com.cinchapi.concourse.thrift.ManagementException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** * Returns true if field ex2 is set (has been 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.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.ManagementException) 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 invokeManagement_result) return this.equals((invokeManagement_result) that); return false; } public boolean equals(invokeManagement_result that) { if(that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if(this_present_success || that_present_success) { if(!(this_present_success && that_present_success)) return false; if(!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if(this_present_ex || that_present_ex) { if(!(this_present_ex && that_present_ex)) return false; if(!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if(this_present_ex2 || that_present_ex2) { if(!(this_present_ex2 && that_present_ex2)) return false; if(!this.ex2.equals(that.ex2)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if(present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if(present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if(present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(invokeManagement_result other) { if(!getClass().equals(other.getClass())) { return getClass().getName() .compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()) .compareTo(other.isSetSuccess()); if(lastComparison != 0) { return lastComparison; } if(isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.success, other.success); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()) .compareTo(other.isSetEx()); if(lastComparison != 0) { return lastComparison; } if(isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper .compareTo(this.ex, other.ex); if(lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()) .compareTo(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("invokeManagement_result("); boolean first = true; sb.append("success:"); if(this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if(!first) sb.append(", "); sb.append("ex:"); if(this.ex == null) { sb.append("null"); } else { sb.append(this.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 invokeManagement_resultStandardSchemeFactory implements SchemeFactory { public invokeManagement_resultStandardScheme getScheme() { return new invokeManagement_resultStandardScheme(); } } private static class invokeManagement_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, invokeManagement_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); 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.ManagementException(); 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, invokeManagement_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 invokeManagement_resultTupleSchemeFactory implements SchemeFactory { public invokeManagement_resultTupleScheme getScheme() { return new invokeManagement_resultTupleScheme(); } } private static class invokeManagement_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, invokeManagement_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (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, invokeManagement_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.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.ManagementException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } }